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

/***/ 25:
/*!**************************************************************!*\
  !*** D:/Lee/mall-laonong/main.js?{"page":"pages%2Fmy%2Fmy"} ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(createPage) {__webpack_require__(/*! uni-pages */ 5);


var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 4));
var _my = _interopRequireDefault(__webpack_require__(/*! ./pages/my/my.vue */ 26));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} // @ts-ignore
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;createPage(_my.default);
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["createPage"]))

/***/ }),

/***/ 26:
/*!*******************************************!*\
  !*** D:/Lee/mall-laonong/pages/my/my.vue ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _my_vue_vue_type_template_id_0be17cc6___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./my.vue?vue&type=template&id=0be17cc6& */ 27);
/* harmony import */ var _my_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./my.vue?vue&type=script&lang=js& */ 29);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _my_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 _my_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 11);

var renderjs




/* normalize component */

var component = Object(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
  _my_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
  _my_vue_vue_type_template_id_0be17cc6___WEBPACK_IMPORTED_MODULE_0__["render"],
  _my_vue_vue_type_template_id_0be17cc6___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  false,
  null,
  null,
  null,
  false,
  _my_vue_vue_type_template_id_0be17cc6___WEBPACK_IMPORTED_MODULE_0__["components"],
  renderjs
)

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

/***/ }),

/***/ 27:
/*!**************************************************************************!*\
  !*** D:/Lee/mall-laonong/pages/my/my.vue?vue&type=template&id=0be17cc6& ***!
  \**************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_my_vue_vue_type_template_id_0be17cc6___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./my.vue?vue&type=template&id=0be17cc6& */ 28);
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_my_vue_vue_type_template_id_0be17cc6___WEBPACK_IMPORTED_MODULE_0__["render"]; });

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

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

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



/***/ }),

/***/ 28:
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./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!D:/Lee/mall-laonong/pages/my/my.vue?vue&type=template&id=0be17cc6& ***!
  \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! 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 = {
    tabbar: function() {
      return __webpack_require__.e(/*! import() | components/tabbar/tabbar */ "components/tabbar/tabbar").then(__webpack_require__.bind(null, /*! @/components/tabbar/tabbar.vue */ 154))
    }
  }
} 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 m0 = _vm.isLoading ? parseFloat(_vm.userInfo.balance) : null
  var l0 = _vm.isLoading
    ? _vm.__map(_vm.myOrder, function(item, index) {
        var $orig = _vm.__get_orig(item)

        var g0 =
          _vm.orderObj.indexOf(index.toString()) != -1 &&
          _vm.myOrder[index].num > 0
        return {
          $orig: $orig,
          g0: g0
        }
      })
    : null
  var l1 = _vm.isLoading
    ? _vm.__map(_vm.listData, function(item, index) {
        var $orig = _vm.__get_orig(item)

        var g1 = _vm.showObj.indexOf(index.toString())
        return {
          $orig: $orig,
          g1: g1
        }
      })
    : null
  _vm.$mp.data = Object.assign(
    {},
    {
      $root: {
        m0: m0,
        l0: l0,
        l1: l1
      }
    }
  )
}
var recyclableRender = false
var staticRenderFns = []
render._withStripped = true



/***/ }),

/***/ 29:
/*!********************************************************************!*\
  !*** D:/Lee/mall-laonong/pages/my/my.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 _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_my_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./my.vue?vue&type=script&lang=js& */ 30);
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_my_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_my_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_my_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 _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_my_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
 /* harmony default export */ __webpack_exports__["default"] = (_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_my_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),

/***/ 30:
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./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!D:/Lee/mall-laonong/pages/my/my.vue?vue&type=script&lang=js& ***!
  \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;





























































































var _publicApi = __webpack_require__(/*! @/jsFile/public-api.js */ 24);
var _vuex = __webpack_require__(/*! vuex */ 13);var tabbar = function tabbar() {__webpack_require__.e(/*! require.ensure | components/tabbar/tabbar */ "components/tabbar/tabbar").then((function () {return resolve(__webpack_require__(/*! @/components/tabbar/tabbar.vue */ 154));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);}; //引入mapState
var _default = {
  components: {
    tabbar: tabbar },

  data: function data() {
    return {
      statusHeight: uni.getSystemInfoSync().statusBarHeight,
      scroolTop: false, //是否显示顶部
      headPortrait: '', //头像
      nickName: '', //用户名
      businessCode: '', //是否会员
      customerSrc: '', //商家客服二维码
      vip_info: {}, //会员信息
      myOrder: [
      { title: '全部', tag: 'all', imgSrc: '/static/icon/icon-order-01.png', num: 0, iconWidth: 42, iconHeight: 44 },
      { title: '待付款', tag: 'waiting', imgSrc: '/static/icon/icon-order-02.png', num: 0, iconWidth: 46, iconHeight: 40 },
      { title: '已下单', tag: 'paid', imgSrc: '/static/icon/icon-order-03.png', num: 0, iconWidth: 50, iconHeight: 44 },
      { title: '已发货', tag: 'shipped', imgSrc: '/static/icon/icon-order-04.png', num: 0, iconWidth: 48, iconHeight: 42 },
      { title: '已完成', tag: 'completed', imgSrc: '/static/icon/icon-order-05.png', num: 0, iconWidth: 49, iconHeight: 44 }],
      //订单
      listData: [
      { titele: '个人资料', imgSrc: '/static/icon/icon-my-01.png', iconWidth: 35, iconHeight: 36 },
      { titele: '注册会员', imgSrc: '/static/icon/icon-my-02.png', iconWidth: 40, iconHeight: 34 },
      { titele: '地址管理', imgSrc: '/static/icon/icon-my-03.png', iconWidth: 32, iconHeight: 40 },
      { titele: '余额充值', imgSrc: '/static/icon/icon-my-04.png', iconWidth: 34, iconHeight: 28 },
      { titele: '积分管理', imgSrc: '/static/icon/icon-my-05.png', iconWidth: 32, iconHeight: 30 },
      { titele: '分销管理', imgSrc: '/static/icon/icon-my-06.png', iconWidth: 35, iconHeight: 35 },
      { titele: '优惠券管理', imgSrc: '/static/icon/icon-my-07.png', iconWidth: 38, iconHeight: 27 },
      { titele: '免责声明', imgSrc: '/static/icon/icon-my-08.png', iconWidth: 40, iconHeight: 40 },
      { titele: '关于我们', imgSrc: '/static/icon/icon-my-09.png', iconWidth: 40, iconHeight: 40 }],
      //列表数据
      vip_level: 0, // 是否会员
      isVip: false, //会员申请弹窗
      myName: '', //姓名
      myPhone: '', //电话
      flag: true,
      vipCode: '', //会员码
      showObj: '012345678', //显示列表
      mobile: '', //联系方式
      orderObj: '123', //订单显示
      userInfo: '', //用户信息
      isLoading: false,
      shareFlag: true, //是否可分享
      codeImg: '', //分销码
      is_distributor: 0 //是否经销商
    };
  },
  onHide: function onHide() {

  },
  onShow: function onShow() {
    // 获取用户信息
    this.getUserInfo();
    // 刷新购物车信息
    (0, _publicApi.getCartInfo)();
  },
  methods: {
    // 获取用户信息
    getUserInfo: function getUserInfo() {var _this = this;
      uni.showLoading({
        title: '加载中' });

      this.$requst.get('/api/user/info').then(function (res) {
        console.log(res, '用户信息');
        if (res.code == 0) {
          _this.userInfo = res.data;
          var newArr = res.data.order_count;
          _this.headPortrait = res.data.headimgurl;
          _this.nickName = res.data.nickname;
          _this.mobile = res.data.mobile,
          _this.myPhone = _this.mobile,
          _this.businessCode = res.data.business_code;
          _this.vip_level = res.data.vip_level;
          _this.vip_info = res.data.vip_info;
          _this.is_distributor = res.data.is_distributor;
          _this.myOrder[0].num = newArr.all;
          _this.myOrder[1].num = newArr.waiting;
          _this.myOrder[2].num = newArr.paid;
          _this.myOrder[3].num = newArr.shipped;
          _this.myOrder[4].num = newArr.completed;
          if (_this.vip_level !== 0) {
            _this.showObj = '02345678';
          } else {
            _this.showObj = '012345678';
          }
          // 获取分销码
          _this.getCodeEv();
        }
        uni.hideLoading();
        _this.isLoading = true;
      });
    },
    // 获取分销码
    getCodeEv: function getCodeEv() {var _this2 = this;
      this.$requst.post('/api/user/my-distribution-code').then(function (res) {
        if (res.code == 0) {
          console.log(res, '分销码');
          _this2.codeImg = _this2.$hostHttp + res.data.qr;
        }
      });
    },
    // 跳转方式
    toMore: function toMore(index) {
      if (index == 0) {
        if (this.mobile !== '') {
          uni.navigateTo({
            url: "/pagesB/ucenter/ucenter" });

        }
      } else if (index == 1) {
        if (this.vip_level == 0 && this.mobile !== '') {
          this.isVip = true;
        }
      } else if (index == 2) {
        uni.navigateTo({
          url: "/pagesA/address/address" });

      } else if (index == 3) {
        uni.navigateTo({
          url: "/pagesA/recharge/recharge" });

      } else if (index == 4) {
        uni.navigateTo({
          url: "/pagesA/integral/integral" });

      } else if (index == 5) {
        if (this.is_distributor !== 0) {
          uni.navigateTo({
            url: "/pagesA/distribution/distribution" });

        } else {
          // 调用扫码功能
          this.getScanCode();
        }

      } else if (index == 6) {
        uni.navigateTo({
          url: "/pagesA/coupon/coupon" });

      } else if (index == 7) {
        uni.navigateTo({
          url: "/pagesB/disclaimers/disclaimers" });

      } else if (index == 8) {
        uni.navigateTo({
          url: "/pagesB/about/about" });

      }
    },
    // 调用扫码功能
    getScanCode: function getScanCode() {var _this3 = this;
      uni.scanCode({
        success: function success(res) {
          console.log(res.path, '扫码成功');
          var path = "/".concat(res.path);
          if (path.indexOf('/pagesB/distributor/distributor') == 0) {
            uni.navigateTo({
              url: path });

          } else {
            _this3.$toolAll.tools.showToast('请扫正确的二维码');
          }
        } });


    },
    // 获取授权信息
    onGetPhoneNumberA: function onGetPhoneNumberA(e) {var _this4 = this;
      if (e.detail.errMsg == "getPhoneNumber:fail user deny") {//用户决绝授权
        this.$toolAll.tools.showToast('您已拒绝授权');
      } else {//允许授权  
        var params = {
          iv: e.detail.iv,
          encryptedData: e.detail.encryptedData };

        this.$requst.post('/api/user/bind-phone', params).then(function (res) {
          if (res.code == 0) {
            _this4.$toolAll.tools.showToast('绑定成功');
            _this4.getUserInfo();
            uni.navigateTo({
              url: "/pagesB/ucenter/ucenter" });

          } else {
            _this4.$toolAll.tools.showToast(res.msg);
          }
        });

      }
    },
    onGetPhoneNumberB: function onGetPhoneNumberB(e) {var _this5 = this;
      if (e.detail.errMsg == "getPhoneNumber:fail user deny") {//用户决绝授权
        this.$toolAll.tools.showToast('您已拒绝授权');
      } else {//允许授权  
        var params = {
          iv: e.detail.iv,
          encryptedData: e.detail.encryptedData };

        this.$requst.post('/api/user/bind-phone', params).then(function (res) {
          if (res.code == 0) {
            _this5.$toolAll.tools.showToast('绑定成功');
            _this5.getUserInfo();
            _this5.isVip = true;
          } else {
            _this5.$toolAll.tools.showToast(res.msg);
          }
        });

      }
    },

    // 提交会员申请
    submitEv: function submitEv() {var _this6 = this;
      if (this.checkEmpty() && this.flag) {
        this.flag = false;
        var params = {
          real_name: this.myName,
          mobile: this.myPhone };

        this.$requst.post('/api/user/register-vip', params).then(function (res) {
          if (res.code == 0) {
            _this6.closeEv(); //关闭会员申请
            _this6.getUserInfo(); // 刷新信息
          } else {
            _this6.$toolAll.tools.showToast(res.msg);
          }
          setTimeout(function () {
            _this6.flag = true;
          }, 2000);
        });
      }
    },

    // 验证表单
    checkEmpty: function checkEmpty() {
      var result = false;
      if (!this.myName) {
        this.$toolAll.tools.showToast('请填写姓名');
      } else if (this.$toolAll.tools.isPhone(this.myPhone)) {
        this.$toolAll.tools.showToast('请正确填写联系电话');
      } else {
        result = true;
      }
      return result;
    },

    // 去对应页面
    goPage: function goPage(url) {
      uni.navigateTo({
        url: url });

    },

    //关闭会员申请
    closeEv: function closeEv() {
      this.isVip = false;
      this.myName = '';
      this.flag = true;
    },

    // 跳转订单管理
    changeOrder: function changeOrder(index) {
      uni.navigateTo({
        url: "/pagesA/order/order?tag=".concat(this.myOrder[index].tag, "&index=").concat(index) });

    } } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))

/***/ })

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