luban-mall/unpackage/dist/dev/mp-weixin/pagesA/shop/detail.js

435 lines
28 KiB
JavaScript
Raw Normal View History

2022-07-08 08:15:29 +00:00
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pagesA/shop/detail"],{
2022-08-03 04:00:49 +00:00
/***/ 113:
2022-07-08 08:15:29 +00:00
/*!***********************************************************************!*\
!*** D://luban-mall/main.js?{"page":"pagesA%2Fshop%2Fdetail"} ***!
\***********************************************************************/
/*! 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-08-03 04:00:49 +00:00
var _detail = _interopRequireDefault(__webpack_require__(/*! ./pagesA/shop/detail.vue */ 114));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(_detail.default);
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["createPage"]))
/***/ }),
2022-08-03 04:00:49 +00:00
/***/ 114:
2022-07-08 08:15:29 +00:00
/*!****************************************************!*\
!*** D://luban-mall/pagesA/shop/detail.vue ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
2022-08-03 04:00:49 +00:00
/* harmony import */ var _detail_vue_vue_type_template_id_3e9d9586___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./detail.vue?vue&type=template&id=3e9d9586& */ 115);
/* harmony import */ var _detail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./detail.vue?vue&type=script&lang=js& */ 117);
2022-07-08 08:15:29 +00:00
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _detail_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 _detail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
2022-07-27 03:12:29 +00:00
/* 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 */ 11);
2022-07-08 08:15:29 +00:00
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"])(
_detail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
_detail_vue_vue_type_template_id_3e9d9586___WEBPACK_IMPORTED_MODULE_0__["render"],
_detail_vue_vue_type_template_id_3e9d9586___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
false,
null,
null,
null,
false,
_detail_vue_vue_type_template_id_3e9d9586___WEBPACK_IMPORTED_MODULE_0__["components"],
renderjs
)
component.options.__file = "pagesA/shop/detail.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
2022-08-03 04:00:49 +00:00
/***/ 115:
2022-07-08 08:15:29 +00:00
/*!***********************************************************************************!*\
!*** D://luban-mall/pagesA/shop/detail.vue?vue&type=template&id=3e9d9586& ***!
\***********************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
2022-08-03 04:00:49 +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_detail_vue_vue_type_template_id_3e9d9586___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!./detail.vue?vue&type=template&id=3e9d9586& */ 116);
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_detail_vue_vue_type_template_id_3e9d9586___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_detail_vue_vue_type_template_id_3e9d9586___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_detail_vue_vue_type_template_id_3e9d9586___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_detail_vue_vue_type_template_id_3e9d9586___WEBPACK_IMPORTED_MODULE_0__["components"]; });
/***/ }),
2022-08-03 04:00:49 +00:00
/***/ 116:
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/pagesA/shop/detail.vue?vue&type=template&id=3e9d9586& ***!
\***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! 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-08-03 04:00:49 +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 */ 196))
2022-07-08 08:15:29 +00:00
},
customerService: function() {
2022-08-03 04:00:49 +00:00
return __webpack_require__.e(/*! import() | components/customer-service/customer-service */ "components/customer-service/customer-service").then(__webpack_require__.bind(null, /*! @/components/customer-service/customer-service.vue */ 224))
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-08-03 04:00:49 +00:00
/***/ 117:
2022-07-08 08:15:29 +00:00
/*!*****************************************************************************!*\
!*** D://luban-mall/pagesA/shop/detail.vue?vue&type=script&lang=js& ***!
\*****************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
2022-08-03 04:00:49 +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_detail_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!./detail.vue?vue&type=script&lang=js& */ 118);
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_detail_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_detail_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_detail_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_detail_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_detail_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
/***/ }),
2022-08-03 04:00:49 +00:00
/***/ 118:
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/pagesA/shop/detail.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;
2022-07-13 08:04:38 +00:00
2022-07-08 08:15:29 +00:00
2022-07-27 03:12:29 +00:00
var _publicApi = __webpack_require__(/*! @/jsFile/public-api.js */ 24);
2022-08-03 04:00:49 +00:00
var _vuex = __webpack_require__(/*! vuex */ 13);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;}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 */ 210));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var swiperPu = function swiperPu() {__webpack_require__.e(/*! require.ensure | components/swipers/swiper-pu */ "components/swipers/swiper-pu").then((function () {return resolve(__webpack_require__(/*! @/components/swipers/swiper-pu */ 217));}).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 */ 196));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var customerService = function customerService() {__webpack_require__.e(/*! require.ensure | components/customer-service/customer-service */ "components/customer-service/customer-service").then((function () {return resolve(__webpack_require__(/*! @/components/customer-service/customer-service.vue */ 224));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);}; //引入mapState
2022-07-08 08:15:29 +00:00
var _default = {
components: {
statusNav: statusNav,
swiperPu: swiperPu,
enterCart: enterCart,
customerService: customerService },
data: function data() {
return {
scrollHeight: uni.getSystemInfoSync().windowHeight - uni.getSystemInfoSync().statusBarHeight - 50,
newWidth: uni.getSystemInfoSync().windowWidth,
isplay: false,
shopDetailTab: ['商品信息', '商品规格'], //tab列表
shopDetail: {}, //商品详情
shopSku: [], //商品规格
shopBanner: [], //商品轮播
source: 'shop', //详情分类 商品shop 套件kit
showCurrent: 0, //详情&规格切换
isShow: false, //是否展示规格弹窗
specsIndex: 0, //规格选中位置
id: 0, //商品、套件id
action: 'collect', //收藏类型
2022-07-13 08:04:38 +00:00
changeBtns: false, //按钮选择
2022-07-15 03:05:54 +00:00
vipPrice: false, //显示会员价
2022-07-15 10:29:01 +00:00
cacheBusinessId: -1, //商户id
isLoading: false };
2022-07-08 08:15:29 +00:00
},
computed: _objectSpread({},
(0, _vuex.mapState)({
footHeight: function footHeight(state) {return state.moduleA.footHeight;} })),
2022-07-15 03:05:54 +00:00
onLoad: function onLoad(op) {
2022-07-08 08:15:29 +00:00
if (op !== '') {
this.source = op.source;
this.id = op.id;
2022-07-12 10:07:08 +00:00
if (op.business_id) {
2022-07-15 03:05:54 +00:00
this.cacheBusinessId = op.business_id;
2022-07-12 10:07:08 +00:00
}
2022-07-08 08:15:29 +00:00
}
},
2022-07-15 03:05:54 +00:00
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.getDetail(_this.id);
(0, _publicApi.userInfoEv)();
}
});
} else {
this.getDetail(this.id);
(0, _publicApi.userInfoEv)();
}
2022-07-13 08:41:27 +00:00
if (uni.getStorageSync('business_code') !== '' && uni.getStorageSync('showVip') == 'true') {
2022-07-13 08:04:38 +00:00
this.vipPrice = true;
}
2022-07-25 03:18:38 +00:00
// 查询购物车数量
(0, _publicApi.getCartNum)();
2022-07-08 08:15:29 +00:00
},
// 分享到微信
2022-07-11 10:35:14 +00:00
onShareAppMessage: function onShareAppMessage(res) {
var path = uni.getStorageSync('page-path-options') + '&business_id=' + uni.getStorageSync('business_id');
return {
path: path };
2022-07-08 08:15:29 +00:00
},
// 分享到朋友圈
2022-07-11 10:35:14 +00:00
onShareTimeline: function onShareTimeline(res) {
var path = uni.getStorageSync('page-path-options') + '&business_id=' + uni.getStorageSync('business_id');
return {
path: path };
2022-07-08 08:15:29 +00:00
},
methods: {
// 切换展示
changeDetail: function changeDetail(index) {
this.showCurrent = index;
},
// 打开规格弹窗
openSpecs: function openSpecs(type) {
if (type == 0) {
this.changeBtns = false;
}
if (type == 1) {
this.changeBtns = true;
}
if (!this.isShow) {
this.isShow = true;
}
},
// 选择规格
changeSpecs: function changeSpecs(index) {
this.specsIndex = index;
},
// 关闭规格弹窗
closeSpecs: function closeSpecs() {
this.isShow = false;
},
//查询商品详情
2022-07-12 10:07:08 +00:00
getDetail: function getDetail(id) {var _this2 = this;
2022-07-14 02:00:23 +00:00
uni.showLoading({
title: '加载中' });
2022-07-15 10:29:01 +00:00
this.isLoading = false;
2022-07-08 08:15:29 +00:00
this.$requst.get('/api/spu/detail', { id: id }).then(function (res) {
if (res.code == 0) {
console.log(res, '详情');
2022-07-12 10:07:08 +00:00
_this2.shopDetail = res.data.detail; //详情数据
_this2.shopSku = res.data.sku;
2022-07-08 08:15:29 +00:00
var newArr = [];
res.data.detail.images.forEach(function (item) {
var obj = {
imgSrc: item };
newArr.push(obj);
});
2022-07-12 10:07:08 +00:00
_this2.shopBanner = newArr; //详情轮播图
2022-07-08 08:15:29 +00:00
}
uni.hideLoading();
2022-07-15 10:29:01 +00:00
_this2.isLoading = true;
2022-07-08 08:15:29 +00:00
});
},
//收藏
2022-07-12 10:07:08 +00:00
collectionEv: function collectionEv(id) {var _this3 = this;
2022-07-08 08:15:29 +00:00
var params = {
id: id,
action: this.action };
if (this.shopDetail.is_collected == 1) {
this.$requst.post('/api/spu/un-record', params).then(function (res) {
if (res.code == 0) {
// this.$toolAll.tools.showToast('取消收藏成功');
2022-07-12 10:07:08 +00:00
_this3.getDetail(_this3.id);
2022-07-08 08:15:29 +00:00
}
});
} else {
this.$requst.post('/api/spu/record', params).then(function (res) {
if (res.code == 0) {
// this.$toolAll.tools.showToast('收藏成功');
2022-07-12 10:07:08 +00:00
_this3.getDetail(_this3.id);
2022-07-08 08:15:29 +00:00
}
});
}
},
// 加入购物车
2022-07-12 10:07:08 +00:00
joinCart: function joinCart(index) {var _this4 = this;
2022-07-08 08:15:29 +00:00
if (this.$toolAll.tools.judgeAuth()) {
this.$requst.post('/api/order/shopping-cart-add', { sku_id: this.shopSku[index].id, num: 1 }).then(function (res) {
if (res.code == 0) {
2022-07-12 10:07:08 +00:00
_this4.$toolAll.tools.showToast('加入购物车成功(*^▽^*)');
2022-07-08 08:15:29 +00:00
(0, _publicApi.getCartNum)();
// 关闭弹窗
2022-07-12 10:07:08 +00:00
_this4.closeSpecs();
2022-07-08 08:15:29 +00:00
} else {
2022-07-12 10:07:08 +00:00
_this4.$toolAll.tools.showToast(res.msg);
2022-07-08 08:15:29 +00:00
}
});
}
},
// 立即购买
2022-07-12 10:07:08 +00:00
buyNow: function buyNow(index) {var _this5 = this;
2022-07-08 08:15:29 +00:00
if (this.$toolAll.tools.judgeAuth()) {
this.$requst.post('/api/order/shopping-cart-add', { sku_id: this.shopSku[index].id, num: 1 }).then(function (res) {
if (res.code == 0) {
2022-07-15 10:29:01 +00:00
(0, _publicApi.getCartNum)();
2022-07-08 08:15:29 +00:00
// 关闭弹窗
2022-07-12 10:07:08 +00:00
_this5.closeSpecs();
2022-07-08 08:15:29 +00:00
uni.navigateTo({
url: "/pagesA/cart/cart" });
} else {
2022-07-12 10:07:08 +00:00
_this5.$toolAll.tools.showToast(res.msg);
2022-07-08 08:15:29 +00:00
}
});
}
},
//返回事件
backEv: function backEv() {
uni.navigateBack({
delta: 1 });
} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ })
2022-08-03 04:00:49 +00:00
},[[113,"common/runtime","common/vendor"]]]);
2022-07-08 08:15:29 +00:00
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pagesA/shop/detail.js.map