578 lines
30 KiB
JavaScript
578 lines
30 KiB
JavaScript
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/tabbar/my/my"],{
|
||
|
||
/***/ 61:
|
||
/*!*************************************************************************!*\
|
||
!*** 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));
|
||
var _my = _interopRequireDefault(__webpack_require__(/*! ./pages/tabbar/my/my.vue */ 62));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"]))
|
||
|
||
/***/ }),
|
||
|
||
/***/ 62:
|
||
/*!****************************************************!*\
|
||
!*** 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__);
|
||
/* 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);
|
||
/* 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);
|
||
|
||
/***/ }),
|
||
|
||
/***/ 63:
|
||
/*!***********************************************************************************!*\
|
||
!*** 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 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);
|
||
/* 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"]; });
|
||
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 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!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() {
|
||
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 */ 192))
|
||
},
|
||
footTab: function() {
|
||
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 */ 199))
|
||
}
|
||
}
|
||
} 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 l0 = _vm.__map(_vm.listData, function(item, index) {
|
||
var $orig = _vm.__get_orig(item)
|
||
|
||
var g0 = _vm.showObj.indexOf(index.toString())
|
||
return {
|
||
$orig: $orig,
|
||
g0: g0
|
||
}
|
||
})
|
||
|
||
_vm.$mp.data = Object.assign(
|
||
{},
|
||
{
|
||
$root: {
|
||
l0: l0
|
||
}
|
||
}
|
||
)
|
||
}
|
||
var recyclableRender = false
|
||
var staticRenderFns = []
|
||
render._withStripped = true
|
||
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 65:
|
||
/*!*****************************************************************************!*\
|
||
!*** 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__);
|
||
/* 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);
|
||
/* 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);
|
||
|
||
/***/ }),
|
||
|
||
/***/ 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!D:/鲁班家具小程序/luban-mall/pages/tabbar/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 */ 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 */ 206));}).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 */ 192));}).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 */ 199));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);}; //引入mapState
|
||
var _default = {
|
||
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 }],
|
||
//列表数据
|
||
showVip: 'true', //是否显示会员价
|
||
isCustomer: false, //商家客服
|
||
isVip: false, //会员申请弹窗
|
||
myName: '', //姓名
|
||
myPhone: '', //电话
|
||
inviteeName: '', //邀请人
|
||
inviteeCode: '', //会员码
|
||
flag: true,
|
||
vipCode: '', //会员码
|
||
isChecked: false, //验证会员码
|
||
cacheBusinessId: -1, //商户id
|
||
showObj: '0123457', //隐藏Index
|
||
mobile: '' // 联系电话
|
||
};
|
||
},
|
||
onReachBottom: function onReachBottom() {
|
||
|
||
},
|
||
onHide: function onHide() {
|
||
|
||
},
|
||
onLoad: function onLoad(op) {
|
||
if (op.business_id) {
|
||
this.cacheBusinessId = op.business_id;
|
||
}
|
||
},
|
||
onShow: function onShow() {var _this = this;
|
||
if (this.cacheBusinessId !== -1) {
|
||
this.$requst.post('/api/index/change-business', { business_id: this.cacheBusinessId }).then(function (res) {
|
||
if (res.code == 0) {
|
||
_this.getUserInfo();
|
||
_this.getCustomer();
|
||
(0, _publicApi.userInfoEv)();
|
||
}
|
||
});
|
||
} else {
|
||
this.getUserInfo();
|
||
this.getCustomer();
|
||
(0, _publicApi.userInfoEv)();
|
||
}
|
||
|
||
if (uni.getStorageSync('showVip')) {
|
||
this.showVip = uni.getStorageSync('showVip');
|
||
} else {
|
||
uni.setStorageSync('showVip', 'true');
|
||
}
|
||
},
|
||
methods: {
|
||
// 获取用户信息
|
||
getUserInfo: function getUserInfo() {var _this2 = this;
|
||
uni.showLoading({
|
||
title: '加载中' });
|
||
|
||
this.$requst.get('/api/user/info').then(function (res) {
|
||
console.log(res, '用户信息');
|
||
if (res.code == 0) {
|
||
uni.setStorageSync('business_id', res.data.business_id);
|
||
var newArr = res.data.order_count;
|
||
_this2.headPortrait = res.data.headimgurl,
|
||
_this2.nickName = res.data.nickname;
|
||
_this2.businessCode = res.data.business_code;
|
||
_this2.mobile = res.data.mobile,
|
||
_this2.myOrder[0].num = newArr.all,
|
||
_this2.myOrder[1].num = newArr.ordered,
|
||
_this2.myOrder[2].num = newArr.completed,
|
||
_this2.myOrder[3].num = newArr.closed;
|
||
if (_this2.businessCode !== '') {
|
||
_this2.showObj = '0134567';
|
||
}
|
||
}
|
||
uni.hideLoading();
|
||
});
|
||
},
|
||
|
||
// 获取商家客服
|
||
getCustomer: function getCustomer() {var _this3 = this;
|
||
this.$requst.post('/api/user/business-qr').then(function (res) {
|
||
console.log(res, '商家客服');
|
||
if (res.code == 0) {
|
||
_this3.customerSrc = res.data.qr;
|
||
}
|
||
});
|
||
},
|
||
// 是否显示会员价
|
||
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);
|
||
},
|
||
// 跳转方式
|
||
toMore: function toMore(index) {
|
||
if (index == 6) {
|
||
return false;
|
||
} else {
|
||
if (index == 0) {
|
||
if (this.mobile !== '') {
|
||
uni.navigateTo({
|
||
url: "/pagesB/ucenter/ucenter" });
|
||
|
||
}
|
||
}
|
||
if (index == 1) {
|
||
if (this.businessCode == '') {
|
||
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;
|
||
}
|
||
}
|
||
},
|
||
// 获取授权信息
|
||
onGetPhoneNumber: function onGetPhoneNumber(e) {var _this5 = this;
|
||
if (e.detail.errMsg == "getPhoneNumber:fail user deny") {//用户决绝授权
|
||
this.$toolAll.tools.showToast('您已拒绝授权');
|
||
uni.navigateTo({
|
||
url: "/pagesB/ucenter/ucenter" });
|
||
|
||
} 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('绑定成功');
|
||
uni.navigateTo({
|
||
url: "/pagesB/ucenter/ucenter" });
|
||
|
||
} else {
|
||
_this5.$toolAll.tools.showToast(res.msg);
|
||
}
|
||
});
|
||
|
||
}
|
||
},
|
||
// 提交会员申请
|
||
submitEv: function submitEv() {var _this6 = this;
|
||
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) {
|
||
_this6.closeEv(); //关闭会员申请
|
||
_this6.getUserInfo(); // 刷新信息
|
||
} else {
|
||
_this6.$toolAll.tools.showToast(res.msg);
|
||
_this6.flag = true;
|
||
}
|
||
});
|
||
}
|
||
},
|
||
|
||
// 验证表单
|
||
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;
|
||
},
|
||
|
||
// 验证会员码
|
||
checkCode: function checkCode() {var _this7 = this;
|
||
if (this.vipCode !== '') {
|
||
this.$requst.post('/api/user/check-code', { code: this.vipCode }).then(function (res) {
|
||
if (res.code == 0) {
|
||
_this7.$toolAll.tools.showToast('验证成功');
|
||
_this7.getUserInfo(); //刷新个人信息
|
||
_this7.closeCheck(); //清除验证信息
|
||
} else {
|
||
_this7.$toolAll.tools.showToast(res.msg);
|
||
}
|
||
});
|
||
} 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"]))
|
||
|
||
/***/ })
|
||
|
||
},[[61,"common/runtime","common/vendor"]]]);
|
||
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/tabbar/my/my.js.map
|