|
@@ -1,9 +1,9 @@
|
|
|
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/index/index"],{
|
|
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/index/index"],{
|
|
|
|
|
|
|
|
/***/ 41:
|
|
/***/ 41:
|
|
|
-/*!****************************************************************************************************!*\
|
|
|
|
|
- !*** C:/Users/77876/Documents/HBuilderProjects/qc-signIn/main.js?{"page":"pages%2Findex%2Findex"} ***!
|
|
|
|
|
- \****************************************************************************************************/
|
|
|
|
|
|
|
+/*!*************************************************************************************************************!*\
|
|
|
|
|
+ !*** C:/Users/77876/Documents/HBuilderProjects/qc-signIn-yanguang/main.js?{"page":"pages%2Findex%2Findex"} ***!
|
|
|
|
|
+ \*************************************************************************************************************/
|
|
|
/*! no static exports found */
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
@@ -17,9 +17,9 @@ createPage(_index.default);
|
|
|
/***/ }),
|
|
/***/ }),
|
|
|
|
|
|
|
|
/***/ 42:
|
|
/***/ 42:
|
|
|
-/*!*********************************************************************************!*\
|
|
|
|
|
- !*** C:/Users/77876/Documents/HBuilderProjects/qc-signIn/pages/index/index.vue ***!
|
|
|
|
|
- \*********************************************************************************/
|
|
|
|
|
|
|
+/*!******************************************************************************************!*\
|
|
|
|
|
+ !*** C:/Users/77876/Documents/HBuilderProjects/qc-signIn-yanguang/pages/index/index.vue ***!
|
|
|
|
|
+ \******************************************************************************************/
|
|
|
/*! no static exports found */
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
@@ -58,9 +58,9 @@ component.options.__file = "pages/index/index.vue"
|
|
|
/***/ }),
|
|
/***/ }),
|
|
|
|
|
|
|
|
/***/ 43:
|
|
/***/ 43:
|
|
|
-/*!****************************************************************************************************************!*\
|
|
|
|
|
- !*** C:/Users/77876/Documents/HBuilderProjects/qc-signIn/pages/index/index.vue?vue&type=template&id=57280228& ***!
|
|
|
|
|
- \****************************************************************************************************************/
|
|
|
|
|
|
|
+/*!*************************************************************************************************************************!*\
|
|
|
|
|
+ !*** C:/Users/77876/Documents/HBuilderProjects/qc-signIn-yanguang/pages/index/index.vue?vue&type=template&id=57280228& ***!
|
|
|
|
|
+ \*************************************************************************************************************************/
|
|
|
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
|
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
@@ -80,9 +80,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
/***/ }),
|
|
/***/ }),
|
|
|
|
|
|
|
|
/***/ 44:
|
|
/***/ 44:
|
|
|
-/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
|
|
|
- !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!C:/Users/77876/Documents/HBuilderProjects/qc-signIn/pages/index/index.vue?vue&type=template&id=57280228& ***!
|
|
|
|
|
- \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
|
|
|
|
|
+/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
|
|
|
+ !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!C:/Users/77876/Documents/HBuilderProjects/qc-signIn-yanguang/pages/index/index.vue?vue&type=template&id=57280228& ***!
|
|
|
|
|
+ \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
|
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
|
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
@@ -96,10 +96,10 @@ var components
|
|
|
try {
|
|
try {
|
|
|
components = {
|
|
components = {
|
|
|
uNoticeBar: function() {
|
|
uNoticeBar: function() {
|
|
|
- return __webpack_require__.e(/*! import() | uview-ui/components/u-notice-bar/u-notice-bar */ "uview-ui/components/u-notice-bar/u-notice-bar").then(__webpack_require__.bind(null, /*! @/uview-ui/components/u-notice-bar/u-notice-bar.vue */ 66))
|
|
|
|
|
|
|
+ return __webpack_require__.e(/*! import() | uview-ui/components/u-notice-bar/u-notice-bar */ "uview-ui/components/u-notice-bar/u-notice-bar").then(__webpack_require__.bind(null, /*! @/uview-ui/components/u-notice-bar/u-notice-bar.vue */ 82))
|
|
|
},
|
|
},
|
|
|
adView: function() {
|
|
adView: function() {
|
|
|
- return __webpack_require__.e(/*! import() | components/ad-view/ad-view */ "components/ad-view/ad-view").then(__webpack_require__.bind(null, /*! @/components/ad-view/ad-view.vue */ 73))
|
|
|
|
|
|
|
+ return __webpack_require__.e(/*! import() | components/ad-view/ad-view */ "components/ad-view/ad-view").then(__webpack_require__.bind(null, /*! @/components/ad-view/ad-view.vue */ 89))
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
} catch (e) {
|
|
} catch (e) {
|
|
@@ -133,9 +133,9 @@ render._withStripped = true
|
|
|
/***/ }),
|
|
/***/ }),
|
|
|
|
|
|
|
|
/***/ 45:
|
|
/***/ 45:
|
|
|
-/*!**********************************************************************************************************!*\
|
|
|
|
|
- !*** C:/Users/77876/Documents/HBuilderProjects/qc-signIn/pages/index/index.vue?vue&type=script&lang=js& ***!
|
|
|
|
|
- \**********************************************************************************************************/
|
|
|
|
|
|
|
+/*!*******************************************************************************************************************!*\
|
|
|
|
|
+ !*** C:/Users/77876/Documents/HBuilderProjects/qc-signIn-yanguang/pages/index/index.vue?vue&type=script&lang=js& ***!
|
|
|
|
|
+ \*******************************************************************************************************************/
|
|
|
/*! no static exports found */
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
@@ -149,9 +149,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
/***/ }),
|
|
/***/ }),
|
|
|
|
|
|
|
|
/***/ 46:
|
|
/***/ 46:
|
|
|
-/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
|
|
|
- !*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!C:/Users/77876/Documents/HBuilderProjects/qc-signIn/pages/index/index.vue?vue&type=script&lang=js& ***!
|
|
|
|
|
- \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
|
|
|
|
|
+/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
|
|
|
+ !*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!C:/Users/77876/Documents/HBuilderProjects/qc-signIn-yanguang/pages/index/index.vue?vue&type=script&lang=js& ***!
|
|
|
|
|
+ \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
|
/*! no static exports found */
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
@@ -302,6 +302,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -461,7 +467,13 @@ var _ad_config = __webpack_require__(/*! @/utils/ad_config.js */ 49);function _i
|
|
|
//
|
|
//
|
|
|
//
|
|
//
|
|
|
//
|
|
//
|
|
|
-var timer = null,btTimer = null,adTimer = null,powerOnTimer = null;var adView = function adView() {__webpack_require__.e(/*! require.ensure | components/ad-view/ad-view */ "components/ad-view/ad-view").then((function () {return resolve(__webpack_require__(/*! @/components/ad-view/ad-view.vue */ 73));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var adCustomView = function adCustomView() {__webpack_require__.e(/*! require.ensure | components/ad-custom-view/ad-custom-view */ "components/ad-custom-view/ad-custom-view").then((function () {return resolve(__webpack_require__(/*! @/components/ad-custom-view/ad-custom-view.vue */ 80));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var _default = { components: { adView: adView, adCustomView: adCustomView }, data: function data() {return { adConfig: { bannerAd: _ad_config.bannerAd, singleLatticeAd: _ad_config.singleLatticeAd }, list: ['恭喜用户 “0016” 成功提现 200书币', '恭喜用户 “1037” 成功提现 10书币', '恭喜用户 “9128” 成功提现 20书币', '恭喜用户 “1873” 成功提现 140书币', '恭喜用户 “9834” 成功提现 200书币', '恭喜用户 “5623” 成功提现 10书币', '恭喜用户 “0934” 成功提现 20书币', '恭喜用户 “7843” 成功提现 60书币', '恭喜用户 “1344” 成功提现 20书币', '恭喜用户 “5464” 成功提现 140书币', '恭喜用户 “0823” 成功提现 200书币', '恭喜用户 “8910” 成功提现 10书币', '恭喜用户 “0714” 成功提现 20书币'], signRemind: false, // 是否开启签到提醒
|
|
|
|
|
|
|
+//
|
|
|
|
|
+//
|
|
|
|
|
+//
|
|
|
|
|
+//
|
|
|
|
|
+//
|
|
|
|
|
+//
|
|
|
|
|
+var timer = null,btTimer = null,adTimer = null,powerOnTimer = null;var adView = function adView() {__webpack_require__.e(/*! require.ensure | components/ad-view/ad-view */ "components/ad-view/ad-view").then((function () {return resolve(__webpack_require__(/*! @/components/ad-view/ad-view.vue */ 89));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var adCustomView = function adCustomView() {__webpack_require__.e(/*! require.ensure | components/ad-custom-view/ad-custom-view */ "components/ad-custom-view/ad-custom-view").then((function () {return resolve(__webpack_require__(/*! @/components/ad-custom-view/ad-custom-view.vue */ 96));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var _default = { components: { adView: adView, adCustomView: adCustomView }, data: function data() {return { adConfig: { bannerAd: _ad_config.bannerAd, singleLatticeAd: _ad_config.singleLatticeAd }, list: ['恭喜用户 “0016” 成功提现 200书币', '恭喜用户 “1037” 成功提现 10书币', '恭喜用户 “9128” 成功提现 20书币', '恭喜用户 “1873” 成功提现 140书币', '恭喜用户 “9834” 成功提现 200书币', '恭喜用户 “5623” 成功提现 10书币', '恭喜用户 “0934” 成功提现 20书币', '恭喜用户 “7843” 成功提现 60书币', '恭喜用户 “1344” 成功提现 20书币', '恭喜用户 “5464” 成功提现 140书币', '恭喜用户 “0823” 成功提现 200书币', '恭喜用户 “8910” 成功提现 10书币', '恭喜用户 “0714” 成功提现 20书币'], signRemind: false, // 是否开启签到提醒
|
|
|
activityRules: false, // 是否展开活动规则
|
|
activityRules: false, // 是否展开活动规则
|
|
|
popupShow: false, // 弹窗控制
|
|
popupShow: false, // 弹窗控制
|
|
|
signData: { sustainDayCount: 0, canSupplement: 0, userId: null, mpName: null, signInDayVoList: [{ signIn: false, canSupplement: false, dayDescribe: '第一天', bookCoin: 10, isSignIn: true }, { signIn: false, canSupplement: false, dayDescribe: '第二天', bookCoin: 20, isSignIn: false }, { signIn: false, canSupplement: false, dayDescribe: '第三天', bookCoin: 30, isSignIn: false }, { signIn: false, canSupplement: false, dayDescribe: '第四天', bookCoin: 40, isSignIn: false }, { signIn: false, canSupplement: false, dayDescribe: '第五天', bookCoin: 50, isSignIn: false }, { signIn: false, canSupplement: false, dayDescribe: '第六天', bookCoin: 60, isSignIn: false }, { signIn: false, canSupplement: false, dayDescribe: '第七天', bookCoin: 70, isSignIn: false }] }, // 签到相关信息
|
|
signData: { sustainDayCount: 0, canSupplement: 0, userId: null, mpName: null, signInDayVoList: [{ signIn: false, canSupplement: false, dayDescribe: '第一天', bookCoin: 10, isSignIn: true }, { signIn: false, canSupplement: false, dayDescribe: '第二天', bookCoin: 20, isSignIn: false }, { signIn: false, canSupplement: false, dayDescribe: '第三天', bookCoin: 30, isSignIn: false }, { signIn: false, canSupplement: false, dayDescribe: '第四天', bookCoin: 40, isSignIn: false }, { signIn: false, canSupplement: false, dayDescribe: '第五天', bookCoin: 50, isSignIn: false }, { signIn: false, canSupplement: false, dayDescribe: '第六天', bookCoin: 60, isSignIn: false }, { signIn: false, canSupplement: false, dayDescribe: '第七天', bookCoin: 70, isSignIn: false }] }, // 签到相关信息
|
|
@@ -480,14 +492,23 @@ var timer = null,btTimer = null,adTimer = null,powerOnTimer = null;var adView =
|
|
|
getIntoCount: 0, loading: false, powerOnTimer: new Date().getTime(), // 保存当前进入页面的时间挫
|
|
getIntoCount: 0, loading: false, powerOnTimer: new Date().getTime(), // 保存当前进入页面的时间挫
|
|
|
isVideoType: null, // 1 是否是看视频签到 2 是否是补签
|
|
isVideoType: null, // 1 是否是看视频签到 2 是否是补签
|
|
|
repairSignData: null, // 保存补签的信息
|
|
repairSignData: null, // 保存补签的信息
|
|
|
- powerOnCount: 0 // 记录开机秒数
|
|
|
|
|
- };}, watch: { 'signData.signInDayVoList': { handler: function handler(val, oldVal) {if (val.length > 0) {var signInDay = val.find(function (item) {return item.canSign;});if (signInDay) {this.isSignIn = signInDay.signIn;}}}, deep: true }, popupShow: function popupShow(newVal, oldVal) {var _this = this;if (newVal) {timer = setInterval(function () {if (_this.scale === 1) {_this.scale = 0.92;} else {_this.scale = 1;}}, 500);} else {timer && clearInterval(timer);}} }, onLoad: function onLoad(options) {var _this2 = this;this.mpData = options;uni.login({ success: function () {var _success = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee(res) {var openIDInfo;return _regenerator.default.wrap(function _callee$(_context) {while (1) {switch (_context.prev = _context.next) {case 0:if (!res.code) {_context.next = 6;break;}_context.next = 3;return (0, _api.getOpenId)({ appId: _api.config.appid, code: res.code });case 3:openIDInfo = _context.sent;_this2.openId = openIDInfo.data;_this2.getList();case 6:case "end":return _context.stop();}}}, _callee);}));function success(_x) {return _success.apply(this, arguments);}return success;}() });}, onShareAppMessage: function onShareAppMessage() {}, onReady: function onReady() {this.createInterstitialAd();this.btAnimation = uni.createAnimation({ timingFunction: 'ease' });this.btBreathAni();this.powerOnShowAd();}, onUnload: function onUnload() {console.log('onUnload---->');timer && clearInterval(timer);
|
|
|
|
|
|
|
+ powerOnCount: 0, // 记录开机秒数
|
|
|
|
|
+ balanceCount: 0 // 余额
|
|
|
|
|
+ };}, watch: { 'signData.signInDayVoList': { handler: function handler(val, oldVal) {if (val.length > 0) {var signInDay = val.find(function (item) {return item.canSign;});if (signInDay) {this.isSignIn = signInDay.signIn;}}}, deep: true }, popupShow: function popupShow(newVal, oldVal) {var _this = this;if (newVal) {timer = setInterval(function () {if (_this.scale === 1) {_this.scale = 0.92;} else {_this.scale = 1;}}, 500);} else {timer && clearInterval(timer);}} }, onLoad: function onLoad(options) {var _this2 = this;this.mpData = options;uni.login({ success: function () {var _success = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee(res) {var openIDInfo;return _regenerator.default.wrap(function _callee$(_context) {while (1) {switch (_context.prev = _context.next) {case 0:if (!res.code) {_context.next = 6;break;}_context.next = 3;return (0, _api.getOpenId)({ appId: _api.config.appid, code: res.code });case 3:openIDInfo = _context.sent;_this2.openId = openIDInfo.data;_this2.getList();case 6:case "end":return _context.stop();}}}, _callee);}));function success(_x) {return _success.apply(this, arguments);}return success;}() });}, onShareAppMessage: function onShareAppMessage() {}, onReady: function onReady() {if (_ad_config.urgeVideoAd) {this.createInterstitialAd();this.powerOnShowAd();}this.btAnimation = uni.createAnimation({ timingFunction: 'ease' });this.btBreathAni();}, onHide: function onHide() {console.log('页面隐藏');timer && clearInterval(timer);btTimer && clearInterval(btTimer);adTimer && clearTimeout(adTimer);powerOnTimer && clearInterval(powerOnTimer);},
|
|
|
|
|
+ onUnload: function onUnload() {
|
|
|
|
|
+ console.log('onUnload---->');
|
|
|
|
|
+ timer && clearInterval(timer);
|
|
|
btTimer && clearInterval(btTimer);
|
|
btTimer && clearInterval(btTimer);
|
|
|
this.interstitialAd.destroy();
|
|
this.interstitialAd.destroy();
|
|
|
adTimer && clearTimeout(adTimer);
|
|
adTimer && clearTimeout(adTimer);
|
|
|
powerOnTimer && clearInterval(powerOnTimer);
|
|
powerOnTimer && clearInterval(powerOnTimer);
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ getBookCurr: function getBookCurr() {var _this3 = this;
|
|
|
|
|
+ (0, _api.getBalance)({ appId: _api.config.appid, mpAppId: this.mpData.mpAppId, mpOpenId: this.mpData.mpOpenId }).then(function (res) {
|
|
|
|
|
+ _this3.balanceCount = res.data || 0;
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
// 提示关注公众号
|
|
// 提示关注公众号
|
|
|
tsAccount: function tsAccount() {
|
|
tsAccount: function tsAccount() {
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
@@ -495,23 +516,23 @@ var timer = null,btTimer = null,adTimer = null,powerOnTimer = null;var adView =
|
|
|
icon: 'none' });
|
|
icon: 'none' });
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
- powerOnShowAd: function powerOnShowAd() {var _this3 = this;
|
|
|
|
|
|
|
+ powerOnShowAd: function powerOnShowAd() {var _this4 = this;
|
|
|
// 开机25秒调取弹窗广告 以后没5分钟调取
|
|
// 开机25秒调取弹窗广告 以后没5分钟调取
|
|
|
powerOnTimer = setInterval(function () {
|
|
powerOnTimer = setInterval(function () {
|
|
|
- _this3.powerOnCount += 1;
|
|
|
|
|
- if (_this3.powerOnCount === 25 || _this3.powerOnCount % 325 === 0) {
|
|
|
|
|
- _this3.showInterstitialAd();
|
|
|
|
|
|
|
+ _this4.powerOnCount += 1;
|
|
|
|
|
+ if (_this4.powerOnCount === 25 || _this4.powerOnCount % 325 === 0) {
|
|
|
|
|
+ _this4.showInterstitialAd();
|
|
|
}
|
|
}
|
|
|
}, 1000);
|
|
}, 1000);
|
|
|
},
|
|
},
|
|
|
// 创建插屏广告 激励视频广告
|
|
// 创建插屏广告 激励视频广告
|
|
|
- createInterstitialAd: function createInterstitialAd() {var _this4 = this;
|
|
|
|
|
|
|
+ createInterstitialAd: function createInterstitialAd() {var _this5 = this;
|
|
|
// 创建插屏广告
|
|
// 创建插屏广告
|
|
|
var interstitialAd = this.interstitialAd = uni.createInterstitialAd({ adUnitId: _ad_config.insertScreenAd });
|
|
var interstitialAd = this.interstitialAd = uni.createInterstitialAd({ adUnitId: _ad_config.insertScreenAd });
|
|
|
interstitialAd.onLoad(function () {
|
|
interstitialAd.onLoad(function () {
|
|
|
// 插屏 广告加载成功
|
|
// 插屏 广告加载成功
|
|
|
console.log("插屏 广告加载成功");
|
|
console.log("插屏 广告加载成功");
|
|
|
- _this4.loading = false;
|
|
|
|
|
|
|
+ _this5.loading = false;
|
|
|
});
|
|
});
|
|
|
interstitialAd.onClose(function () {
|
|
interstitialAd.onClose(function () {
|
|
|
// 用户点击了关闭或返回键(仅Android有返回键)
|
|
// 用户点击了关闭或返回键(仅Android有返回键)
|
|
@@ -520,7 +541,7 @@ var timer = null,btTimer = null,adTimer = null,powerOnTimer = null;var adView =
|
|
|
interstitialAd.onError(function (err) {
|
|
interstitialAd.onError(function (err) {
|
|
|
// 插屏 广告加载失败
|
|
// 插屏 广告加载失败
|
|
|
console.log("插屏 广告加载失败", err);
|
|
console.log("插屏 广告加载失败", err);
|
|
|
- _this4.loading = false;
|
|
|
|
|
|
|
+ _this5.loading = false;
|
|
|
});
|
|
});
|
|
|
// 广告实例创建成功后默认会执行一次 load,加载广告数据
|
|
// 广告实例创建成功后默认会执行一次 load,加载广告数据
|
|
|
// 如果界面有 "显示广告" 按钮,需要先禁用掉,防止用户点击,等待广告数据加载成功后在放开
|
|
// 如果界面有 "显示广告" 按钮,需要先禁用掉,防止用户点击,等待广告数据加载成功后在放开
|
|
@@ -530,7 +551,7 @@ var timer = null,btTimer = null,adTimer = null,powerOnTimer = null;var adView =
|
|
|
this._isLoaded = false;
|
|
this._isLoaded = false;
|
|
|
var rewardedVideoAd = this._rewardedVideoAd = uni.createRewardedVideoAd({ adUnitId: _ad_config.urgeVideoAd }); // 仅用于HBuilder基座调试 adpid: '1507000689'
|
|
var rewardedVideoAd = this._rewardedVideoAd = uni.createRewardedVideoAd({ adUnitId: _ad_config.urgeVideoAd }); // 仅用于HBuilder基座调试 adpid: '1507000689'
|
|
|
rewardedVideoAd.onLoad(function () {
|
|
rewardedVideoAd.onLoad(function () {
|
|
|
- _this4._isLoaded = true;
|
|
|
|
|
|
|
+ _this5._isLoaded = true;
|
|
|
console.log('onLoad event');
|
|
console.log('onLoad event');
|
|
|
// 加载激励视频成功
|
|
// 加载激励视频成功
|
|
|
// 当激励视频被关闭时,默认预载下一条数据,加载完成时仍然触发 `onLoad` 事件
|
|
// 当激励视频被关闭时,默认预载下一条数据,加载完成时仍然触发 `onLoad` 事件
|
|
@@ -543,10 +564,10 @@ var timer = null,btTimer = null,adTimer = null,powerOnTimer = null;var adView =
|
|
|
// 用户点击了【关闭广告】按钮
|
|
// 用户点击了【关闭广告】按钮
|
|
|
if (res && res.isEnded) {
|
|
if (res && res.isEnded) {
|
|
|
// 正常播放结束
|
|
// 正常播放结束
|
|
|
- if (_this4.isVideoType === 1) {// 看视频签到
|
|
|
|
|
- _this4.signInHandle(true);
|
|
|
|
|
- } else if (_this4.isVideoType === 2) {// 看视频补签
|
|
|
|
|
- _this4.repairSign(_this4.repairSignData);
|
|
|
|
|
|
|
+ if (_this5.isVideoType === 1) {// 看视频签到
|
|
|
|
|
+ _this5.signInHandle(true);
|
|
|
|
|
+ } else if (_this5.isVideoType === 2) {// 看视频补签
|
|
|
|
|
+ _this5.repairSign(_this5.repairSignData);
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
// 播放中途退出
|
|
// 播放中途退出
|
|
@@ -554,47 +575,58 @@ var timer = null,btTimer = null,adTimer = null,powerOnTimer = null;var adView =
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
// 显示插屏广告广告
|
|
// 显示插屏广告广告
|
|
|
- showInterstitialAd: function showInterstitialAd() {var _this5 = this;
|
|
|
|
|
|
|
+ showInterstitialAd: function showInterstitialAd() {var _this6 = this;
|
|
|
// 调用 interstitialAd.show(),如果数据正在加载中不会显示广告,加载成功后才显示
|
|
// 调用 interstitialAd.show(),如果数据正在加载中不会显示广告,加载成功后才显示
|
|
|
// 在数据没有加载成功时,需要防止用户频繁点击显示广告
|
|
// 在数据没有加载成功时,需要防止用户频繁点击显示广告
|
|
|
if (adTimer) {
|
|
if (adTimer) {
|
|
|
clearTimeout(adTimer);
|
|
clearTimeout(adTimer);
|
|
|
}
|
|
}
|
|
|
- var newT = new Date().getTime();
|
|
|
|
|
- if (newT / 1000 - this.powerOnTimer / 1000 < 15) {// 判断是否开机15秒
|
|
|
|
|
- adTimer = setTimeout(function () {
|
|
|
|
|
- if (_this5.loading == true) {
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
- _this5.loading = true;
|
|
|
|
|
- _this5.interstitialAd.show().then(function (res) {
|
|
|
|
|
- console.log('插屏广告成功---》', res);
|
|
|
|
|
- _this5.loading = false;
|
|
|
|
|
- }).catch(function (err) {
|
|
|
|
|
- console.log('插屏广告错误---》', err);
|
|
|
|
|
- });
|
|
|
|
|
- clearTimeout(adTimer);
|
|
|
|
|
- }, newT - this.powerOnTimer + 1000);
|
|
|
|
|
- return;
|
|
|
|
|
|
|
+ if (_ad_config.insertScreenAd) {
|
|
|
|
|
+ var newT = new Date().getTime();
|
|
|
|
|
+ if (newT / 1000 - this.powerOnTimer / 1000 < 15) {// 判断是否开机15秒
|
|
|
|
|
+ adTimer = setTimeout(function () {
|
|
|
|
|
+ if (_this6.loading == true) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ _this6.loading = true;
|
|
|
|
|
+ _this6.interstitialAd.show().then(function (res) {
|
|
|
|
|
+ console.log('插屏广告成功---》', res);
|
|
|
|
|
+ _this6.loading = false;
|
|
|
|
|
+ }).catch(function (err) {
|
|
|
|
|
+ console.log('插屏广告错误---》', err);
|
|
|
|
|
+ });
|
|
|
|
|
+ clearTimeout(adTimer);
|
|
|
|
|
+ }, newT - this.powerOnTimer + 1000);
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (this.loading == true) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ this.loading = true;
|
|
|
|
|
+ this.interstitialAd.show().then(function (res) {
|
|
|
|
|
+ console.log('插屏广告成功---》', res);
|
|
|
|
|
+ _this6.loading = false;
|
|
|
|
|
+ }).catch(function (err) {
|
|
|
|
|
+ console.log('插屏广告错误---》', err);
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
- if (this.loading == true) {
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ // 补签点击
|
|
|
|
|
+ signatureHandle: function signatureHandle(type, data) {
|
|
|
|
|
+ if (!_ad_config.urgeVideoAd) {// 判断是否有视频ID
|
|
|
|
|
+ this.repairSign(this.repairSignData);
|
|
|
return;
|
|
return;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.showVideoAd(type, data);
|
|
|
}
|
|
}
|
|
|
- this.loading = true;
|
|
|
|
|
- this.interstitialAd.show().then(function (res) {
|
|
|
|
|
- console.log('插屏广告成功---》', res);
|
|
|
|
|
- _this5.loading = false;
|
|
|
|
|
- }).catch(function (err) {
|
|
|
|
|
- console.log('插屏广告错误---》', err);
|
|
|
|
|
- });
|
|
|
|
|
},
|
|
},
|
|
|
// 显示激励视频广告
|
|
// 显示激励视频广告
|
|
|
- showVideoAd: function showVideoAd(type, data) {var _this6 = this;
|
|
|
|
|
|
|
+ showVideoAd: function showVideoAd(type, data) {var _this7 = this;
|
|
|
if (this._isLoaded) {
|
|
if (this._isLoaded) {
|
|
|
this.isVideoType = type;
|
|
this.isVideoType = type;
|
|
|
this.repairSignData = data;
|
|
this.repairSignData = data;
|
|
|
this._rewardedVideoAd.show().catch(function () {
|
|
this._rewardedVideoAd.show().catch(function () {
|
|
|
- _this6._rewardedVideoAd && _this6._rewardedVideoAd.load().then(function () {return _this6._rewardedVideoAd && _this6._rewardedVideoAd.show();}).catch(function (err) {
|
|
|
|
|
|
|
+ _this7._rewardedVideoAd && _this7._rewardedVideoAd.load().then(function () {return _this7._rewardedVideoAd && _this7._rewardedVideoAd.show();}).catch(function (err) {
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
|
title: '当前无视频广告',
|
|
title: '当前无视频广告',
|
|
|
icon: 'none' });
|
|
icon: 'none' });
|
|
@@ -603,17 +635,25 @@ var timer = null,btTimer = null,adTimer = null,powerOnTimer = null;var adView =
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ /** 看视频签到 */
|
|
|
|
|
+ lookVideo: function lookVideo() {
|
|
|
|
|
+ if (_ad_config.urgeVideoAd) {
|
|
|
|
|
+ this.showVideoAd(1);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.signInHandle(true);
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
// 按钮呼吸
|
|
// 按钮呼吸
|
|
|
- btBreathAni: function btBreathAni() {var _this7 = this;
|
|
|
|
|
|
|
+ btBreathAni: function btBreathAni() {var _this8 = this;
|
|
|
btTimer = setInterval(function () {
|
|
btTimer = setInterval(function () {
|
|
|
- if (_this7.btScale === 1) {
|
|
|
|
|
- _this7.btScale = 0.92;
|
|
|
|
|
- _this7.btAnimation.scale(0.92).step({ duration: 600 });
|
|
|
|
|
- _this7.btAnimationData = _this7.btAnimation.export();
|
|
|
|
|
|
|
+ if (_this8.btScale === 1) {
|
|
|
|
|
+ _this8.btScale = 0.92;
|
|
|
|
|
+ _this8.btAnimation.scale(0.92).step({ duration: 600 });
|
|
|
|
|
+ _this8.btAnimationData = _this8.btAnimation.export();
|
|
|
} else {
|
|
} else {
|
|
|
- _this7.btScale = 1;
|
|
|
|
|
- _this7.btAnimation.scale(1).step({ duration: 600 });
|
|
|
|
|
- _this7.btAnimationData = _this7.btAnimation.export();
|
|
|
|
|
|
|
+ _this8.btScale = 1;
|
|
|
|
|
+ _this8.btAnimation.scale(1).step({ duration: 600 });
|
|
|
|
|
+ _this8.btAnimationData = _this8.btAnimation.export();
|
|
|
}
|
|
}
|
|
|
}, 600);
|
|
}, 600);
|
|
|
},
|
|
},
|
|
@@ -636,7 +676,7 @@ var timer = null,btTimer = null,adTimer = null,powerOnTimer = null;var adView =
|
|
|
this.animationDataTs = animation.export();
|
|
this.animationDataTs = animation.export();
|
|
|
},
|
|
},
|
|
|
// 金币组动画
|
|
// 金币组动画
|
|
|
- startGold: function startGold(watchVideos) {var _this8 = this;
|
|
|
|
|
|
|
+ startGold: function startGold(watchVideos) {var _this9 = this;
|
|
|
this.startTsAni(watchVideos);
|
|
this.startTsAni(watchVideos);
|
|
|
if (this.durationMath1 >= 50) {
|
|
if (this.durationMath1 >= 50) {
|
|
|
this.durationMath1 = 20;
|
|
this.durationMath1 = 20;
|
|
@@ -645,7 +685,7 @@ var timer = null,btTimer = null,adTimer = null,powerOnTimer = null;var adView =
|
|
|
}
|
|
}
|
|
|
this.animationDatas = this.goldData.map(function (item) {
|
|
this.animationDatas = this.goldData.map(function (item) {
|
|
|
var animation = uni.createAnimation({ timingFunction: 'ease' });
|
|
var animation = uni.createAnimation({ timingFunction: 'ease' });
|
|
|
- animation.opacity(1).step({ duration: _this8.durationMath1 });
|
|
|
|
|
|
|
+ animation.opacity(1).step({ duration: _this9.durationMath1 });
|
|
|
animation.top('76rpx').left('60rpx').step({ duration: Math.floor(Math.random() * 101) + 650, delay: 100 }); //
|
|
animation.top('76rpx').left('60rpx').step({ duration: Math.floor(Math.random() * 101) + 650, delay: 100 }); //
|
|
|
animation.opacity(0).top(item.top).left(item.left).step({ duration: 0 });
|
|
animation.opacity(0).top(item.top).left(item.left).step({ duration: 0 });
|
|
|
return animation.export();
|
|
return animation.export();
|
|
@@ -658,7 +698,7 @@ var timer = null,btTimer = null,adTimer = null,powerOnTimer = null;var adView =
|
|
|
path = path + this.getSerialize(this.mpData);
|
|
path = path + this.getSerialize(this.mpData);
|
|
|
}
|
|
}
|
|
|
uni.navigateToMiniProgram({
|
|
uni.navigateToMiniProgram({
|
|
|
- appId: 'wx021e792baf529aff',
|
|
|
|
|
|
|
+ appId: 'wxe1b04d1d8f6df382',
|
|
|
path: path,
|
|
path: path,
|
|
|
success: function success(res) {
|
|
success: function success(res) {
|
|
|
// 打开成功
|
|
// 打开成功
|
|
@@ -719,46 +759,47 @@ var timer = null,btTimer = null,adTimer = null,powerOnTimer = null;var adView =
|
|
|
|
|
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
- handleMessage: function handleMessage(remindSwitch) {var _this9 = this;var allowSwitch = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; // 设置签到消息接口
|
|
|
|
|
|
|
+ handleMessage: function handleMessage(remindSwitch) {var _this10 = this;var allowSwitch = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; // 设置签到消息接口
|
|
|
var _this$mpData = this.mpData,mpName = _this$mpData.mpName,mp = _objectWithoutProperties(_this$mpData, ["mpName"]);
|
|
var _this$mpData = this.mpData,mpName = _this$mpData.mpName,mp = _objectWithoutProperties(_this$mpData, ["mpName"]);
|
|
|
(0, _api.setMessage)(_objectSpread({ appId: _api.config.appid, openId: this.openId, allowSwitch: allowSwitch, remindSwitch: remindSwitch }, mp)).then(function (res) {
|
|
(0, _api.setMessage)(_objectSpread({ appId: _api.config.appid, openId: this.openId, allowSwitch: allowSwitch, remindSwitch: remindSwitch }, mp)).then(function (res) {
|
|
|
- _this9.getList();
|
|
|
|
|
- _this9.showInterstitialAd();
|
|
|
|
|
|
|
+ _this10.getList();
|
|
|
|
|
+ _this10.showInterstitialAd();
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
// 获取模板签到ID
|
|
// 获取模板签到ID
|
|
|
- getTemplate: function getTemplate() {var _this10 = this;
|
|
|
|
|
|
|
+ getTemplate: function getTemplate() {var _this11 = this;
|
|
|
(0, _api.getTemplateIDs)({ appId: _api.config.appid, type: 1 }).then(function (res) {
|
|
(0, _api.getTemplateIDs)({ appId: _api.config.appid, type: 1 }).then(function (res) {
|
|
|
- _this10.signIdTemID = [res.data];
|
|
|
|
|
|
|
+ _this11.signIdTemID = [res.data];
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
// 获取首页数据
|
|
// 获取首页数据
|
|
|
- getList: function getList(signTime) {var _this11 = this;return _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee2() {var data, res;return _regenerator.default.wrap(function _callee2$(_context2) {while (1) {switch (_context2.prev = _context2.next) {case 0:
|
|
|
|
|
- data = _objectSpread(_objectSpread({ appId: _api.config.appid, userSource: 1, openId: _this11.openId }, _this11.mpData), signTime ? { signTime: signTime } : {});_context2.next = 3;return (
|
|
|
|
|
|
|
+ getList: function getList(signTime) {var _this12 = this;return _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee2() {var data, res;return _regenerator.default.wrap(function _callee2$(_context2) {while (1) {switch (_context2.prev = _context2.next) {case 0:
|
|
|
|
|
+ data = _objectSpread(_objectSpread({ appId: _api.config.appid, userSource: 1, openId: _this12.openId }, _this12.mpData), signTime ? { signTime: signTime } : {});_context2.next = 3;return (
|
|
|
(0, _api.getHome)(data));case 3:res = _context2.sent;
|
|
(0, _api.getHome)(data));case 3:res = _context2.sent;
|
|
|
if (res.data) {
|
|
if (res.data) {
|
|
|
- _this11.mpData = {
|
|
|
|
|
|
|
+ _this12.mpData = {
|
|
|
mpAppId: res.data.mpAppId,
|
|
mpAppId: res.data.mpAppId,
|
|
|
mpName: res.data.mpName,
|
|
mpName: res.data.mpName,
|
|
|
mpOpenId: res.data.mpOpenId };
|
|
mpOpenId: res.data.mpOpenId };
|
|
|
|
|
|
|
|
- _this11.signData = res.data;
|
|
|
|
|
- _this11.signRemind = res.data.loginRemindSwitch === 0 ? false : true;
|
|
|
|
|
- _this11.getTemplate();
|
|
|
|
|
|
|
+ _this12.signData = res.data;
|
|
|
|
|
+ _this12.signRemind = res.data.loginRemindSwitch === 0 ? false : true;
|
|
|
|
|
+ _this12.getTemplate();
|
|
|
|
|
+ _this12.getBookCurr();
|
|
|
}case 5:case "end":return _context2.stop();}}}, _callee2);}))();
|
|
}case 5:case "end":return _context2.stop();}}}, _callee2);}))();
|
|
|
},
|
|
},
|
|
|
/** 补签*/
|
|
/** 补签*/
|
|
|
- repairSign: function repairSign(data) {var _this12 = this;var
|
|
|
|
|
|
|
+ repairSign: function repairSign(data) {var _this13 = this;var
|
|
|
dayTime = data.dayTime,dayNum = data.dayNum;
|
|
dayTime = data.dayTime,dayNum = data.dayNum;
|
|
|
(0, _api.signInAjax)(_objectSpread({ watchVideo: false, supplement: true, appId: _api.config.appid, openId: this.openId, dayNum: dayNum, dayTime: dayTime }, this.mpData)).then(function (res) {
|
|
(0, _api.signInAjax)(_objectSpread({ watchVideo: false, supplement: true, appId: _api.config.appid, openId: this.openId, dayNum: dayNum, dayTime: dayTime }, this.mpData)).then(function (res) {
|
|
|
- _this12.getList(res.data);
|
|
|
|
|
- _this12.startGold(false);
|
|
|
|
|
|
|
+ _this13.getList(res.data);
|
|
|
|
|
+ _this13.startGold(false);
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
|
title: '补签成功',
|
|
title: '补签成功',
|
|
|
icon: 'success' });
|
|
icon: 'success' });
|
|
|
|
|
|
|
|
setTimeout(function () {
|
|
setTimeout(function () {
|
|
|
- _this12.showInterstitialAd();
|
|
|
|
|
|
|
+ _this13.showInterstitialAd();
|
|
|
}, 20000);
|
|
}, 20000);
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
@@ -771,7 +812,7 @@ var timer = null,btTimer = null,adTimer = null,powerOnTimer = null;var adView =
|
|
|
return "".concat(Y).concat(M).concat(D);
|
|
return "".concat(Y).concat(M).concat(D);
|
|
|
},
|
|
},
|
|
|
/** 签到提醒按钮 */
|
|
/** 签到提醒按钮 */
|
|
|
- signRemindHandle: function signRemindHandle(state) {var _this13 = this;
|
|
|
|
|
|
|
+ signRemindHandle: function signRemindHandle(state) {var _this14 = this;
|
|
|
if (!this.signData.mpName) {
|
|
if (!this.signData.mpName) {
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
|
url: '../officialAccount/officialAccount' });
|
|
url: '../officialAccount/officialAccount' });
|
|
@@ -785,7 +826,7 @@ var timer = null,btTimer = null,adTimer = null,powerOnTimer = null;var adView =
|
|
|
success: function () {var _success2 = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee3(res) {var errMsg, massageData, msg, key, element;return _regenerator.default.wrap(function _callee3$(_context3) {while (1) {switch (_context3.prev = _context3.next) {case 0:
|
|
success: function () {var _success2 = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee3(res) {var errMsg, massageData, msg, key, element;return _regenerator.default.wrap(function _callee3$(_context3) {while (1) {switch (_context3.prev = _context3.next) {case 0:
|
|
|
errMsg = res.errMsg, massageData = _objectWithoutProperties(res, ["errMsg"]);
|
|
errMsg = res.errMsg, massageData = _objectWithoutProperties(res, ["errMsg"]);
|
|
|
console.log('------>', res);_context3.next = 4;return (
|
|
console.log('------>', res);_context3.next = 4;return (
|
|
|
- _this13.getSetting());case 4:msg = _context3.sent;
|
|
|
|
|
|
|
+ _this14.getSetting());case 4:msg = _context3.sent;
|
|
|
console.log('----2222---->', msg);if (!(
|
|
console.log('----2222---->', msg);if (!(
|
|
|
msg === 400)) {_context3.next = 11;break;}
|
|
msg === 400)) {_context3.next = 11;break;}
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
@@ -806,7 +847,7 @@ var timer = null,btTimer = null,adTimer = null,powerOnTimer = null;var adView =
|
|
|
element = massageData[key];
|
|
element = massageData[key];
|
|
|
if (element === 'accept') {// 允许
|
|
if (element === 'accept') {// 允许
|
|
|
console.log('msg--->', msg);
|
|
console.log('msg--->', msg);
|
|
|
- _this13.handleMessage(1, msg === 200 ? 1 : 0);
|
|
|
|
|
|
|
+ _this14.handleMessage(1, msg === 200 ? 1 : 0);
|
|
|
} else if (element === 'reject') {// 取消
|
|
} else if (element === 'reject') {// 取消
|
|
|
|
|
|
|
|
}
|
|
}
|
|
@@ -847,21 +888,21 @@ var timer = null,btTimer = null,adTimer = null,powerOnTimer = null;var adView =
|
|
|
this.signInHandle(false);
|
|
this.signInHandle(false);
|
|
|
},
|
|
},
|
|
|
/** 签到 */
|
|
/** 签到 */
|
|
|
- signInHandle: function signInHandle(watchVideo) {var _this14 = this;
|
|
|
|
|
|
|
+ signInHandle: function signInHandle(watchVideo) {var _this15 = this;
|
|
|
var signInDay = this.signData.signInDayVoList.find(function (item) {return item.canSign;});
|
|
var signInDay = this.signData.signInDayVoList.find(function (item) {return item.canSign;});
|
|
|
console.log(signInDay);
|
|
console.log(signInDay);
|
|
|
if (signInDay) {var
|
|
if (signInDay) {var
|
|
|
dayTime = signInDay.dayTime,dayNum = signInDay.dayNum,signIn = signInDay.signIn;
|
|
dayTime = signInDay.dayTime,dayNum = signInDay.dayNum,signIn = signInDay.signIn;
|
|
|
if (!signIn) {
|
|
if (!signIn) {
|
|
|
(0, _api.signInAjax)(_objectSpread({ watchVideo: watchVideo, supplement: false, appId: _api.config.appid, openId: this.openId, dayNum: dayNum, dayTime: dayTime }, this.mpData)).then(function (res) {
|
|
(0, _api.signInAjax)(_objectSpread({ watchVideo: watchVideo, supplement: false, appId: _api.config.appid, openId: this.openId, dayNum: dayNum, dayTime: dayTime }, this.mpData)).then(function (res) {
|
|
|
- _this14.getList();
|
|
|
|
|
- _this14.startGold(watchVideo);
|
|
|
|
|
- _this14.popupShow = false;
|
|
|
|
|
|
|
+ _this15.getList();
|
|
|
|
|
+ _this15.startGold(watchVideo);
|
|
|
|
|
+ _this15.popupShow = false;
|
|
|
if (!watchVideo) {
|
|
if (!watchVideo) {
|
|
|
- _this14.showInterstitialAd();
|
|
|
|
|
|
|
+ _this15.showInterstitialAd();
|
|
|
} else {
|
|
} else {
|
|
|
setTimeout(function () {
|
|
setTimeout(function () {
|
|
|
- _this14.showInterstitialAd();
|
|
|
|
|
|
|
+ _this15.showInterstitialAd();
|
|
|
}, 20000);
|
|
}, 20000);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
@@ -877,19 +918,15 @@ var timer = null,btTimer = null,adTimer = null,powerOnTimer = null;var adView =
|
|
|
icon: 'error' });
|
|
icon: 'error' });
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
- },
|
|
|
|
|
- /** 看视频签到 */
|
|
|
|
|
- lookVideo: function lookVideo() {
|
|
|
|
|
- this.showVideoAd(1);
|
|
|
|
|
} } };exports.default = _default;
|
|
} } };exports.default = _default;
|
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
|
|
|
|
|
|
|
|
/***/ }),
|
|
/***/ }),
|
|
|
|
|
|
|
|
/***/ 50:
|
|
/***/ 50:
|
|
|
-/*!*******************************************************************************************************************!*\
|
|
|
|
|
- !*** C:/Users/77876/Documents/HBuilderProjects/qc-signIn/pages/index/index.vue?vue&type=style&index=0&lang=scss& ***!
|
|
|
|
|
- \*******************************************************************************************************************/
|
|
|
|
|
|
|
+/*!****************************************************************************************************************************!*\
|
|
|
|
|
+ !*** C:/Users/77876/Documents/HBuilderProjects/qc-signIn-yanguang/pages/index/index.vue?vue&type=style&index=0&lang=scss& ***!
|
|
|
|
|
+ \****************************************************************************************************************************/
|
|
|
/*! no static exports found */
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
@@ -903,9 +940,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
/***/ }),
|
|
/***/ }),
|
|
|
|
|
|
|
|
/***/ 51:
|
|
/***/ 51:
|
|
|
-/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
|
|
|
- !*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!C:/Users/77876/Documents/HBuilderProjects/qc-signIn/pages/index/index.vue?vue&type=style&index=0&lang=scss& ***!
|
|
|
|
|
- \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
|
|
|
|
|
+/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
|
|
|
+ !*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!C:/Users/77876/Documents/HBuilderProjects/qc-signIn-yanguang/pages/index/index.vue?vue&type=style&index=0&lang=scss& ***!
|
|
|
|
|
+ \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
|
/*! no static exports found */
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|