luban-mall/unpackage/dist/dev/mp-weixin/pages/tabbar/my/my.js

547 lines
28 KiB
JavaScript
Raw Normal View History

2022-07-08 08:15:29 +00:00
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/tabbar/my/my"],{
2022-07-11 10:35:14 +00:00
/***/ 61:
2022-07-08 08:15:29 +00:00
/*!*************************************************************************!*\
!*** D://luban-mall/main.js?{"page":"pages%2Ftabbar%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));
2022-07-11 10:35:14 +00:00
var _my = _interopRequireDefault(__webpack_require__(/*! ./pages/tabbar/my/my.vue */ 62));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} // @ts-ignore
2022-07-08 08:15:29 +00:00
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"]))
/***/ }),
2022-07-11 10:35:14 +00:00
/***/ 62:
2022-07-08 08:15:29 +00:00
/*!****************************************************!*\
!*** D://luban-mall/pages/tabbar/my/my.vue ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
2022-07-11 10:35:14 +00:00
/* harmony import */ var _my_vue_vue_type_template_id_19e17412___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./my.vue?vue&type=template&id=19e17412& */ 63);
/* harmony import */ var _my_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./my.vue?vue&type=script&lang=js& */ 65);
2022-07-08 08:15:29 +00:00
/* 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_app_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-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 17);
var renderjs
/* normalize component */
var component = Object(_HBuilderX_app_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_19e17412___WEBPACK_IMPORTED_MODULE_0__["render"],
_my_vue_vue_type_template_id_19e17412___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
false,
null,
null,
null,
false,
_my_vue_vue_type_template_id_19e17412___WEBPACK_IMPORTED_MODULE_0__["components"],
renderjs
)
component.options.__file = "pages/tabbar/my/my.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
2022-07-11 10:35:14 +00:00
/***/ 63:
2022-07-08 08:15:29 +00:00
/*!***********************************************************************************!*\
!*** D://luban-mall/pages/tabbar/my/my.vue?vue&type=template&id=19e17412& ***!
\***********************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
2022-07-11 10:35:14 +00:00
/* harmony import */ var _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_my_vue_vue_type_template_id_19e17412___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./my.vue?vue&type=template&id=19e17412& */ 64);
2022-07-08 08:15:29 +00:00
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_my_vue_vue_type_template_id_19e17412___WEBPACK_IMPORTED_MODULE_0__["render"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_my_vue_vue_type_template_id_19e17412___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_my_vue_vue_type_template_id_19e17412___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_my_vue_vue_type_template_id_19e17412___WEBPACK_IMPORTED_MODULE_0__["components"]; });
/***/ }),
2022-07-11 10:35:14 +00:00
/***/ 64:
2022-07-08 08:15:29 +00:00
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./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://luban-mall/pages/tabbar/my/my.vue?vue&type=template&id=19e17412& ***!
\***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! 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 = {
enterCart: function() {
2022-07-13 08:04:38 +00:00
return __webpack_require__.e(/*! import() | components/enter-cart/enter-cart */ "components/enter-cart/enter-cart").then(__webpack_require__.bind(null, /*! @/components/enter-cart/enter-cart.vue */ 178))
2022-07-08 08:15:29 +00:00
},
footTab: function() {
2022-07-13 08:04:38 +00:00
return __webpack_require__.e(/*! import() | components/foot-tab/foot-tab */ "components/foot-tab/foot-tab").then(__webpack_require__.bind(null, /*! @/components/foot-tab/foot-tab.vue */ 185))
2022-07-08 08:15:29 +00:00
}
}
} 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
/***/ }),
2022-07-11 10:35:14 +00:00
/***/ 65:
2022-07-08 08:15:29 +00:00
/*!*****************************************************************************!*\
!*** D://luban-mall/pages/tabbar/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__);
2022-07-11 10:35:14 +00:00
/* harmony import */ var _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_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-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./my.vue?vue&type=script&lang=js& */ 66);
2022-07-08 08:15:29 +00:00
/* harmony import */ var _HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_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_app_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_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_app_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_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_app_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_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_app_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_app_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_app_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);
/***/ }),
2022-07-11 10:35:14 +00:00
/***/ 66:
2022-07-08 08:15:29 +00:00
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./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://luban-mall/pages/tabbar/my/my.vue?vue&type=script&lang=js& ***!
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2022-07-13 08:04:38 +00:00
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
2022-07-08 08:15:29 +00:00
2022-07-13 08:41:27 +00:00
2022-07-08 08:15:29 +00:00
2022-07-13 08:04:38 +00:00
var _publicApi = __webpack_require__(/*! @/jsFile/public-api.js */ 9);
var _vuex = __webpack_require__(/*! vuex */ 12);var statusNav = function statusNav() {__webpack_require__.e(/*! require.ensure | components/status-navs/status-nav */ "components/status-navs/status-nav").then((function () {return resolve(__webpack_require__(/*! @/components/status-navs/status-nav */ 192));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var enterCart = function enterCart() {__webpack_require__.e(/*! require.ensure | components/enter-cart/enter-cart */ "components/enter-cart/enter-cart").then((function () {return resolve(__webpack_require__(/*! @/components/enter-cart/enter-cart.vue */ 178));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var footTab = function footTab() {__webpack_require__.e(/*! require.ensure | components/foot-tab/foot-tab */ "components/foot-tab/foot-tab").then((function () {return resolve(__webpack_require__(/*! @/components/foot-tab/foot-tab.vue */ 185));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);}; //引入mapState
var _default = {
2022-07-08 08:15:29 +00:00
components: {
statusNav: statusNav,
enterCart: enterCart,
footTab: footTab },
data: function data() {
return {
newTop: uni.getSystemInfoSync().statusBarHeight + 50,
headPortrait: '', //头像
nickName: '', //用户名
businessCode: '', //是否会员
customerSrc: '', //商家客服二维码
myOrder: [
{ title: '全部订单', tag: 'all', num: 0 },
{ title: '已下单', tag: 'ordered', num: 0 },
{ title: '已完成', tag: 'completed', num: 0 },
{ title: '已取消', tag: 'closed', num: 0 }],
//订单
listData: [
{ titele: '个人资料', imgSrc: '/static/public/icon-my-01.png', iconWidth: 43, iconHeight: 43 },
{ titele: '会员码输入', imgSrc: '/static/public/icon-my-02.png', iconWidth: 41, iconHeight: 35 },
{ titele: '会员申请', imgSrc: '/static/public/icon-my-03.png', iconWidth: 40, iconHeight: 40 },
{ titele: '我的收藏', imgSrc: '/static/public/icon-my-04.png', iconWidth: 49, iconHeight: 47 },
{ titele: '关于我们', imgSrc: '/static/public/icon-my-05.png', iconWidth: 33, iconHeight: 31 },
{ titele: '免责申明', imgSrc: '/static/public/icon-my-06.png', iconWidth: 38, iconHeight: 38 },
{ titele: '是否显示会员价', imgSrc: '/static/public/icon-my-07.png', iconWidth: 39, iconHeight: 26 },
{ titele: '商家客服', imgSrc: '/static/public/icon-my-08.png', iconWidth: 35, iconHeight: 37 }],
//列表数据
2022-07-13 08:04:38 +00:00
showVip: 'true', //是否显示会员价
2022-07-08 08:15:29 +00:00
isCustomer: false, //商家客服
isVip: false, //会员申请弹窗
myName: '', //姓名
myPhone: '', //电话
inviteeName: '', //邀请人
inviteeCode: '', //会员码
flag: true,
vipCode: '', //会员码
isChecked: false //验证会员码
};
},
onReachBottom: function onReachBottom() {
},
onHide: function onHide() {
},
2022-07-12 10:07:08 +00:00
onLoad: function onLoad(op) {var _this = this;
if (op.business_id) {
this.$requst.post('/api/index/change-business', { business_id: op.business_id }).then(function (res) {
if (res.code == 0) {
_this.getUserInfo();
_this.getCustomer();
2022-07-13 08:04:38 +00:00
(0, _publicApi.userInfoEv)();
2022-07-12 10:07:08 +00:00
}
});
} else {
this.getUserInfo();
this.getCustomer();
2022-07-13 08:04:38 +00:00
(0, _publicApi.userInfoEv)();
2022-07-12 10:07:08 +00:00
}
2022-07-08 08:15:29 +00:00
},
onShow: function onShow() {
2022-07-13 08:04:38 +00:00
if (uni.getStorageSync('showVip')) {
this.showVip = uni.getStorageSync('showVip');
} else {
uni.setStorageSync('showVip', 'true');
}
2022-07-08 08:15:29 +00:00
},
methods: {
// 获取用户信息
2022-07-12 10:07:08 +00:00
getUserInfo: function getUserInfo() {var _this2 = this;
2022-07-08 08:15:29 +00:00
uni.showLoading();
this.$requst.get('/api/user/info').then(function (res) {
console.log(res, '用户信息');
if (res.code == 0) {
2022-07-12 10:07:08 +00:00
uni.setStorageSync('business_id', res.data.business_id);
2022-07-08 08:15:29 +00:00
var newArr = res.data.order_count;
2022-07-12 10:07:08 +00:00
_this2.headPortrait = res.data.headimgurl,
_this2.nickName = res.data.nickname;
_this2.businessCode = res.data.business_code;
_this2.myOrder[0].num = newArr.all,
_this2.myOrder[1].num = newArr.ordered,
_this2.myOrder[2].num = newArr.completed,
_this2.myOrder[3].num = newArr.closed;
2022-07-08 08:15:29 +00:00
}
uni.hideLoading();
});
},
// 获取商家客服
2022-07-12 10:07:08 +00:00
getCustomer: function getCustomer() {var _this3 = this;
2022-07-08 08:15:29 +00:00
this.$requst.post('/api/user/business-qr').then(function (res) {
console.log(res, '商家客服');
if (res.code == 0) {
2022-07-12 10:07:08 +00:00
_this3.customerSrc = res.data.qr;
2022-07-08 08:15:29 +00:00
}
});
},
// 是否显示会员价
2022-07-13 08:04:38 +00:00
changeShowVip: function changeShowVip() {var _this4 = this;
if (this.showVip == 'true') {
this.showVip = 'false';
} else {
this.showVip = 'true';
}
setTimeout(function () {
if (_this4.showVip == 'true') {
uni.setStorageSync('showVip', 'true');
} else {
uni.setStorageSync('showVip', 'false');
}
}, 200);
2022-07-08 08:15:29 +00:00
},
// 跳转方式
toMore: function toMore(index) {
if (index == 6) {
return false;
} else {
if (index == 0) {
uni.navigateTo({
url: "/pagesB/ucenter/ucenter" });
}
if (index == 1) {
this.isChecked = true;
}
if (index == 2) {
this.isVip = true;
}
if (index == 3) {
uni.navigateTo({
url: "/pages/tabbar/news/collection" });
}
if (index == 4) {
uni.navigateTo({
url: "/pagesB/about/about" });
}
if (index == 5) {
uni.navigateTo({
url: "/pagesB/disclaimers/disclaimers" });
}
if (index == 7) {
this.isCustomer = true;
}
}
},
// 提交会员申请
2022-07-13 08:04:38 +00:00
submitEv: function submitEv() {var _this5 = this;
2022-07-08 08:15:29 +00:00
if (this.checkEmpty() && this.flag) {
this.flag = false;
var params = {
name: this.myName,
phone: this.myPhone,
invite_name: this.inviteeName,
invite_code: this.inviteeCode };
this.$requst.post('/api/user/vip', params).then(function (res) {
if (res.code == 0) {
2022-07-13 08:04:38 +00:00
_this5.closeEv(); //关闭会员申请
_this5.getUserInfo(); // 刷新信息
2022-07-08 08:15:29 +00:00
} else {
2022-07-13 08:04:38 +00:00
_this5.$toolAll.tools.showToast(res.msg);
_this5.flag = true;
2022-07-08 08:15:29 +00:00
}
});
}
},
// 验证表单
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;
},
//关闭会员申请
closeEv: function closeEv() {
this.isVip = false;
this.myName = '';
this.myPhone = '';
this.inviteeName = '';
this.inviteeCode = '';
this.flag = true;
},
// 验证会员码
2022-07-13 08:04:38 +00:00
checkCode: function checkCode() {var _this6 = this;
2022-07-08 08:15:29 +00:00
if (this.vipCode !== '') {
this.$requst.post('/api/user/check-code', { code: this.vipCode }).then(function (res) {
if (res.code == 0) {
2022-07-13 08:04:38 +00:00
_this6.$toolAll.tools.showToast('验证成功');
_this6.closeCheck(); //清除验证信息
2022-07-08 08:15:29 +00:00
} else {
2022-07-13 08:04:38 +00:00
_this6.$toolAll.tools.showToast(res.msg);
2022-07-08 08:15:29 +00:00
}
});
} else {
this.$toolAll.tools.showToast('会员码不能为空');
}
},
// 取消验证会员码
closeCheck: function closeCheck() {
this.isChecked = false;
this.vipCode = '';
},
// 跳转订单管理
changeOrder: function changeOrder(index) {
uni.navigateTo({
url: "/pagesA/order/order?tag=".concat(this.myOrder[index].tag, "&index=").concat(index) });
},
// 选择
chooseEv: function chooseEv(obj) {
if (obj.url) {
uni.navigateTo({
url: obj.url });
} else {
// 添加微信
this.ifWx = true;
}
},
// 我的订单点击事件
chooseGe: function chooseGe(obj) {
uni.navigateTo({
url: "/pagesA/order-list/order-list?index=".concat([1, 2, 3, 4][obj.index]) });
},
// 关闭商家客服
closeCustomer: function closeCustomer() {
this.isCustomer = false;
},
// 保存二维码
saveImg: function saveImg() {
this.$toolAll.tools.saveImg(this.customerSrc);
} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ })
2022-07-11 10:35:14 +00:00
},[[61,"common/runtime","common/vendor"]]]);
2022-07-08 08:15:29 +00:00
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/tabbar/my/my.js.map