(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/index/index"],{

/***/ 61:
/*!*************************************************************************************************************!*\
  !*** C:/Users/77876/Documents/HBuilderProjects/qc-signIn-yanguang/main.js?{"page":"pages%2Findex%2Findex"} ***!
  \*************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(createPage) {

var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
__webpack_require__(/*! uni-pages */ 25);
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 24));
var _index = _interopRequireDefault(__webpack_require__(/*! ./pages/index/index.vue */ 62));
// @ts-ignore
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;
createPage(_index.default);
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["createPage"]))

/***/ }),

/***/ 62:
/*!******************************************************************************************!*\
  !*** C:/Users/77876/Documents/HBuilderProjects/qc-signIn-yanguang/pages/index/index.vue ***!
  \******************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _index_vue_vue_type_template_id_57280228___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=57280228& */ 63);
/* harmony import */ var _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.vue?vue&type=script&lang=js& */ 65);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _index_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./index.vue?vue&type=style&index=0&lang=scss& */ 72);
/* harmony import */ var _D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 31);

var renderjs





/* normalize component */

var component = Object(_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
  _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
  _index_vue_vue_type_template_id_57280228___WEBPACK_IMPORTED_MODULE_0__["render"],
  _index_vue_vue_type_template_id_57280228___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  false,
  null,
  null,
  null,
  false,
  _index_vue_vue_type_template_id_57280228___WEBPACK_IMPORTED_MODULE_0__["components"],
  renderjs
)

component.options.__file = "pages/index/index.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ 63:
/*!*************************************************************************************************************************!*\
  !*** C:/Users/77876/Documents/HBuilderProjects/qc-signIn-yanguang/pages/index/index.vue?vue&type=template&id=57280228& ***!
  \*************************************************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_57280228___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./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!./index.vue?vue&type=template&id=57280228& */ 64);
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_57280228___WEBPACK_IMPORTED_MODULE_0__["render"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_57280228___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_57280228___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_57280228___WEBPACK_IMPORTED_MODULE_0__["components"]; });



/***/ }),

/***/ 64:
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./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 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
var components
try {
  components = {
    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 */ 104))
    },
    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 */ 111))
    },
  }
} catch (e) {
  if (
    e.message.indexOf("Cannot find module") !== -1 &&
    e.message.indexOf(".vue") !== -1
  ) {
    console.error(e.message)
    console.error("1. 排查组件名称拼写是否正确")
    console.error(
      "2. 排查组件是否符合 easycom 规范，文档：https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"
    )
    console.error(
      "3. 若组件不符合 easycom 规范，需手动引入，并在 components 中注册该组件"
    )
  } else {
    throw e
  }
}
var render = function () {
  var _vm = this
  var _h = _vm.$createElement
  var _c = _vm._self._c || _h
}
var recyclableRender = false
var staticRenderFns = []
render._withStripped = true



/***/ }),

/***/ 65:
/*!*******************************************************************************************************************!*\
  !*** C:/Users/77876/Documents/HBuilderProjects/qc-signIn-yanguang/pages/index/index.vue?vue&type=script&lang=js& ***!
  \*******************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./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!./index.vue?vue&type=script&lang=js& */ 66);
/* harmony import */ var _D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
 /* harmony default export */ __webpack_exports__["default"] = (_D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),

/***/ 66:
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./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 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {

var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 10));
var _objectWithoutProperties2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ 67));
var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 40));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 42));
var _api = __webpack_require__(/*! @/api/api.js */ 69);
var _ad_config = __webpack_require__(/*! @/utils/ad_config.js */ 71);
var _excluded = ["mainSwitch", "itemSettings"],
  _excluded2 = ["mpName"],
  _excluded3 = ["errMsg"];
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

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 */ 111));
  }).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 */ 118));
  }).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,
      // 是否展开活动规则
      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
        }]
      },
      // 签到相关信息
      openId: '',
      mpData: {},
      // 公众号相关
      isSignIn: true,
      // 是否已经签到
      userId: undefined,
      // 用户ID
      signIdTemID: [],
      // 签到提醒模板ID
      isMainSwitch: true,
      // 是否关闭了通知按钮
      isAlwaysCancel: false,
      // 是否点击了总是允许取消
      signInDay: {},
      // 今天签到信息
      scale: 1,
      btAnimation: null,
      // 按钮呼吸动画实例
      btAnimationData: {},
      // 按钮呼吸动画
      btScale: 1,
      tsTitle: '+100金币',
      // 提示文字
      durationMath1: 20,
      durationMath2: 20,
      animationDataTs: {},
      // 提示文字动画
      goldData: [{
        top: '532rpx',
        left: '82rpx'
      }, {
        top: '532rpx',
        left: '252rpx'
      }, {
        top: '532rpx',
        left: '426rpx'
      }, {
        top: '532rpx',
        left: '600rpx'
      }, {
        top: '724rpx',
        left: '82rpx'
      }, {
        top: '724rpx',
        left: '252rpx'
      }, {
        top: '724rpx',
        left: '426rpx'
      }, {
        top: '724rpx',
        left: '484rpx'
      }],
      animationDatas: [null, null, null, null, null, null, null, null],
      // 金币动画组
      getIntoCount: 0,
      loading: false,
      powerOnTimer: new Date().getTime(),
      // 保存当前进入页面的时间挫
      isVideoType: null,
      // 1 是否是看视频签到 2 是否是补签
      repairSignData: null,
      // 保存补签的信息
      powerOnCount: 0,
      // 记录开机秒数
      balanceCount: 0,
      // 余额
      mpAppIdShow: false,
      codeValud: '',
      codeImage: null,
      status: false
    };
  },
  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;
    try {
      var value = uni.getStorageSync('storage_key');
      if (value) {
        // 内存找到有
        this.mpAppIdShow = true;
        if (options.mpAppId) {
          // 链接上带有保存
          uni.setStorageSync('storage_key', options.mpAppId);
          // uni.setNavigationBarTitle({ title: '签到有礼' })
        }
      } else {
        // 内存没找到
        if (options.mpAppId) {
          // 链接上带有
          this.mpAppIdShow = true;
          uni.setStorageSync('storage_key', options.mpAppId);
          // uni.setNavigationBarTitle({ title: '签到有礼' })
        } else {
          this.mpAppIdShow = false;
          // uni.setNavigationBarTitle({ title: '生成二维码' })
        }
      }
    } catch (e) {
      // error
      console.log(2222222, e);
    }
    uni.login({
      success: function () {
        var _success = (0, _asyncToGenerator2.default)( /*#__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;
      }()
    });
    (0, _api.getState)({
      appId: _api.config.appid
    }).then(function (res) {
      _this2.status = res.data || false;
    });
  },
  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);
    this.interstitialAd.destroy();
    adTimer && clearTimeout(adTimer);
    powerOnTimer && clearInterval(powerOnTimer);
  },
  methods: {
    onKeyInput: function onKeyInput(e) {
      this.codeValud = e.target.value;
    },
    load: function load() {
      uni.hideLoading();
    },
    error: function error() {
      uni.hideLoading();
    },
    getCodeImg: function getCodeImg() {
      if (this.codeValud) {
        uni.showLoading({
          title: '生成中'
        });
        this.codeImage = "https://api.uomg.com/api/qrcode?url=".concat(this.codeValud);
      } else {
        uni.showToast({
          title: '请先输入内容~~',
          icon: 'none'
        });
      }
    },
    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() {
      // uni.showToast({
      // 	title: '请先关注公众号~~',
      // 	icon: 'none'
      // })
      this.signData = {
        sustainDayCount: 1,
        canSupplement: 0,
        userId: null,
        mpName: null,
        signInDayVoList: [{
          signIn: true,
          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
        }]
      };
      this.startGold(false);
      this.isSignIn = false;
      uni.showToast({
        title: '签到成功~~',
        icon: 'none'
      });
    },
    powerOnShowAd: function powerOnShowAd() {
      var _this4 = this;
      // 开机25秒调取弹窗广告 以后没5分钟调取
      powerOnTimer = setInterval(function () {
        _this4.powerOnCount += 1;
        if (_this4.powerOnCount === 25 || _this4.powerOnCount % 325 === 0) {
          _this4.showInterstitialAd();
        }
      }, 1000);
    },
    // 创建插屏广告 激励视频广告
    createInterstitialAd: function createInterstitialAd() {
      var _this5 = this;
      // 创建插屏广告
      var interstitialAd = this.interstitialAd = uni.createInterstitialAd({
        adUnitId: _ad_config.insertScreenAd
      });
      interstitialAd.onLoad(function () {
        // 插屏 广告加载成功 
        console.log("插屏 广告加载成功");
        _this5.loading = false;
      });
      interstitialAd.onClose(function () {
        // 用户点击了关闭或返回键(仅Android有返回键)
        console.log("插屏 广告关闭");
      });
      interstitialAd.onError(function (err) {
        // 插屏 广告加载失败
        console.log("插屏 广告加载失败", err);
        _this5.loading = false;
      });
      // 广告实例创建成功后默认会执行一次 load，加载广告数据
      // 如果界面有 "显示广告" 按钮，需要先禁用掉，防止用户点击，等待广告数据加载成功后在放开
      this.loading = true;

      // 激励视频广告
      this._isLoaded = false;
      var rewardedVideoAd = this._rewardedVideoAd = uni.createRewardedVideoAd({
        adUnitId: _ad_config.urgeVideoAd
      }); // 仅用于HBuilder基座调试 adpid: '1507000689'
      rewardedVideoAd.onLoad(function () {
        _this5._isLoaded = true;
        console.log('onLoad event');
        // 加载激励视频成功
        // 当激励视频被关闭时，默认预载下一条数据，加载完成时仍然触发 `onLoad` 事件
      });

      rewardedVideoAd.onError(function (err) {
        // 加载激励视频失败
        // console.log('onError event', err)
        _this5._isLoaded = false;
      });
      rewardedVideoAd.onClose(function (res) {
        // 用户点击了【关闭广告】按钮
        if (res && res.isEnded) {
          // 正常播放结束
          if (_this5.isVideoType === 1) {
            // 看视频签到
            _this5.signInHandle(true);
          } else if (_this5.isVideoType === 2) {
            // 看视频补签
            _this5.repairSign(_this5.repairSignData);
          } else if (_this5.isVideoType === 3) {
            _this5.getCodeImg();
          }
        } else {
          // 播放中途退出
        }
      });
    },
    // 显示插屏广告广告
    showInterstitialAd: function showInterstitialAd() {
      var _this6 = this;
      // 调用 interstitialAd.show()，如果数据正在加载中不会显示广告，加载成功后才显示
      // 在数据没有加载成功时，需要防止用户频繁点击显示广告
      if (adTimer) {
        clearTimeout(adTimer);
      }
      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);
        });
      }
    },
    // 补签点击
    signatureHandle: function signatureHandle(type, data) {
      if (!_ad_config.urgeVideoAd) {
        // 判断是否有视频ID
        this.repairSign(this.repairSignData);
        return;
      } else {
        this.showVideoAd(type, data);
      }
    },
    // 显示激励视频广告
    showVideoAd: function showVideoAd(type, data) {
      var _this7 = this;
      if (this._isLoaded) {
        this.isVideoType = type;
        this.repairSignData = data;
        this._rewardedVideoAd.show().catch(function () {
          _this7._rewardedVideoAd && _this7._rewardedVideoAd.load().then(function () {
            return _this7._rewardedVideoAd && _this7._rewardedVideoAd.show();
          }).catch(function (err) {
            uni.showToast({
              title: '当前无视频广告',
              icon: 'none'
            });
          });
        });
      } else {
        if (type === 1) {
          // 看视频签到
          this.signInHandle(true);
        } else if (type === 2) {
          // 看视频补签
          this.repairSign(this.repairSignData);
        } else if (type === 3) {
          this.getCodeImg();
        }
      }
    },
    /** 看视频签到 */lookVideo: function lookVideo() {
      if (_ad_config.urgeVideoAd) {
        this.showVideoAd(1);
      } else {
        this.signInHandle(true);
      }
    },
    // 按钮呼吸
    btBreathAni: function btBreathAni() {
      var _this8 = this;
      btTimer = setInterval(function () {
        if (_this8.btScale === 1) {
          _this8.btScale = 0.92;
          _this8.btAnimation.scale(0.92).step({
            duration: 600
          });
          _this8.btAnimationData = _this8.btAnimation.export();
        } else {
          _this8.btScale = 1;
          _this8.btAnimation.scale(1).step({
            duration: 600
          });
          _this8.btAnimationData = _this8.btAnimation.export();
        }
      }, 600);
    },
    // 提示动画
    startTsAni: function startTsAni(watchVideos) {
      if (watchVideos) {
        this.tsTitle = '+' + this.signInDay.bookCoin * 2 + '书币';
      } else {
        this.tsTitle = '+' + (this.signInDay.bookCoin || 10) + '书币';
      }
      if (this.durationMath2 >= 50) {
        this.durationMath2 = 20;
      } else {
        this.durationMath2 = this.durationMath2 + 1;
      }
      var animation = uni.createAnimation({
        timingFunction: 'ease'
      });
      animation.opacity(1).step({
        duration: this.durationMath2
      });
      animation.top('150rpx').step({
        duration: 1000,
        delay: 100
      });
      animation.opacity(0).top('350rpx').step({
        duration: 0
      });
      this.animationDataTs = animation.export();
    },
    // 金币组动画
    startGold: function startGold(watchVideos) {
      var _this9 = this;
      this.startTsAni(watchVideos);
      if (this.durationMath1 >= 50) {
        this.durationMath1 = 20;
      } else {
        this.durationMath1 = this.durationMath1 + 1;
      }
      this.animationDatas = this.goldData.map(function (item) {
        var animation = uni.createAnimation({
          timingFunction: 'ease'
        });
        animation.opacity(1).step({
          duration: _this9.durationMath1
        });
        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
        });
        return animation.export();
      });
    },
    // 更多书币
    moreGold: function moreGold() {
      var path = 'pages/index/index';
      if (Object.keys(this.mpData).length > 0) {
        path = path + this.getSerialize(this.mpData);
      }
      uni.navigateToMiniProgram({
        appId: 'wxe1b04d1d8f6df382',
        path: path,
        success: function success(res) {
          // 打开成功
        }
      });
    },
    // 对象序列化成 a=1&b=2
    getSerialize: function getSerialize(value) {
      if (Object.prototype.toString.call(value) === "[object Object]") {
        var path = "";
        for (var key in value) {
          if (Object.prototype.hasOwnProperty.call(value, key)) {
            var element = value[key];
            if (path === "") {
              path = "?".concat(key, "=").concat(element);
            } else {
              path = path + "&".concat(key, "=").concat(element);
            }
          }
        }
        return path;
      } else {
        return "";
      }
    },
    // 判断模板消息是否点击了总是允许
    getSetting: function getSetting() {
      return new Promise(function (resolve, reject) {
        uni.getSetting({
          withSubscriptions: true,
          success: function success(resSetting) {
            console.log('订阅消息---->', resSetting);
            var subscriptionsSetting = resSetting.subscriptionsSetting;
            if (subscriptionsSetting) {
              var mainSwitch = subscriptionsSetting.mainSwitch,
                itemSettings = subscriptionsSetting.itemSettings,
                data = (0, _objectWithoutProperties2.default)(subscriptionsSetting, _excluded);
              if (data && Object.keys(data).length > 0) {
                if (mainSwitch) {
                  for (var key in data) {
                    if (Object.prototype.hasOwnProperty.call(data, key)) {
                      var element = data[key];
                      if (element === 'accept') {
                        resolve(200); // 总是允许开启
                      } else {
                        resolve(400); // 总是允许取消
                      }
                    }
                  }
                } else {
                  resolve(401); // 后台关闭开关
                }
              } else {
                resolve(402); // 没有点总是允许
              }
            } else {
              resolve(402); // 没有点总是允许
            }
          }
        });
      });
    },
    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 = (0, _objectWithoutProperties2.default)(_this$mpData, _excluded2);
      (0, _api.setMessage)(_objectSpread({
        appId: _api.config.appid,
        openId: this.openId,
        allowSwitch: allowSwitch,
        remindSwitch: remindSwitch
      }, mp)).then(function (res) {
        _this10.getList();
        _this10.showInterstitialAd();
      });
    },
    // 获取模板签到ID
    getTemplate: function getTemplate() {
      var _this11 = this;
      (0, _api.getTemplateIDs)({
        appId: _api.config.appid,
        type: 1
      }).then(function (res) {
        _this11.signIdTemID = [res.data];
      });
    },
    // 获取首页数据
    getList: function getList(signTime) {
      var _this12 = this;
      return (0, _asyncToGenerator2.default)( /*#__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;
                if (res.data) {
                  _this12.mpData = {
                    mpAppId: res.data.mpAppId,
                    mpName: res.data.mpName,
                    mpOpenId: res.data.mpOpenId
                  };
                  _this12.signData = res.data;
                  _this12.signRemind = res.data.loginRemindSwitch === 0 ? false : true;
                  _this12.getTemplate();
                  _this12.getBookCurr();
                }
              case 5:
              case "end":
                return _context2.stop();
            }
          }
        }, _callee2);
      }))();
    },
    /** 补签*/repairSign: function repairSign(data) {
      var _this13 = this;
      var 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) {
        _this13.getList(res.data);
        _this13.startGold(false);
        uni.showToast({
          title: '补签成功',
          icon: 'success'
        });
        setTimeout(function () {
          _this13.showInterstitialAd();
        }, 20000);
      });
    },
    getTimer: function getTimer() {
      // 获取年月日时分秒
      var timestamp = Date.parse(new Date());
      var date = new Date(timestamp);
      var Y = date.getFullYear();
      var M = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1;
      var D = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();
      return "".concat(Y).concat(M).concat(D);
    },
    /** 签到提醒按钮 */signRemindHandle: function signRemindHandle(state) {
      var _this14 = this;
      if (!this.signData.mpName) {
        uni.navigateTo({
          url: '../officialAccount/officialAccount'
        });
        return;
      }
      if (state) {
        // 点击开启
        if (this.signIdTemID.length > 0) {
          uni.requestSubscribeMessage({
            tmplIds: this.signIdTemID,
            success: function () {
              var _success2 = (0, _asyncToGenerator2.default)( /*#__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 = (0, _objectWithoutProperties2.default)(res, _excluded3);
                        console.log('------>', res);
                        _context3.next = 4;
                        return _this14.getSetting();
                      case 4:
                        msg = _context3.sent;
                        console.log('----2222---->', msg);
                        if (!(msg === 400)) {
                          _context3.next = 11;
                          break;
                        }
                        uni.showToast({
                          title: '签到消息微信关闭，如要开启通知，请到通知管理开启',
                          icon: 'none',
                          duration: 2000
                        });
                        return _context3.abrupt("return");
                      case 11:
                        if (msg === 401) {
                          uni.showToast({
                            title: '通知管理按钮关闭，如要开启通知，请到通知管理开启',
                            icon: 'none',
                            duration: 2000
                          });
                        } else {
                          for (key in massageData) {
                            if (Object.prototype.hasOwnProperty.call(massageData, key)) {
                              element = massageData[key];
                              if (element === 'accept') {
                                // 允许
                                console.log('msg--->', msg);
                                _this14.handleMessage(1, msg === 200 ? 1 : 0);
                              } else if (element === 'reject') {// 取消
                              }
                            }
                          }
                        }
                      case 12:
                      case "end":
                        return _context3.stop();
                    }
                  }
                }, _callee3);
              }));
              function success(_x2) {
                return _success2.apply(this, arguments);
              }
              return success;
            }()
          });
        } else {
          uni.showToast({
            title: '模板ID为空',
            icon: 'none'
          });
        }
      } else {
        // 点击关闭
        this.handleMessage(0, 0);
      }
    },
    /** 活动规则展开和收起  */activityRulesHandle: function activityRulesHandle() {
      this.activityRules = !this.activityRules;
    },
    /** 签到 */signIn: function signIn() {
      if (!this.signData.mpName) {
        uni.showToast({
          title: '请先关注公众号',
          icon: 'none'
        });
        return;
      }
      this.signInDay = this.signData.signInDayVoList.find(function (item) {
        return item.canSign;
      });
      this.popupShow = true;
    },
    /** 关闭弹窗 */closeHandle: function closeHandle() {
      this.popupShow = false;
      this.signInHandle(false);
    },
    /** 签到 */signInHandle: function signInHandle(watchVideo) {
      var _this15 = this;
      var signInDay = this.signData.signInDayVoList.find(function (item) {
        return item.canSign;
      });
      console.log(signInDay);
      if (signInDay) {
        var dayTime = signInDay.dayTime,
          dayNum = signInDay.dayNum,
          signIn = signInDay.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) {
            _this15.getList();
            _this15.startGold(watchVideo);
            _this15.popupShow = false;
            if (!watchVideo) {
              _this15.showInterstitialAd();
            } else {
              setTimeout(function () {
                _this15.showInterstitialAd();
              }, 20000);
            }
          });
        } else {
          uni.showToast({
            title: '今日已签！',
            icon: 'error'
          });
        }
      } else {
        uni.showToast({
          title: '数据获取失败！',
          icon: 'error'
        });
      }
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))

/***/ }),

/***/ 72:
/*!****************************************************************************************************************************!*\
  !*** C:/Users/77876/Documents/HBuilderProjects/qc-signIn-yanguang/pages/index/index.vue?vue&type=style&index=0&lang=scss& ***!
  \****************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _D_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_D_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_D_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./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!./index.vue?vue&type=style&index=0&lang=scss& */ 73);
/* harmony import */ var _D_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_D_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_D_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_D_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_D_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_D_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _D_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_D_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_D_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _D_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_D_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_D_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
 /* harmony default export */ __webpack_exports__["default"] = (_D_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_D_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_D_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),

/***/ 73:
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./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 */
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin
    if(false) { var cssReload; }
  

/***/ })

},[[61,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map