You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1394 lines
77 KiB
1394 lines
77 KiB
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["package1/index/downStearmList"],{
|
|
|
|
/***/ 549:
|
|
/*!***********************************************************************************!*\
|
|
!*** C:/文档/distribution-uni/main.js?{"page":"package1%2Findex%2FdownStearmList"} ***!
|
|
\***********************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* WEBPACK VAR INJECTION */(function(wx, createPage) {
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
|
|
__webpack_require__(/*! uni-pages */ 26);
|
|
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
|
|
var _downStearmList = _interopRequireDefault(__webpack_require__(/*! ./package1/index/downStearmList.vue */ 550));
|
|
// @ts-ignore
|
|
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;
|
|
createPage(_downStearmList.default);
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["createPage"]))
|
|
|
|
/***/ }),
|
|
|
|
/***/ 550:
|
|
/*!****************************************************************!*\
|
|
!*** C:/文档/distribution-uni/package1/index/downStearmList.vue ***!
|
|
\****************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _downStearmList_vue_vue_type_template_id_23e5494a___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./downStearmList.vue?vue&type=template&id=23e5494a& */ 551);
|
|
/* harmony import */ var _downStearmList_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./downStearmList.vue?vue&type=script&lang=js& */ 553);
|
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _downStearmList_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _downStearmList_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
/* harmony import */ var _downStearmList_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./downStearmList.vue?vue&type=style&index=0&lang=scss& */ 555);
|
|
/* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 38);
|
|
|
|
var renderjs
|
|
|
|
|
|
|
|
|
|
|
|
/* normalize component */
|
|
|
|
var component = Object(_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
|
|
_downStearmList_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
|
_downStearmList_vue_vue_type_template_id_23e5494a___WEBPACK_IMPORTED_MODULE_0__["render"],
|
|
_downStearmList_vue_vue_type_template_id_23e5494a___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
|
false,
|
|
null,
|
|
null,
|
|
null,
|
|
false,
|
|
_downStearmList_vue_vue_type_template_id_23e5494a___WEBPACK_IMPORTED_MODULE_0__["components"],
|
|
renderjs
|
|
)
|
|
|
|
component.options.__file = "package1/index/downStearmList.vue"
|
|
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 551:
|
|
/*!***********************************************************************************************!*\
|
|
!*** C:/文档/distribution-uni/package1/index/downStearmList.vue?vue&type=template&id=23e5494a& ***!
|
|
\***********************************************************************************************/
|
|
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_downStearmList_vue_vue_type_template_id_23e5494a___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./downStearmList.vue?vue&type=template&id=23e5494a& */ 552);
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_downStearmList_vue_vue_type_template_id_23e5494a___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_downStearmList_vue_vue_type_template_id_23e5494a___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_downStearmList_vue_vue_type_template_id_23e5494a___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_downStearmList_vue_vue_type_template_id_23e5494a___WEBPACK_IMPORTED_MODULE_0__["components"]; });
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 552:
|
|
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
!*** ./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--17-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!C:/文档/distribution-uni/package1/index/downStearmList.vue?vue&type=template&id=23e5494a& ***!
|
|
\***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
/*! 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 = {
|
|
cmdNavBar: function () {
|
|
return __webpack_require__.e(/*! import() | components/cmd-nav-bar/cmd-nav-bar */ "components/cmd-nav-bar/cmd-nav-bar").then(__webpack_require__.bind(null, /*! @/components/cmd-nav-bar/cmd-nav-bar.vue */ 1026))
|
|
},
|
|
uNoticeBar: function () {
|
|
return Promise.all(/*! import() | uni_modules/uview-ui/components/u-notice-bar/u-notice-bar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/uview-ui/components/u-notice-bar/u-notice-bar")]).then(__webpack_require__.bind(null, /*! @/uni_modules/uview-ui/components/u-notice-bar/u-notice-bar.vue */ 1033))
|
|
},
|
|
uniSearchBar: function () {
|
|
return Promise.all(/*! import() | uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar")]).then(__webpack_require__.bind(null, /*! @/uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar.vue */ 1121))
|
|
},
|
|
uLoadmore: function () {
|
|
return Promise.all(/*! import() | uni_modules/uview-ui/components/u-loadmore/u-loadmore */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/uview-ui/components/u-loadmore/u-loadmore")]).then(__webpack_require__.bind(null, /*! @/uni_modules/uview-ui/components/u-loadmore/u-loadmore.vue */ 1132))
|
|
},
|
|
uniIcons: function () {
|
|
return Promise.all(/*! import() | uni_modules/uni-icons/components/uni-icons/uni-icons */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(__webpack_require__.bind(null, /*! @/uni_modules/uni-icons/components/uni-icons/uni-icons.vue */ 1065))
|
|
},
|
|
uniPopup: function () {
|
|
return __webpack_require__.e(/*! import() | uni_modules/uni-popup/components/uni-popup/uni-popup */ "uni_modules/uni-popup/components/uni-popup/uni-popup").then(__webpack_require__.bind(null, /*! @/uni_modules/uni-popup/components/uni-popup/uni-popup.vue */ 1106))
|
|
},
|
|
uniDataCheckbox: function () {
|
|
return Promise.all(/*! import() | uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox")]).then(__webpack_require__.bind(null, /*! @/uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox.vue */ 1256))
|
|
},
|
|
uniNumberBox: function () {
|
|
return __webpack_require__.e(/*! import() | uni_modules/uni-number-box/components/uni-number-box/uni-number-box */ "uni_modules/uni-number-box/components/uni-number-box/uni-number-box").then(__webpack_require__.bind(null, /*! @/uni_modules/uni-number-box/components/uni-number-box/uni-number-box.vue */ 1263))
|
|
},
|
|
uniForms: function () {
|
|
return Promise.all(/*! import() | uni_modules/uni-forms/components/uni-forms/uni-forms */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/uni-forms/components/uni-forms/uni-forms")]).then(__webpack_require__.bind(null, /*! @/uni_modules/uni-forms/components/uni-forms/uni-forms.vue */ 1230))
|
|
},
|
|
uniFormsItem: function () {
|
|
return Promise.all(/*! import() | uni_modules/uni-forms/components/uni-forms-item/uni-forms-item */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/uni-forms/components/uni-forms-item/uni-forms-item")]).then(__webpack_require__.bind(null, /*! @/uni_modules/uni-forms/components/uni-forms-item/uni-forms-item.vue */ 1239))
|
|
},
|
|
uniEasyinput: function () {
|
|
return __webpack_require__.e(/*! import() | uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput */ "uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(__webpack_require__.bind(null, /*! @/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue */ 1207))
|
|
},
|
|
}
|
|
} 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 g0 = _vm.carList.length
|
|
var g1 = _vm.userList.length
|
|
var l1 = _vm.__map(_vm.carList, function (item, index) {
|
|
var $orig = _vm.__get_orig(item)
|
|
var l0 = _vm.__map(item.stockLogList1, function (item1, index1) {
|
|
var $orig = _vm.__get_orig(item1)
|
|
var f0 = _vm._f("sliceMsg")(item1.attributeList)
|
|
return {
|
|
$orig: $orig,
|
|
f0: f0,
|
|
}
|
|
})
|
|
return {
|
|
$orig: $orig,
|
|
l0: l0,
|
|
}
|
|
})
|
|
if (!_vm._isMounted) {
|
|
_vm.e0 = function ($event) {
|
|
return _vm.$refs.addressPopup.open()
|
|
}
|
|
_vm.e1 = function ($event) {
|
|
return this.$refs.carPopup.close()
|
|
}
|
|
}
|
|
_vm.$mp.data = Object.assign(
|
|
{},
|
|
{
|
|
$root: {
|
|
g0: g0,
|
|
g1: g1,
|
|
l1: l1,
|
|
},
|
|
}
|
|
)
|
|
}
|
|
var recyclableRender = false
|
|
var staticRenderFns = []
|
|
render._withStripped = true
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 553:
|
|
/*!*****************************************************************************************!*\
|
|
!*** C:/文档/distribution-uni/package1/index/downStearmList.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_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_downStearmList_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./downStearmList.vue?vue&type=script&lang=js& */ 554);
|
|
/* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_downStearmList_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_downStearmList_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
|
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_downStearmList_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_downStearmList_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
/* harmony default export */ __webpack_exports__["default"] = (_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_downStearmList_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 554:
|
|
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-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!C:/文档/distribution-uni/package1/index/downStearmList.vue?vue&type=script&lang=js& ***!
|
|
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* WEBPACK VAR INJECTION */(function(uni) {
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = void 0;
|
|
var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 28));
|
|
var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
|
|
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 30));
|
|
var _global = __webpack_require__(/*! @/utils/global.js */ 214);
|
|
var cmdNavBar = function cmdNavBar() {
|
|
__webpack_require__.e(/*! require.ensure | components/cmd-nav-bar/cmd-nav-bar */ "components/cmd-nav-bar/cmd-nav-bar").then((function () {
|
|
return resolve(__webpack_require__(/*! @/components/cmd-nav-bar/cmd-nav-bar.vue */ 1026));
|
|
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
|
|
};
|
|
var _default = {
|
|
components: {
|
|
cmdNavBar: cmdNavBar
|
|
},
|
|
data: function data() {
|
|
return {
|
|
isSelfOrder: false,
|
|
isKaiDan: false,
|
|
enDayShow: false,
|
|
textArr: ['您还未关注快衣店服务号,暂无法接收充值及上新提醒,点击关注'],
|
|
FWHPic: 'https://jewel-shop.oss-cn-beijing.aliyuncs.com/f2ba2080aaa54c618c2e47df4f220087.png',
|
|
indexList: [],
|
|
pages: 1,
|
|
//分页的页码
|
|
totalPages: 0,
|
|
mini_program_openid: '',
|
|
official_account_openid: '',
|
|
swiperDotIndex: 0,
|
|
current: 0,
|
|
shopList: [],
|
|
info: 0,
|
|
bigImg: [],
|
|
categoryId: '',
|
|
//分类id
|
|
catagoryUserId: '',
|
|
searchName: '',
|
|
//搜索框输入值
|
|
shopId: '',
|
|
//店铺id,
|
|
checkbox: [],
|
|
//需要分享的商品id
|
|
temporaryNum: 0,
|
|
priceType: '',
|
|
yanseList: new Map(),
|
|
chimaList: new Map(),
|
|
goodsDetail: [],
|
|
attrNameList: [],
|
|
temporaryList: [],
|
|
oldTemList: [],
|
|
carList: [],
|
|
columns: [],
|
|
keyList: [],
|
|
specsList: [],
|
|
shopName: '',
|
|
pecsList: [],
|
|
productNum: 0,
|
|
evalue: [],
|
|
userList: [],
|
|
shareType: "1",
|
|
productId: '',
|
|
goodsList: [],
|
|
allChangeNum: 0,
|
|
attributeList: [],
|
|
zNum: 0,
|
|
pageZongPrice: 0,
|
|
newTemList: [],
|
|
customId: '',
|
|
addressObj: {},
|
|
// show: false,
|
|
zPrice: 0,
|
|
carType: 0,
|
|
carNum: 0,
|
|
pageOldTemList: [],
|
|
dataObj: new Map(),
|
|
formData: {
|
|
consigneeMobile: '',
|
|
consigneeName: '',
|
|
address1: '',
|
|
address: '',
|
|
province: '',
|
|
city: '',
|
|
area: '',
|
|
id: '',
|
|
userId: ''
|
|
},
|
|
status: 'loadmore',
|
|
rules: {
|
|
consigneeName: {
|
|
rules: [{
|
|
required: true,
|
|
errorMessage: '请输入姓名'
|
|
}]
|
|
}
|
|
}
|
|
};
|
|
},
|
|
filters: {
|
|
sliceMsg: function sliceMsg(val) {
|
|
var name = '';
|
|
if (typeof val == 'string') {
|
|
var newObj = JSON.parse(val);
|
|
for (var as in newObj) {
|
|
name += newObj[as] + ' | ';
|
|
}
|
|
}
|
|
return name;
|
|
}
|
|
},
|
|
onReachBottom: function onReachBottom() {
|
|
if (this.pages >= this.totalPages) return;
|
|
this.status = 'loading';
|
|
this.pages++;
|
|
this.getShareList();
|
|
},
|
|
onShow: function onShow() {
|
|
if (!uni.getStorageSync('officialAccountOpenid') && !uni.getStorageSync('shopId') && uni.getStorageSync("miniProgramOpenid")) {
|
|
this.getUserInfo();
|
|
}
|
|
},
|
|
onLoad: function onLoad(option) {
|
|
var _this = this;
|
|
if (option.shareType) {
|
|
this.shareType = option.shareType;
|
|
}
|
|
if (option.khid) {
|
|
this.khid = option.khid;
|
|
this.userId = option.userId;
|
|
this.customId = option.customId;
|
|
if (this.customId) {
|
|
this.formData.userId = this.customId;
|
|
}
|
|
this.mini_program_openid = option.mini_program_openid;
|
|
this.official_account_openid = option.official_account_openid;
|
|
} else if (option.scene) {
|
|
var scene = decodeURIComponent(option.scene);
|
|
if (scene.indexOf('-') != -1) {
|
|
uni.redirectTo({
|
|
url: "/package1/index/oneGoodsShare?khid=" + scene.replace(/-/g, '')
|
|
});
|
|
return;
|
|
} else {
|
|
this.khid = scene;
|
|
}
|
|
}
|
|
if (uni.getStorageSync('id') && !uni.getStorageSync('miniProgramOpenid') && !uni.getStorageSync('shopId')) {
|
|
this.getOpenId(this.customId, uni.getStorageSync('id') ? uni.getStorageSync('id') : this.userId);
|
|
}
|
|
this.tui.request("/app/productShare/getShareList", "POST", {
|
|
searchStr: this.searchName,
|
|
id: this.khid,
|
|
pageNum: this.pages,
|
|
pageSize: '10'
|
|
}, false, true).then(function (res) {
|
|
_this.status = 'nomore';
|
|
if (res.code == 200) {
|
|
if (res.result.share.scene != null) {
|
|
_this.catagoryUserId = JSON.parse(res.result.share.scene).id;
|
|
_this.customName = JSON.parse(res.result.share.scene).name;
|
|
_this.formData.userId = JSON.parse(res.result.share.scene).customId;
|
|
_this.userId = JSON.parse(res.result.share.scene).userId;
|
|
_this.mini_program_openid = JSON.parse(res.result.share.scene).mini_program_openid;
|
|
_this.official_account_openid = JSON.parse(res.result.share.scene).official_account_openid;
|
|
_this.unionid = JSON.parse(res.result.share.scene).unionid;
|
|
}
|
|
_this.shopId = res.result.share.shopId;
|
|
_this.getGategoryList();
|
|
} else {
|
|
_this.tui.toast(res.message);
|
|
}
|
|
}).catch(function (res) {});
|
|
|
|
/*
|
|
微信登录判断开始
|
|
如果带过来的有openid,和缓存的openid对比,不一致不能下单
|
|
如果没有带openid,则不做验证
|
|
*/
|
|
this.contrastOpneId();
|
|
/*
|
|
微信登录判断结束
|
|
*/
|
|
},
|
|
|
|
methods: {
|
|
bigFWHPic: function bigFWHPic() {
|
|
uni.previewImage({
|
|
urls: [this.FWHPic]
|
|
});
|
|
},
|
|
getUserInfo: function getUserInfo() {
|
|
var _this2 = this;
|
|
this.tui.request("/user/getUserInfo", "post", {
|
|
miniProgramOpenid: uni.getStorageSync('miniProgramOpenid')
|
|
}, false, true).then(function (res) {
|
|
if (res.code == 200) {
|
|
if (res.result.officialAccountOpenid == 'null' || res.result.officialAccountOpenid == null || res.result.officialAccountOpenid == undefined || res.result.officialAccountOpenid == '') {
|
|
_this2.enDayShow = true;
|
|
} else {
|
|
uni.setStorageSync('officialAccountOpenid', res.result.officialAccountOpenid);
|
|
_this2.enDayShow = false;
|
|
}
|
|
}
|
|
}).catch(function (res) {});
|
|
},
|
|
contrastOpneId: function contrastOpneId() {
|
|
var _this3 = this;
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
var openid1, openid2;
|
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
while (1) {
|
|
switch (_context.prev = _context.next) {
|
|
case 0:
|
|
openid1 = uni.getStorageSync('miniProgramOpenid');
|
|
openid2 = _this3.mini_program_openid;
|
|
if (openid1 != '' && openid1 != undefined && openid1 != null) {
|
|
if (openid2 != undefined && openid2 != "undefined" && openid2 != 'null' && openid2 != '' && openid2 != null) {
|
|
if (openid1 != openid2) {
|
|
//缓存和分享的openid不一致
|
|
// this.tui.toast('暂无查看权限', 1000)
|
|
// return
|
|
} else {
|
|
_this3.isSelfOrder = true;
|
|
_this3.$forceUpdate();
|
|
}
|
|
} else {
|
|
//调接口传customId更新userid
|
|
_this3.updateUserId();
|
|
_this3.isSelfOrder = true;
|
|
_this3.$forceUpdate();
|
|
}
|
|
} else {
|
|
//await this.getOpenId(this.customId, uni.getStorageSync('id') ? uni.getStorageSync('id') : this.userId)
|
|
//openid1 = uni.getStorageSync('miniProgramOpenid')
|
|
|
|
if (openid2 != undefined && openid2 != 'null' && openid2 != '' && openid2 != null) {
|
|
_this3.isSelfOrder = true;
|
|
_this3.$forceUpdate();
|
|
} else {
|
|
//调接口传customId更新userid
|
|
_this3.updateUserId();
|
|
_this3.isSelfOrder = true;
|
|
_this3.$forceUpdate();
|
|
}
|
|
}
|
|
case 3:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}
|
|
}, _callee);
|
|
}))();
|
|
},
|
|
updateUserId: function updateUserId() {
|
|
var _this4 = this;
|
|
if (this.customId && uni.getStorageSync('id')) {
|
|
this.tui.request("/app/customer/updateUserId", "post", {
|
|
customerId: this.customId,
|
|
userId: uni.getStorageSync('id')
|
|
}, false, true).then(function (res) {
|
|
if (res.code != 200) {
|
|
_this4.tui.toast(res.message);
|
|
}
|
|
}).catch(function (res) {});
|
|
}
|
|
},
|
|
//获取小程序openid
|
|
getOpenId: function getOpenId(customId, userId) {
|
|
var that = this;
|
|
return new Promise(function (resolve, reject) {
|
|
uni.login({
|
|
provider: 'weixin',
|
|
success: function success(res) {
|
|
uni.getUserInfo({
|
|
provider: 'weixin',
|
|
success: function success(infoRes) {
|
|
that.tui.request("/user/login", "post", {
|
|
jsCode: res.code,
|
|
customId: customId,
|
|
userId: userId,
|
|
wechatName: infoRes.userInfo.nickName,
|
|
userType: "2"
|
|
}, false, false).then(function (res) {
|
|
if (res.code == 200) {
|
|
uni.setStorageSync("hiver_token", res.result.accessToken);
|
|
uni.setStorageSync("wayValue", "2");
|
|
uni.setStorageSync("nickname", res.result.user.nickname);
|
|
uni.setStorageSync("id", res.result.user.id);
|
|
uni.setStorageSync('unionid', res.result.user.unionid);
|
|
uni.setStorageSync('miniProgramOpenid', res.result.user.miniProgramOpenid);
|
|
uni.setStorageSync('officialAccountOpenid', res.result.user.officialAccountOpenid);
|
|
return resolve(res.result);
|
|
} else {
|
|
tui.toast(res.message);
|
|
}
|
|
}).catch(function (res) {});
|
|
}
|
|
});
|
|
}
|
|
});
|
|
});
|
|
},
|
|
//初始化获取分类列表
|
|
getGategoryList: function getGategoryList() {
|
|
var _this5 = this;
|
|
this.tui.request("/app/productCategory/listByShopId", "get", {
|
|
shopId: this.shopId
|
|
}, false, true).then(function (res) {
|
|
if (res.code == 200) {
|
|
_this5.indexList = res.result;
|
|
if (_this5.shareType == "2") {
|
|
_this5.categoryId = "";
|
|
var data = {
|
|
categoryName: "全部"
|
|
};
|
|
_this5.indexList.unshift(data);
|
|
} else {
|
|
_this5.categoryId = _this5.indexList[0].id;
|
|
}
|
|
for (var i = 0; i < _this5.indexList.length; i++) {
|
|
if (i == 0) {
|
|
_this5.indexList[i].parentId = true;
|
|
} else {
|
|
_this5.indexList[i].parentId = false;
|
|
}
|
|
}
|
|
_this5.pageNum = 1;
|
|
_this5.searchName = "";
|
|
_this5.shopList1 = [];
|
|
_this5.shopList = [];
|
|
_this5.getShareList();
|
|
} else {
|
|
_this5.tui.toast(res.message);
|
|
}
|
|
}).catch(function (res) {});
|
|
},
|
|
minusNum: function minusNum() {
|
|
this.isChange = true;
|
|
for (var i = 0; i < this.temporaryList.length; i++) {
|
|
if (this.evalue.length == 0) {
|
|
if (this.temporaryList[i].productCount > 0) {
|
|
this.temporaryList[i].productCount--;
|
|
} else {
|
|
this.temporaryList[i].productCount = 0;
|
|
}
|
|
} else {
|
|
for (var j = 0; j < this.evalue.length; j++) {
|
|
if (this.evalue[j] == this.temporaryList[i].name) {
|
|
if (this.temporaryList[i].productCount > 0) {
|
|
this.temporaryList[i].productCount--;
|
|
} else {
|
|
this.temporaryList[i].productCount = 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
for (var m = 0; m < this.pageOldTemList.length; m++) {
|
|
if (this.temporaryList[i].attributeList == this.pageOldTemList[m].attributeList) {
|
|
this.pageOldTemList[m].productCount = this.temporaryList[i].productCount;
|
|
}
|
|
}
|
|
for (var j = 0; j < this.oldTemList.length; j++) {
|
|
if (this.temporaryList[i].attributeList == this.oldTemList[j].attributeList) {
|
|
this.oldTemList[j].productCount = this.temporaryList[i].productCount;
|
|
}
|
|
}
|
|
}
|
|
this.temporaryChange();
|
|
},
|
|
plusNum: function plusNum() {
|
|
this.isChange = true;
|
|
//监听到点击+的操作,给所有的都+1
|
|
for (var i = 0; i < this.temporaryList.length; i++) {
|
|
if (this.evalue.length == 0) {
|
|
if (this.temporaryList[i].productCount == undefined) {
|
|
this.temporaryList[i].productCount = 1;
|
|
} else {
|
|
if (this.temporaryList[i].productCount + 1 > this.temporaryList[i].productNum && (this.shopId == '1838094297858183168' || this.shopId == '1811579958284390400')) {
|
|
this.tui.toast(this.temporaryList[i].name + "已超出可购买数量", 300);
|
|
} else {
|
|
this.temporaryList[i].productCount++;
|
|
}
|
|
}
|
|
} else {
|
|
for (var j = 0; j < this.evalue.length; j++) {
|
|
if (this.evalue[j] == this.temporaryList[i].name) {
|
|
if (this.temporaryList[i].productCount == undefined) {
|
|
this.temporaryList[i].productCount = 1;
|
|
} else {
|
|
if (this.temporaryList[i].productCount + 1 > this.temporaryList[i].productNum && (this.shopId == '1838094297858183168' || this.shopId == '1811579958284390400')) {
|
|
this.tui.toast(this.temporaryList[i].name + "已超出可购买数量", 300);
|
|
} else {
|
|
this.temporaryList[i].productCount++;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
for (var m = 0; m < this.pageOldTemList.length; m++) {
|
|
if (this.temporaryList[i].attributeList == this.pageOldTemList[m].attributeList) {
|
|
this.pageOldTemList[m].productCount = this.temporaryList[i].productCount;
|
|
}
|
|
}
|
|
for (var j = 0; j < this.oldTemList.length; j++) {
|
|
if (this.temporaryList[i].attributeList == this.oldTemList[j].attributeList) {
|
|
this.oldTemList[j].productCount = this.temporaryList[i].productCount;
|
|
}
|
|
}
|
|
}
|
|
this.temporaryChange();
|
|
},
|
|
allChange: function allChange(e) {
|
|
if (this.isChange == true) {
|
|
this.isChange = false;
|
|
} else {
|
|
for (var i = 0; i < this.temporaryList.length; i++) {
|
|
if (this.evalue.length == 0) {
|
|
if (Number(this.allChangeNum) > this.temporaryList[i].productNum && (this.shopId == '1838094297858183168' || this.shopId == '1811579958284390400')) {
|
|
this.tui.toast(this.temporaryList[i].name + "已超出可购买数量", 300);
|
|
} else {
|
|
this.temporaryList[i].productCount = Number(this.allChangeNum);
|
|
}
|
|
} else {
|
|
for (var j = 0; j < this.evalue.length; j++) {
|
|
if (this.evalue[j] == this.temporaryList[i].name) {
|
|
if (Number(this.allChangeNum) > this.temporaryList[i].productNum && (this.shopId == '1838094297858183168' || this.shopId == '1811579958284390400')) {
|
|
this.tui.toast(this.temporaryList[i].name + "已超出可购买数量", 300);
|
|
} else {
|
|
this.temporaryList[i].productCount = Number(this.allChangeNum);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
for (var m = 0; m < this.pageOldTemList.length; m++) {
|
|
if (this.temporaryList[i].attributeList == this.pageOldTemList[m].attributeList) {
|
|
this.pageOldTemList[m].productCount = this.temporaryList[i].productCount;
|
|
}
|
|
}
|
|
for (var j = 0; j < this.oldTemList.length; j++) {
|
|
if (this.temporaryList[i].attributeList == this.oldTemList[j].attributeList) {
|
|
this.oldTemList[j].productCount = this.temporaryList[i].productCount;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.temporaryChange();
|
|
},
|
|
mapMinusNum: function mapMinusNum(index, index1) {
|
|
this.carList[index].stockLogList1[index1].productCount--;
|
|
this.carChange();
|
|
this.$forceUpdate();
|
|
},
|
|
mapPlusNum: function mapPlusNum(index, index1) {
|
|
this.carList[index].stockLogList1[index1].productCount++;
|
|
this.carChange();
|
|
this.$forceUpdate();
|
|
},
|
|
attrNameChange: function attrNameChange(index, data1, index1) {
|
|
var _this6 = this;
|
|
uni.showLoading({
|
|
title: '加载中...'
|
|
});
|
|
this.goodsDetail.attributeList[index].isChecked = !this.goodsDetail.attributeList[index].isChecked;
|
|
this.goodsDetail.attributeList[index].value[index1].isChecked = !this.goodsDetail.attributeList[index].value[index1].isChecked;
|
|
this.evalue = [];
|
|
var value = [];
|
|
for (var _i = 0, data = this.goodsDetail.attributeList[0].value; _i < data.length; _i++) {
|
|
if (data[_i].isChecked) {
|
|
for (var j = 0, dataJ = this.goodsDetail.attributeList[1].value; j < dataJ.length; j++) {
|
|
var name = '';
|
|
var value1 = "{";
|
|
name = data[_i].value + ' | ' + dataJ[j].value;
|
|
value1 += '"' + '颜色' + '":"' + data[_i].value + '",';
|
|
value1 += '"' + '尺码' + '":"' + dataJ[j].value + '"';
|
|
value1 += "}";
|
|
if (this.shopId == '1838094297858183168' || this.shopId == '1811579958284390400') {
|
|
for (var a = 0; a < this.pecsList.length; a++) {
|
|
if (value1 == this.pecsList[a].attributeList && this.pecsList[a].stockCount != null && Number(this.pecsList[a].stockCount) > 0) {
|
|
value.push(value1);
|
|
this.evalue.push(name);
|
|
}
|
|
}
|
|
} else {
|
|
value.push(value1);
|
|
this.evalue.push(name);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (value.length == 0) {
|
|
this.temporaryList = this.pageOldTemList;
|
|
}
|
|
if (this.temporaryList.length == 0) {
|
|
for (var i = 0; i < value.length; i++) {
|
|
this.attributeList = {
|
|
attributeList: value[i],
|
|
productCount: this.temporaryNum,
|
|
productNum: null,
|
|
name: this.evalue[i],
|
|
price: this.purchasePrice
|
|
};
|
|
this.temporaryList.push(this.attributeList);
|
|
}
|
|
} else {
|
|
var newProductCount = 0;
|
|
for (var i = 0; i < value.length; i++) {
|
|
for (var m = 0; m < this.temporaryList.length; m++) {
|
|
if (this.temporaryList[m].attributeList == value[i]) {
|
|
newProductCount = this.temporaryList[m].productCount;
|
|
}
|
|
}
|
|
this.attributeList = {
|
|
attributeList: value[i],
|
|
productCount: newProductCount,
|
|
productNum: null,
|
|
name: this.evalue[i],
|
|
price: this.purchasePrice
|
|
};
|
|
this.newTemList.push(this.attributeList);
|
|
newProductCount = 0;
|
|
}
|
|
for (var i = 0; i < this.oldTemList.length; i++) {
|
|
var oldAttributeList = '';
|
|
var oldProductCount = '';
|
|
var notChcek = true;
|
|
for (var m = 0; m < this.newTemList.length; m++) {
|
|
if (this.oldTemList[i].attributeList == this.newTemList[m].attributeList) {
|
|
this.newTemList[m].productCount = this.oldTemList[i].productCount;
|
|
notChcek = false;
|
|
}
|
|
}
|
|
if (this.newTemList.length > 0 && notChcek) {
|
|
this.newTemList.push(this.oldTemList[i]);
|
|
}
|
|
}
|
|
for (var i = 0; i < this.pageOldTemList.length; i++) {
|
|
var _oldAttributeList = '';
|
|
var _oldProductCount = '';
|
|
var _notChcek = true;
|
|
for (var m = 0; m < this.newTemList.length; m++) {
|
|
if (this.pageOldTemList[i].attributeList == this.newTemList[m].attributeList) {
|
|
this.newTemList[m].productCount = this.pageOldTemList[i].productCount;
|
|
_notChcek = false;
|
|
}
|
|
}
|
|
if (this.newTemList.length > 0 && _notChcek) {
|
|
this.newTemList.push(this.pageOldTemList[i]);
|
|
}
|
|
}
|
|
}
|
|
this.$nextTick(function () {
|
|
for (var i = 0; i < _this6.temporaryList.length; i++) {
|
|
for (var m = 0; m < _this6.pecsList.length; m++) {
|
|
if (_this6.temporaryList[i].attributeList == _this6.pecsList[m].attributeList) {
|
|
_this6.temporaryList[i].productNum = _this6.pecsList[m].stockCount;
|
|
}
|
|
_this6.$forceUpdate();
|
|
}
|
|
}
|
|
});
|
|
if (this.newTemList.length != 0) {
|
|
this.temporaryList = this.newTemList;
|
|
this.oldTemList = [];
|
|
this.newTemList = [];
|
|
}
|
|
setTimeout(function (res) {
|
|
uni.hideLoading();
|
|
}, 200);
|
|
},
|
|
lunbochange: function lunbochange(e) {
|
|
this.current = e.detail.current;
|
|
},
|
|
temporaryChange: function temporaryChange(val) {
|
|
this.zNum = 0;
|
|
for (var i = 0; i < this.temporaryList.length; i++) {
|
|
this.zNum += this.temporaryList[i].productCount || 0;
|
|
}
|
|
this.zPrice = this.zNum * this.purchasePrice;
|
|
},
|
|
checkUser: function checkUser(item) {
|
|
this.formData.consigneeMobile = item.phone;
|
|
this.formData.consigneeName = item.name;
|
|
this.formData.userId = item.id;
|
|
this.formData.address1 = item.province + item.city + item.area;
|
|
this.formData.address = item.address;
|
|
this.formData.province = item.province;
|
|
this.formData.city = item.city;
|
|
this.formData.area = item.area;
|
|
this.$refs.addressPopup.close();
|
|
},
|
|
//点击开单按钮,调起地址输入窗
|
|
clickPrice: function clickPrice() {
|
|
if (this.carList == '') {
|
|
this.tui.toast('请选择商品后再开单');
|
|
return;
|
|
}
|
|
this.getOldPhone(uni.getStorageSync('id') ? uni.getStorageSync('id') : this.userId);
|
|
this.$refs.inputDialog.open('bottom');
|
|
},
|
|
getOldPhone: function getOldPhone(phone) {
|
|
var _this7 = this;
|
|
var moblie;
|
|
if (phone != '' && phone != undefined && phone != 'null' && phone != null) {
|
|
moblie = phone;
|
|
} else if (uni.getStorageSync('userPhone')) {
|
|
moblie = uni.getStorageSync('userPhone');
|
|
} else {
|
|
moblie = "";
|
|
}
|
|
this.tui.request("/app/customer/findByUserPhoneAndShopId", "post", {
|
|
userPhone: moblie,
|
|
shopId: this.shopId
|
|
}, false, true).then(function (res) {
|
|
if (res.code == 200) {
|
|
if (res.result != '') {
|
|
if (res.result.length > 1) {
|
|
_this7.userList = res.result;
|
|
_this7.$refs.addressPopup.open();
|
|
} else {
|
|
_this7.formData.consigneeMobile = res.result[0].phone;
|
|
_this7.formData.consigneeName = res.result[0].name;
|
|
_this7.formData.address1 = res.result[0].province + res.result[0].city + res.result[0].area;
|
|
_this7.formData.address = res.result[0].address;
|
|
_this7.formData.userId = res.result[0].id;
|
|
_this7.formData.province = res.result[0].province;
|
|
_this7.formData.city = res.result[0].city;
|
|
_this7.formData.area = res.result[0].area;
|
|
}
|
|
}
|
|
}
|
|
});
|
|
},
|
|
//获取弹出层状态
|
|
change: function change(e) {},
|
|
//弹出购物车或者商品规格选择弹窗
|
|
toggle: function toggle(type, item) {
|
|
this.type = type;
|
|
if (type == 'carPopup') {
|
|
this.oldList = this.carList;
|
|
this.carNum = 0;
|
|
for (var i = 0; i < this.carList.length; i++) {
|
|
this.carNum += this.carList[i].num;
|
|
}
|
|
this.countTotalPrice();
|
|
this.$refs.carPopup.open('bottom');
|
|
this.carType = this.carList.length;
|
|
} else {
|
|
uni.showLoading({
|
|
title: '加载中...'
|
|
});
|
|
this.productId = item.id;
|
|
this.goodsList = [];
|
|
this.allChangeNum = 0;
|
|
this.checkGoods(item);
|
|
}
|
|
},
|
|
//选择商品查询商品规格
|
|
checkGoods: function checkGoods(item) {
|
|
var _this8 = this;
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
var that, i;
|
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
while (1) {
|
|
switch (_context2.prev = _context2.next) {
|
|
case 0:
|
|
uni.showLoading({
|
|
title: '加载中...'
|
|
});
|
|
that = _this8;
|
|
if (_this8.priceType == 1) {
|
|
//批发价
|
|
_this8.purchasePrice = item.wholesalePrice;
|
|
} else {
|
|
_this8.purchasePrice = item.price;
|
|
}
|
|
_this8.goodsDetail = item;
|
|
_this8.temporaryList = [];
|
|
_this8.pageOldTemList = [];
|
|
if (_this8.carList != '') {
|
|
_this8.zNum = 0;
|
|
for (i = 0; i < _this8.carList.length; i++) {
|
|
if (item.id == _this8.carList[i].id) {
|
|
_this8.goodsNum = _this8.carList[i].stockLogList1[0].productCount;
|
|
_this8.zNum = _this8.carList[i].num;
|
|
_this8.temporaryList = _this8.carList[i].stockLogList1;
|
|
_this8.pageOldTemList = _this8.carList[i].stockLogList1;
|
|
_this8.oldTemList = _this8.carList[i].stockLogList1;
|
|
}
|
|
}
|
|
}
|
|
_context2.next = 9;
|
|
return _this8.tui.request("/app/productAttribute/selectAttributeAndValueByCategoryId", "POST", {
|
|
categoryId: _this8.goodsDetail.attrId
|
|
}, false, true).then(function (res1) {
|
|
if (res1.code == 200) {
|
|
if (typeof res1.result.attributeAndValue == 'string') {
|
|
var newObj = JSON.parse(res1.result.attributeAndValue);
|
|
var newArr = [];
|
|
var dataArr = [];
|
|
for (var val in newObj) {
|
|
var valueObj = [];
|
|
var isTrue = false;
|
|
for (var i = 0; i < newObj[val].length; i++) {
|
|
for (var m = 0; m < _this8.oldTemList.length; m++) {
|
|
var data = _this8.oldTemList[m].name.split('/');
|
|
for (var j = 0; j < data.length; j++) {
|
|
if (data[j] == newObj[val][i]) {
|
|
isTrue = true;
|
|
}
|
|
}
|
|
}
|
|
for (var m = 0; m < _this8.pageOldTemList.length; m++) {
|
|
var data = _this8.pageOldTemList[m].name.split('/');
|
|
for (var j = 0; j < data.length; j++) {
|
|
if (data[j] == newObj[val][i]) {
|
|
isTrue = true;
|
|
}
|
|
}
|
|
}
|
|
valueObj.push({
|
|
value: newObj[val][i],
|
|
isChecked: false
|
|
});
|
|
that.dataObj.set(newObj[val][i], val);
|
|
isTrue = false;
|
|
}
|
|
newArr.push({
|
|
name: val,
|
|
value: valueObj
|
|
});
|
|
}
|
|
_this8.focus = false;
|
|
// newArr[0].value[0].isChecked = true
|
|
_this8.$refs.popup.open('bottom');
|
|
_this8.goodsDetail.attributeList = newArr;
|
|
for (var i = 0; i < _this8.goodsDetail.attributeList.length; i++) {
|
|
var oldCheck = false;
|
|
var oldValue = [];
|
|
for (var m = 0; m < _this8.goodsDetail.attributeList[i].value.length; m++) {
|
|
if (_this8.goodsDetail.attributeList[i].value[m].isChecked == true) {
|
|
oldCheck = true;
|
|
oldValue.push(_this8.goodsDetail.attributeList[i].value[m].value);
|
|
}
|
|
}
|
|
if (oldCheck) {
|
|
var specs1 = {
|
|
specs: []
|
|
};
|
|
specs1.specs = oldValue;
|
|
_this8.goodsList.push(specs1);
|
|
} else {
|
|
var _specs = {
|
|
specs: []
|
|
};
|
|
_this8.goodsList.push(_specs);
|
|
}
|
|
oldCheck = false;
|
|
oldValue = [];
|
|
}
|
|
_this8.getKCList(res1.result.stock);
|
|
if (_this8.temporaryList == '') {
|
|
_this8.attrNameChange(0, _this8.goodsDetail.attributeList[0].value[0].value, 0);
|
|
}
|
|
}
|
|
} else {
|
|
_this8.tui.toast(res.message);
|
|
}
|
|
}).catch(function (res) {});
|
|
case 9:
|
|
_context2.next = 11;
|
|
return uni.hideLoading();
|
|
case 11:
|
|
case "end":
|
|
return _context2.stop();
|
|
}
|
|
}
|
|
}, _callee2);
|
|
}))();
|
|
},
|
|
goToInfo: function goToInfo() {
|
|
uni.reLaunch({
|
|
url: '/pages/index/home'
|
|
});
|
|
},
|
|
//点击左侧菜单切换
|
|
clickLeftBtn: function clickLeftBtn(index) {
|
|
for (var i = 0; i < this.indexList.length; i++) {
|
|
if (i == index) {
|
|
this.indexList[i].parentId = true;
|
|
} else {
|
|
this.indexList[i].parentId = false;
|
|
}
|
|
}
|
|
this.categoryId = this.indexList[index].id;
|
|
this.pages = 1;
|
|
this.searchName = "";
|
|
this.shopList1 = [];
|
|
this.shopList = [];
|
|
this.getShareList(this.indexList[index].id);
|
|
},
|
|
//库存商品详情
|
|
getKCList: function getKCList(list) {
|
|
var _this9 = this;
|
|
this.yanseList = new Map();
|
|
this.chimaList = new Map();
|
|
this.pecsList = list;
|
|
var _loop = function _loop(i) {
|
|
var attributeList = JSON.parse(list[i].attributeList);
|
|
Object.keys(attributeList).forEach(function (key) {
|
|
if (key == '颜色') {
|
|
if (_this9.yanseList.has(attributeList[key]) != true) {
|
|
_this9.yanseList.set(attributeList[key], attributeList[key]);
|
|
}
|
|
}
|
|
});
|
|
};
|
|
for (var i = 0; i < list.length; i++) {
|
|
_loop(i);
|
|
}
|
|
for (var _i2 = 0; _i2 < this.goodsDetail.attributeList[0].value.length; _i2++) {
|
|
//颜色
|
|
if (this.yanseList.has(this.goodsDetail.attributeList[0].value[_i2].value) == true) {
|
|
this.goodsDetail.attributeList[0].value[_i2].isKucun = true;
|
|
}
|
|
}
|
|
},
|
|
//顶部搜索框
|
|
search: function search(res) {
|
|
this.pages = 1;
|
|
this.searchName = res.value;
|
|
this.getShareList();
|
|
},
|
|
//清空搜索条件
|
|
clearSearch: function clearSearch() {
|
|
this.pages = 1;
|
|
this.searchName = '';
|
|
this.getShareList();
|
|
},
|
|
inputDialogToggle: function inputDialogToggle() {
|
|
this.$refs.inputDialog.open();
|
|
},
|
|
carChange: function carChange(e, index, index1) {
|
|
this.carNum = 0;
|
|
this.pageZongPrice = 0;
|
|
for (var i = 0; i < this.carList.length; i++) {
|
|
this.carList[i].num = 0;
|
|
for (var m = 0; m < this.carList[i].stockLogList1.length; m++) {
|
|
this.carList[i].num += this.carList[i].stockLogList1[m].productCount;
|
|
this.pageZongPrice += this.carList[i].stockLogList1[m].productCount * this.carList[i].stockLogList1[m].price;
|
|
}
|
|
this.carNum += this.carList[i].num;
|
|
}
|
|
},
|
|
//弹窗选择规格后,点击弹窗中选好了按钮
|
|
temporaryCheck: function temporaryCheck() {
|
|
var that = this;
|
|
var newList = [];
|
|
for (var i = 0; i < this.temporaryList.length; i++) {
|
|
if (this.temporaryList[i].productCount != 0) {
|
|
newList.push(this.temporaryList[i]);
|
|
}
|
|
}
|
|
var data = {
|
|
productId: this.goodsDetail.id,
|
|
price: this.zPrice,
|
|
num: this.zNum,
|
|
discount: 10,
|
|
categoryId: this.goodsDetail.categoryId,
|
|
productName: this.goodsDetail.productName,
|
|
purchasePrice: this.goodsDetail.purchasePrice,
|
|
discountAmount: this.goodsDetail.discountAmount,
|
|
productSn: this.goodsDetail.productSn,
|
|
productPicture: this.goodsDetail.productPicture,
|
|
supplierName: this.goodsDetail.supplierName,
|
|
stockLogList1: newList,
|
|
saleDetailQueryDTO1: [],
|
|
wholesalePrice: this.goodsDetail.wholesalePrice,
|
|
lsprice: this.goodsDetail.price
|
|
};
|
|
if (this.carList.length == 0) {
|
|
this.carList.push(data);
|
|
} else {
|
|
var aa = true;
|
|
for (var _i3 = 0; _i3 < this.carList.length; _i3++) {
|
|
if (this.carList[_i3].productId == data.productId) {
|
|
this.carList[_i3] = data;
|
|
aa = false;
|
|
}
|
|
}
|
|
if (aa) {
|
|
this.carList.push(data);
|
|
}
|
|
}
|
|
for (var _i4 = 0; _i4 < this.carList.length; _i4++) {
|
|
this.carList[_i4].num = 0;
|
|
for (var m = 0; m < this.carList[_i4].stockLogList1.length; m++) {
|
|
this.carList[_i4].num += this.carList[_i4].stockLogList1[m].productCount;
|
|
}
|
|
}
|
|
this.temporaryList = [];
|
|
this.oldTemList = [];
|
|
this.purchasePrice = '';
|
|
this.zPrice = '';
|
|
this.zNum = '';
|
|
for (var _i5 = 0; _i5 < this.goodsDetail.attributeList.length; _i5++) {
|
|
this.goodsDetail.attributeList[_i5].isChecked = false;
|
|
for (var _m = 0; _m < this.goodsDetail.attributeList[_i5].value.length; _m++) {
|
|
this.goodsDetail.attributeList[_i5].value[_m].isChecked = false;
|
|
}
|
|
}
|
|
this.$refs.popup.close();
|
|
},
|
|
//删除整条商品
|
|
delShop: function delShop(item) {
|
|
var that = this;
|
|
uni.showModal({
|
|
title: "提示",
|
|
content: "确定删除此条商品吗?",
|
|
success: function success(res) {
|
|
if (res.confirm) {
|
|
for (var i = 0; i < that.carList.length; i++) {
|
|
if (that.carList[i].productId == item.productId) {
|
|
that.carNum -= that.carList[i].num;
|
|
that.carList.splice(i, 1);
|
|
}
|
|
}
|
|
that.carType = that.carList.length;
|
|
}
|
|
that.$forceUpdate();
|
|
that.countTotalPrice();
|
|
}
|
|
});
|
|
},
|
|
countTotalPrice: function countTotalPrice() {
|
|
this.pageZongPrice = 0;
|
|
for (var i = 0; i < this.carList.length; i++) {
|
|
for (var m = 0; m < this.carList[i].stockLogList1.length; m++) {
|
|
this.pageZongPrice += this.carList[i].stockLogList1[m].productCount * this.carList[i].stockLogList1[m].price;
|
|
}
|
|
}
|
|
},
|
|
//查看大图
|
|
largeImg: function largeImg(img) {
|
|
if (img.productPicture == null && img.productPictures == null || img.productPicture == '' && img.productPictures == null) {
|
|
this.tui.toast("暂无可展示的图片", 300);
|
|
return;
|
|
}
|
|
this.bigImg = [];
|
|
if (img.productPicture != null) {
|
|
var data = {
|
|
productPicture: img.productPicture
|
|
};
|
|
this.bigImg.push(data);
|
|
}
|
|
if (img.productPictures != null) {
|
|
for (var i = 0; i < img.productPictures.length; i++) {
|
|
this.bigImg.push(img.productPictures[i]);
|
|
}
|
|
}
|
|
this.$refs.imgPopup.open();
|
|
},
|
|
//选商品的时候能删除规格
|
|
delCarData: function delCarData(index) {
|
|
this.temporaryList.splice(index, 1);
|
|
this.temporaryChange();
|
|
},
|
|
//删除商品下的某一个规格
|
|
delShopSpec: function delShopSpec(index, index1) {
|
|
var that = this;
|
|
uni.showModal({
|
|
title: "提示",
|
|
content: "确定删除此条商品吗?",
|
|
success: function success(res) {
|
|
if (res.confirm) {
|
|
for (var i = 0; i < that.carList.length; i++) {
|
|
if (that.carList[i].productId == index) {
|
|
for (var m = 0; m < that.carList[i].stockLogList1.length; m++) {
|
|
if (that.carList[i].stockLogList1[m].attributeList == index1) {
|
|
that.carList[i].num -= that.carList[i].stockLogList1[m].productCount;
|
|
that.carNum -= that.carList[i].stockLogList1[m].productCount;
|
|
that.carList[i].stockLogList1.splice(m, 1);
|
|
continue;
|
|
}
|
|
}
|
|
}
|
|
if (that.carList[i].stockLogList1.length == 0) {
|
|
that.carList.splice(i, 1);
|
|
}
|
|
}
|
|
that.carType = that.carList.length;
|
|
}
|
|
that.$forceUpdate();
|
|
that.countTotalPrice();
|
|
}
|
|
});
|
|
},
|
|
//点击底部下单按钮
|
|
backPrevPage: function backPrevPage() {
|
|
var _this10 = this;
|
|
if (this.isKaiDan) return;
|
|
this.isKaiDan = true;
|
|
var that = this;
|
|
uni.setStorageSync('userPhone', that.formData.consigneeMobile);
|
|
this.$refs.form.validate().then(function (res) {
|
|
var obj = {
|
|
mobile: that.formData.consigneeMobile,
|
|
username: that.formData.consigneeName,
|
|
userId: _this10.formData.userId == undefined || _this10.formData.userId == null || _this10.formData.userId == 'undefined' || _this10.formData.userId == 'null' ? '' : _this10.formData.userId,
|
|
userPhone: _this10.formData.consigneeMobile,
|
|
categoryId: _this10.priceType == "1" || _this10.priceType == '0' ? '' : _this10.catagoryUserId,
|
|
categoryName: _this10.priceType == "1" || _this10.priceType == '0' ? '' : _this10.customName,
|
|
oldSaleId: _this10.khid,
|
|
sale: {
|
|
area: _this10.formData.area,
|
|
city: _this10.formData.city,
|
|
discount: 10,
|
|
province: _this10.formData.province,
|
|
receiveAddress: that.formData.address,
|
|
totalAmount: that.pageZongPrice,
|
|
//应付金额
|
|
shopId: _this10.shopId
|
|
},
|
|
saleDetailList: _this10.carList
|
|
};
|
|
_this10.tui.request("/app/sale/savePresale", "post", obj, false, false).then(function (res) {
|
|
if (res.code == 200) {
|
|
_this10.tui.toast("下单成功,待商家配货");
|
|
setTimeout(function () {
|
|
uni.reLaunch({
|
|
url: "/package2/login/login"
|
|
});
|
|
}, 2000);
|
|
} else {
|
|
_this10.tui.toast(res.message);
|
|
}
|
|
});
|
|
}).catch(function (err) {});
|
|
},
|
|
openPicker: function openPicker() {
|
|
var that = this;
|
|
uni.chooseLocation({
|
|
success: function success(res) {
|
|
if (res.name != '') {
|
|
var aaa = (0, _global.getArea)(res.address);
|
|
that.formData.province = aaa.province;
|
|
that.formData.city = aaa.city;
|
|
that.formData.area = aaa.country;
|
|
that.formData.address = aaa.address + '-' + res.name;
|
|
that.formData.address1 = aaa.province + aaa.city + aaa.country;
|
|
} else {
|
|
that.tui.toast("微信地址选择器调用失败,请重新选择!");
|
|
}
|
|
},
|
|
fail: function fail(res) {}
|
|
});
|
|
// this.show = true
|
|
},
|
|
//点击分类获取商品列表
|
|
getShareList: function getShareList(id) {
|
|
var _this11 = this;
|
|
this.status = 'loading';
|
|
// this.shopList = []
|
|
this.tui.request("/app/productShare/getShareList", "POST", {
|
|
searchStr: this.searchName,
|
|
categoryId: this.categoryId == undefined ? '' : this.categoryId,
|
|
id: this.khid,
|
|
pageNum: this.pages,
|
|
pageSize: '10'
|
|
}, false, true).then(function (res) {
|
|
_this11.status = 'nomore';
|
|
if (res.code == 200) {
|
|
_this11.shopName = res.result.share.shopName;
|
|
_this11.priceType = res.result.share.priceType;
|
|
_this11.shopId = res.result.shareList.records[0].shopId;
|
|
if (_this11.pages == 1) {
|
|
_this11.shopList = res.result.shareList.records;
|
|
} else {
|
|
_this11.shopList = [].concat((0, _toConsumableArray2.default)(_this11.shopList), (0, _toConsumableArray2.default)(res.result.shareList.records));
|
|
}
|
|
for (var i = 0; i < _this11.shopList.length; i++) {
|
|
if (res.result.share.priceType == 1) {
|
|
//批发价
|
|
_this11.shopList[i].discountAmount = _this11.shopList[i].wholesalePrice;
|
|
} else if (res.result.share.priceType == 0) {
|
|
//零售
|
|
_this11.shopList[i].discountAmount = _this11.shopList[i].price;
|
|
} else {
|
|
_this11.shopList[i].discountAmount = _this11.shopList[i].wholesalePrice;
|
|
if (_this11.shopList[i].customerCategoryRule != null && _this11.shopList[i].customerCategoryRule != '') {
|
|
var customerCategoryRule = JSON.parse(_this11.shopList[i].customerCategoryRule);
|
|
for (var m = 0; m < customerCategoryRule.length; m++) {
|
|
if (customerCategoryRule[m].categoryPrice != '' && customerCategoryRule[m].categoryId == _this11.catagoryUserId) {
|
|
_this11.shopList[i].discountAmount = customerCategoryRule[m].categoryPrice;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
_this11.totalPages = res.result.shareList.pages;
|
|
} else {
|
|
_this11.tui.toast(res.message);
|
|
}
|
|
}).catch(function (res) {});
|
|
},
|
|
combination: function combination(arr) {
|
|
var result = [[]];
|
|
arr.map(function (x) {
|
|
var res = [];
|
|
result.map(function (y) {
|
|
x.specs.map(function (z) {
|
|
res.push([].concat((0, _toConsumableArray2.default)(y), [z]));
|
|
});
|
|
});
|
|
result = res;
|
|
});
|
|
return result;
|
|
},
|
|
//保存已选
|
|
saveCheck: function saveCheck() {
|
|
this.pageOldTemList = this.temporaryList;
|
|
for (var i = 0; i < this.goodsDetail.attributeList.length; i++) {
|
|
this.goodsList[i].specs = [];
|
|
for (var m = 0; m < this.goodsDetail.attributeList[i].value.length; m++) {
|
|
this.goodsDetail.attributeList[i].value[m].isChecked = false;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
exports.default = _default;
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
|
|
/***/ }),
|
|
|
|
/***/ 555:
|
|
/*!**************************************************************************************************!*\
|
|
!*** C:/文档/distribution-uni/package1/index/downStearmList.vue?vue&type=style&index=0&lang=scss& ***!
|
|
\**************************************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_downStearmList_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--8-oneOf-1-3!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../软件/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./downStearmList.vue?vue&type=style&index=0&lang=scss& */ 556);
|
|
/* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_downStearmList_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_downStearmList_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_downStearmList_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_downStearmList_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
/* harmony default export */ __webpack_exports__["default"] = (_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_downStearmList_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 556:
|
|
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
!*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!C:/文档/distribution-uni/package1/index/downStearmList.vue?vue&type=style&index=0&lang=scss& ***!
|
|
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
if(false) { var cssReload; }
|
|
|
|
|
|
/***/ })
|
|
|
|
},[[549,"common/runtime","common/vendor"]]]);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/package1/index/downStearmList.js.map
|