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

/***/ 54:
/*!************************************************************************************!*\
  !*** E:/src/siweidingzhi_mail/shop4.3.57/main.js?{"page":"pages%2Findex%2Findex"} ***!
  \************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(createPage) {__webpack_require__(/*! uni-pages */ 4);
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 2));
var _index = _interopRequireDefault(__webpack_require__(/*! ./pages/index/index.vue */ 55));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
createPage(_index.default);
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["createPage"]))

/***/ }),

/***/ 55:
/*!*****************************************************************!*\
  !*** E:/src/siweidingzhi_mail/shop4.3.57/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& */ 56);
/* harmony import */ var _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.vue?vue&type=script&lang=js& */ 58);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (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 _C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 10);

var renderjs




/* normalize component */

var component = Object(_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["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);

/***/ }),

/***/ 56:
/*!************************************************************************************************!*\
  !*** E:/src/siweidingzhi_mail/shop4.3.57/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 _C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_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& */ 57);
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_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 _C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_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 _C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_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 _C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_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"]; });



/***/ }),

/***/ 57:
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./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!E:/src/siweidingzhi_mail/shop4.3.57/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
var render = function() {
  var _vm = this
  var _h = _vm.$createElement
  var _c = _vm._self._c || _h
}
var recyclableRender = false
var staticRenderFns = []
render._withStripped = true



/***/ }),

/***/ 58:
/*!******************************************************************************************!*\
  !*** E:/src/siweidingzhi_mail/shop4.3.57/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 _C_develop_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_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& */ 59);
/* harmony import */ var _C_develop_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_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(_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_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 _C_develop_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_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(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _C_develop_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_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"] = (_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_C_develop_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_C_develop_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); 

/***/ }),

/***/ 59:
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./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!E:/src/siweidingzhi_mail/shop4.3.57/pages/index/index.vue?vue&type=script&lang=js& ***!
  \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _regenerator = _interopRequireDefault(__webpack_require__(/*! ./node_modules/@babel/runtime/regenerator */ 17));













var _vuex = __webpack_require__(/*! vuex */ 12);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (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 = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {try {var info = gen[key](arg);var value = info.value;} catch (error) {reject(error);return;}if (info.done) {resolve(value);} else {Promise.resolve(value).then(_next, _throw);}}function _asyncToGenerator(fn) {return function () {var self = this,args = arguments;return new Promise(function (resolve, reject) {var gen = fn.apply(self, args);function _next(value) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);}function _throw(err) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);}_next(undefined);});};}var appIndex = function appIndex() {__webpack_require__.e(/*! require.ensure | components/page-component/index/app-index */ "components/page-component/index/app-index").then((function () {return resolve(__webpack_require__(/*! ../../components/page-component/index/app-index.vue */ 2211));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var appDiyPage = function appDiyPage() {__webpack_require__.e(/*! require.ensure | components/page-component/index/app-diy-page */ "components/page-component/index/app-diy-page").then((function () {return resolve(__webpack_require__(/*! ../../components/page-component/index/app-diy-page.vue */ 2218));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var appBuyPrompt = function appBuyPrompt() {__webpack_require__.e(/*! require.ensure | components/page-component/app-buy-prompt/app-buy-prompt */ "components/page-component/app-buy-prompt/app-buy-prompt").then((function () {return resolve(__webpack_require__(/*! ../../components/page-component/app-buy-prompt/app-buy-prompt.vue */ 2225));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var appMyApp = function appMyApp() {__webpack_require__.e(/*! require.ensure | components/page-component/app-my-app/app-my-app */ "components/page-component/app-my-app/app-my-app").then((function () {return resolve(__webpack_require__(/*! ../../components/page-component/app-my-app/app-my-app.vue */ 2232));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var appAttr = function appAttr() {__webpack_require__.e(/*! require.ensure | components/page-component/app-attr/app-attr */ "components/page-component/app-attr/app-attr").then((function () {return resolve(__webpack_require__(/*! ../../components/page-component/app-attr/app-attr.vue */ 2239));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var _default =







{
  name: 'index',

  components: {
    appIndex: appIndex,
    'app-diy-page': appDiyPage,
    appBuyPrompt: appBuyPrompt,
    appMyApp: appMyApp,
    appAttr: appAttr },


  data: function data() {
    return {
      homePages: [],
      type: '',
      is_storage: false,
      haveBackground: true,
      destroy: true,
      pageHide: false,
      is_required: true,
      coupon_req: false,
      page_id: 0,
      //
      attrGoods: {
        goods: {},
        attrShow: 0 } };


  },

  onShow: function onShow() {



    this.pageHide = false;
  },
  onHide: function onHide() {



    this.pageHide = true;
  },
  onLoad: function onLoad(options) {var _this = this;
    // 测试下分支
    if (typeof options.scene !== 'undefined') {
      if (options.scene === 'share') {
        this.share(options);
      } else {
        this.qrcode(options);
      }
    } else {
      // this.$showLoading();
    }







    if (typeof options.user_id !== 'undefined') {
      this.$store.dispatch('user/setTempParentId', options.user_id);
    }

    this.page_id = typeof options.page_id !== 'undefined' ? Number(options.page_id) : 0;
    // mall
    if (this.page_id === 0) {
      var storage = this.$storage.getStorageSync('INDEX_MALL');
      if (storage) {
        var old = new Date(storage.time.replace(/-/g, '/'));
        old.setMinutes(old.getMinutes() + 10);
        var now = new Date();
        var time = now.getTime() - old.getTime();
        if (time >= 0) {
          this.type = storage.type;
          this.homePages = storage.home_pages;
          this.loadMall();
        } else {
          this.type = storage.type;
          if (this.type === 'diy') {
            this.coupon_req = true;
            this.homePages = {};
          }
          this.$nextTick(function () {
            _this.homePages = storage.home_pages;
            var that = _this;
            if (_this.homePages.navs && _this.homePages.navs.length > 0) {
              _this.homePages.navs.forEach(function (row, inedx) {
                row.template.data.forEach(function (v, idx) {
                  if (v.id === 'background') {
                    that.haveBackground = false;
                    return false;
                  }
                });
              });
            }
          });
          this.is_required = false;
        }
      } else {
        this.loadMall();
      }
      //  DIY
    } else {
      this.coupon_req = true;
      this.loadDiy();
    }


    wx.showShareMenu({
      menus: ['shareAppMessage', 'shareTimeline'] });

    var updateManager = wx.getUpdateManager();
    if (updateManager) {
      updateManager.onCheckForUpdate(function (res) {
        // 请求完新版本信息的回调
      });

      updateManager.onUpdateReady(function () {
        wx.showModal({
          title: '更新提示',
          content: '新版本已经准备好，是否重启应用？',
          success: function success(res) {
            if (res.confirm) {
              // 新的版本已经下载好，调用 applyUpdate 应用新版本并重启
              updateManager.applyUpdate();
            }
          } });

      });
    }

  },


  onPageScroll: function onPageScroll(e) {
    this.$store.dispatch('page/actionSetScrollTop', e.scrollTop);
  },


  methods: {
    loadMall: function loadMall() {var _this2 = this;return _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee() {var e, code, data, that;return _regenerator.default.wrap(function _callee$(_context) {while (1) {switch (_context.prev = _context.next) {case 0:_context.next = 2;return (
                  _this2.$request({
                    url: _this2.$api.index.tplIndex,
                    data: {
                      page_id: 0 },

                    method: 'get' }));case 2:e = _context.sent;


                code = e.code, data = e.data;
                _this2.$hideLoading();
                if (code === 0) {
                  _this2.is_storage = false;
                  _this2.$popupAd.show = null;
                  _this2.type = data.type;
                  that = _this2;
                  _this2.is_required = true;
                  if (_this2.type === 'diy') {
                    _this2.coupon_req = true;
                    _this2.homePages = {};
                  }
                  _this2.$nextTick(function () {
                    _this2.homePages = data.home_pages;
                    if (_this2.homePages.navs && that.homePages.navs.length > 0) {
                      _this2.homePages.navs.forEach(function (row, inedx) {
                        row.template.data.forEach(function (v, idx) {
                          if (v.id === 'background') {
                            that.haveBackground = false;
                            return false;
                          }
                        });
                      });
                    }
                  });
                  _this2.$storage.setStorageSync('INDEX_MALL', data);
                }case 6:case "end":return _context.stop();}}}, _callee);}))();
    },
    loadDiy: function loadDiy() {var _this3 = this;return _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee2() {var e, code, data, that;return _regenerator.default.wrap(function _callee2$(_context2) {while (1) {switch (_context2.prev = _context2.next) {case 0:_context2.next = 2;return (
                  _this3.$request({
                    url: _this3.$api.index.tplIndex,
                    data: {
                      page_id: _this3.page_id },

                    method: 'get' }));case 2:e = _context2.sent;

                code = e.code, data = e.data;
                _this3.$hideLoading();
                if (code === 0) {
                  _this3.is_storage = false;
                  _this3.$popupAd.show = null;
                  _this3.homePages = data.home_pages;
                  _this3.type = data.type;
                  that = _this3;
                  if (_this3.homePages.navs && that.homePages.navs.length > 0) {
                    _this3.homePages.navs.forEach(function (row, inedx) {
                      row.template.data.forEach(function (v, idx) {
                        if (v.id === 'background') {
                          that.haveBackground = false;
                          return false;
                        }
                      });
                    });
                  }
                }case 6:case "end":return _context2.stop();}}}, _callee2);}))();
    },
    share: function share(options) {
      if (typeof options.params !== 'undefined') {
        var params = JSON.parse(options.params);
        this.$jump({
          url: params.path + '?' + this.$utils.objectToUrlParams(params),
          open_type: 'navigate' });

      }
    },
    qrcode: function qrcode(options) {var _this4 = this;
      this.$request({
        url: this.$api.default.qrcode_parameter,
        data: {
          token: options.scene } }).

      then(function (response) {
        if (response.code === 0) {
          _this4.$store.dispatch('page/actionSetQeury', null);var _response$data$detail =
          response.data.detail,data = _response$data$detail.data,path = _response$data$detail.path;
          var url = path == 'plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin' ? "".concat(path) : "/".concat(path);
          if (data) {
            url += '?' + _this4.$utils.objectToUrlParams(data);
            if (typeof data.user_id !== 'undefined') {
              _this4.$store.dispatch('user/setTempParentId', data.user_id);
            }
          }
          if ("/".concat(path) != '/pages/index/index' || typeof data.page_id !== 'undefined' && data.page_id !== _this4.homePages.id !== 0) {
            _this4.$jump({
              url: url,
              open_type: 'navigate' });

          }
        }
      }).catch(function () {});
    },
    buyProduct: function buyProduct(data) {
      this.attrGoods.goods = data.goods;
      this.attrGoods.attrShow = data.attrShow;
    } },

  onShareAppMessage: function onShareAppMessage() {
    var args = {
      path: '/pages/index/index',
      params: {} };

    if (this.page_id == 0) {
      args.title = this.mall.setting.share_title ? this.mall.setting.share_title : this.mall.name;
      args.imageUrl = this.mall.setting.share_pic;
    } else {
      args.title = this.homePages.title;
      args.params.page_id = this.page_id;
    }
    return this.$shareAppMessage(args);
  },
  computed: _objectSpread(_objectSpread(_objectSpread({},
  (0, _vuex.mapGetters)('mallConfig', {
    tabBarNavs: 'getNavBar',
    getTheme: 'getTheme' })),

  (0, _vuex.mapState)('mallConfig', {
    config: function config(state) {return state.mall.setting;},
    mall: function mall(state) {return state.mall;} })), {}, {

    themeObject: function themeObject() {
      return {
        back: this.getTheme + '-m-back ' + this.getTheme,
        backP: this.getTheme + '-m-back-p ' + this.getTheme,
        backO: this.getTheme + '-m-back-o ' + this.getTheme,
        theme: this.getTheme,
        color: this.getTheme + '-m-text ' + this.getTheme,
        sBack: this.getTheme + '-s-back ' + this.getTheme,
        border: this.getTheme + '-m-border ' + this.getTheme };

    } }),


  onShareTimeline: function onShareTimeline() {
    // 分享朋友圈beta
    var query = {};
    var title = '';
    if (this.page_id == 0) {
      title = this.mall.setting.share_title ? this.mall.setting.share_title : this.mall.name;
    } else {
      title = this.homePages.title;
      query.page_id = this.page_id;
    }
    return this.$shareTimeline({
      title: title,
      query: query });

  } };exports.default = _default;

/***/ })

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