(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/luggage-storage/luggage-storage"],{
|
|
/***/ 215:
|
/*!**********************************************************************************************************************!*\
|
!*** D:/code/idea2023/git/gtzxinglijicun/small-program/main.js?{"page":"pages%2Fluggage-storage%2Fluggage-storage"} ***!
|
\**********************************************************************************************************************/
|
/*! 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 */ 30);
|
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
|
var _luggageStorage = _interopRequireDefault(__webpack_require__(/*! ./pages/luggage-storage/luggage-storage.vue */ 216));
|
// @ts-ignore
|
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;
|
createPage(_luggageStorage.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"]))
|
|
/***/ }),
|
|
/***/ 216:
|
/*!***************************************************************************************************!*\
|
!*** D:/code/idea2023/git/gtzxinglijicun/small-program/pages/luggage-storage/luggage-storage.vue ***!
|
\***************************************************************************************************/
|
/*! no static exports found */
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
"use strict";
|
__webpack_require__.r(__webpack_exports__);
|
/* harmony import */ var _luggage_storage_vue_vue_type_template_id_c13e4c60_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./luggage-storage.vue?vue&type=template&id=c13e4c60&scoped=true& */ 217);
|
/* harmony import */ var _luggage_storage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./luggage-storage.vue?vue&type=script&lang=js& */ 219);
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _luggage_storage_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 _luggage_storage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
/* harmony import */ var _luggage_storage_vue_vue_type_style_index_0_id_c13e4c60_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./luggage-storage.vue?vue&type=style&index=0&id=c13e4c60&lang=scss&scoped=true& */ 221);
|
/* harmony import */ var _soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 41);
|
|
var renderjs
|
|
|
|
|
|
/* normalize component */
|
|
var component = Object(_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
|
_luggage_storage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
_luggage_storage_vue_vue_type_template_id_c13e4c60_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
|
_luggage_storage_vue_vue_type_template_id_c13e4c60_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
false,
|
null,
|
"c13e4c60",
|
null,
|
false,
|
_luggage_storage_vue_vue_type_template_id_c13e4c60_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
|
renderjs
|
)
|
|
component.options.__file = "pages/luggage-storage/luggage-storage.vue"
|
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
|
/***/ }),
|
|
/***/ 217:
|
/*!**********************************************************************************************************************************************!*\
|
!*** D:/code/idea2023/git/gtzxinglijicun/small-program/pages/luggage-storage/luggage-storage.vue?vue&type=template&id=c13e4c60&scoped=true& ***!
|
\**********************************************************************************************************************************************/
|
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
"use strict";
|
__webpack_require__.r(__webpack_exports__);
|
/* harmony import */ var _soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_luggage_storage_vue_vue_type_template_id_c13e4c60_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!../../../../../../../soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./luggage-storage.vue?vue&type=template&id=c13e4c60&scoped=true& */ 218);
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_luggage_storage_vue_vue_type_template_id_c13e4c60_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_luggage_storage_vue_vue_type_template_id_c13e4c60_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_luggage_storage_vue_vue_type_template_id_c13e4c60_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_luggage_storage_vue_vue_type_template_id_c13e4c60_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });
|
|
|
|
/***/ }),
|
|
/***/ 218:
|
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
!*** ./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!D:/code/idea2023/git/gtzxinglijicun/small-program/pages/luggage-storage/luggage-storage.vue?vue&type=template&id=c13e4c60&scoped=true& ***!
|
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
/*! 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 = {
|
uIcon: function () {
|
return Promise.all(/*! import() | node-modules/uview-ui/components/u-icon/u-icon */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-icon/u-icon.vue */ 475))
|
},
|
uDatetimePicker: function () {
|
return Promise.all(/*! import() | node-modules/uview-ui/components/u-datetime-picker/u-datetime-picker */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-datetime-picker/u-datetime-picker")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-datetime-picker/u-datetime-picker.vue */ 499))
|
},
|
uPopup: function () {
|
return Promise.all(/*! import() | node-modules/uview-ui/components/u-popup/u-popup */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-popup/u-popup")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-popup/u-popup.vue */ 491))
|
},
|
uActionSheet: function () {
|
return Promise.all(/*! import() | node-modules/uview-ui/components/u-action-sheet/u-action-sheet */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-action-sheet/u-action-sheet")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-action-sheet/u-action-sheet.vue */ 508))
|
},
|
}
|
} 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
|
if (!_vm._isMounted) {
|
_vm.e0 = function ($event) {
|
_vm.showArriveTimePicker = true
|
}
|
_vm.e1 = function ($event) {
|
_vm.showPickupTimePicker = true
|
}
|
_vm.e2 = function ($event) {
|
_vm.showArriveTimePicker = false
|
}
|
_vm.e3 = function ($event) {
|
_vm.showArriveTimePicker = false
|
}
|
_vm.e4 = function ($event) {
|
_vm.showPickupTimePicker = false
|
}
|
_vm.e5 = function ($event) {
|
_vm.showPickupTimePicker = false
|
}
|
_vm.e6 = function ($event) {
|
_vm.showGoodsPopup = true
|
}
|
_vm.e7 = function ($event, item) {
|
var _temp = arguments[arguments.length - 1].currentTarget.dataset,
|
_temp2 = _temp.eventParams || _temp["event-params"],
|
item = _temp2.item
|
var _temp, _temp2
|
_vm.isUrgent = item.id
|
}
|
_vm.e8 = function ($event) {
|
_vm.showStorePopup = false
|
}
|
_vm.e9 = function ($event) {
|
_vm.showStorePopup = false
|
}
|
_vm.e10 = function ($event, index) {
|
var _temp3 = arguments[arguments.length - 1].currentTarget.dataset,
|
_temp4 = _temp3.eventParams || _temp3["event-params"],
|
index = _temp4.index
|
var _temp3, _temp4
|
_vm.storeList.forEach(function (row, i) {
|
return (row.active = index === i)
|
})
|
}
|
_vm.e11 = function ($event) {
|
_vm.showGoodsPopup = false
|
}
|
_vm.e12 = function ($event) {
|
_vm.showGoodsPopup = false
|
}
|
_vm.e13 = function ($event, index) {
|
var _temp5 = arguments[arguments.length - 1].currentTarget.dataset,
|
_temp6 = _temp5.eventParams || _temp5["event-params"],
|
index = _temp6.index
|
var _temp5, _temp6
|
_vm.goodsOptions.forEach(function (row, i) {
|
return (row.active = i === index)
|
})
|
}
|
_vm.e14 = function ($event) {
|
_vm.showAmountPopup = false
|
}
|
_vm.e15 = function ($event) {
|
_vm.showAmountPopup = false
|
}
|
_vm.e16 = function ($event) {
|
_vm.showAmountPopup = false
|
}
|
_vm.e17 = function ($event) {
|
_vm.showReceiveAddress = false
|
}
|
}
|
}
|
var recyclableRender = false
|
var staticRenderFns = []
|
render._withStripped = true
|
|
|
|
/***/ }),
|
|
/***/ 219:
|
/*!****************************************************************************************************************************!*\
|
!*** D:/code/idea2023/git/gtzxinglijicun/small-program/pages/luggage-storage/luggage-storage.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 _soft_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_luggage_storage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../soft/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../../../soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!../../../../../../../soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./luggage-storage.vue?vue&type=script&lang=js& */ 220);
|
/* harmony import */ var _soft_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_luggage_storage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_soft_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_luggage_storage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _soft_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_luggage_storage_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 _soft_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_luggage_storage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
/* harmony default export */ __webpack_exports__["default"] = (_soft_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_luggage_storage_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
/***/ }),
|
|
/***/ 220:
|
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
!*** ./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!D:/code/idea2023/git/gtzxinglijicun/small-program/pages/luggage-storage/luggage-storage.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 */ 34));
|
var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
|
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 36));
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
|
var _vuex = __webpack_require__(/*! vuex */ 37);
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); 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 = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
var _default = {
|
data: function data() {
|
return {
|
showStorePopup: false,
|
showGoodsPopup: false,
|
showAmountPopup: false,
|
showArriveTimePicker: false,
|
showPickupTimePicker: false,
|
arriveTimeValue: Number(new Date()),
|
pickupTimeValue: Number(new Date()),
|
activeMode: 'local',
|
modeTabs: [{
|
label: '就地寄存',
|
value: 'local'
|
}, {
|
label: '同城寄送',
|
value: 'city'
|
}],
|
agreementChecked: true,
|
tempSelectedStoreId: 2,
|
selectedStoreId: 2,
|
tempSelectedGoodsIds: [1],
|
selectedGoodsIds: [1],
|
selectedLuggageId: 1,
|
isUrgent: 0,
|
form: {
|
receiver: '',
|
mobile: '',
|
arriveTime: '',
|
pickupTime: '',
|
goodType: '',
|
goodTypeName: '',
|
insurance: '',
|
remark: '',
|
goodsImages: []
|
},
|
amountData: null,
|
luggageTypes: [],
|
serviceTimes: [],
|
storeList: [],
|
selectedStore: null,
|
sendStore: null,
|
receiveStore: null,
|
receiveAddr: null,
|
storePopupType: 'send',
|
storeForm: {
|
keyword: '',
|
page: 1,
|
isSearch: true
|
},
|
goodsOptions: [],
|
uploadedImages: [],
|
showReceiveAddress: false,
|
actions: [{
|
name: '选择服务点'
|
}, {
|
name: '选择地址簿'
|
}]
|
};
|
},
|
watch: {
|
'form.insurance': {
|
handler: function handler() {
|
this.calculateLocalPrice();
|
}
|
},
|
isUrgent: {
|
handler: function handler() {
|
if (this.activeMode === 'city') {
|
this.calculateRemotePrice();
|
}
|
}
|
}
|
},
|
computed: _objectSpread(_objectSpread({}, (0, _vuex.mapState)(['latitude', 'longitude', 'cityId'])), {}, {
|
servicePointPlaceholder: function servicePointPlaceholder() {
|
return this.activeMode === 'city' ? '选择寄送服务点' : '选择寄存服务点';
|
},
|
selectedGoodsText: function selectedGoodsText() {
|
var _this = this;
|
if (!this.selectedGoodsIds.length) {
|
return '必选,请选择';
|
}
|
var labels = this.goodsOptions.filter(function (item) {
|
return _this.selectedGoodsIds.includes(item.id);
|
}).map(function (item) {
|
return item.name;
|
});
|
return labels.join('、');
|
},
|
totalPriceText: function totalPriceText() {
|
return '¥150.00';
|
}
|
}),
|
onLoad: function onLoad() {
|
var _this2 = this;
|
this.getNearbyShopList();
|
this.getCategoryList();
|
this.getCitySizeList();
|
uni.$on('updateAddress', function (data) {
|
console.log(data);
|
_this2.receiveAddr = data;
|
});
|
},
|
methods: {
|
caozuo: function caozuo(e) {
|
var that = this;
|
if (e.name === '选择服务点') {
|
that.storePopupType = 'receive';
|
that.receiveStore = null;
|
that.showStorePopup = true;
|
} else if (e.name === '选择地址簿') {
|
that.receiveAddr = null;
|
uni.navigateTo({
|
url: '/pages/address/address?type=1'
|
});
|
}
|
that.showReceiveAddress = false;
|
},
|
uploadFiles: function uploadFiles(filePaths) {
|
var _arguments = arguments,
|
_this3 = this;
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
var maxCount, limitedPaths, uploadTasks, results;
|
return _regenerator.default.wrap(function _callee$(_context) {
|
while (1) {
|
switch (_context.prev = _context.next) {
|
case 0:
|
maxCount = _arguments.length > 1 && _arguments[1] !== undefined ? _arguments[1] : 9;
|
if (!(!filePaths || filePaths.length === 0)) {
|
_context.next = 3;
|
break;
|
}
|
return _context.abrupt("return", []);
|
case 3:
|
limitedPaths = filePaths.slice(0, maxCount);
|
uploadTasks = limitedPaths.map(function (filePath) {
|
return new Promise(function (resolve, reject) {
|
uni.uploadFile({
|
url: _this3.$baseUrl + '/web/public/upload',
|
filePath: filePath,
|
name: 'file',
|
formData: {
|
folder: 'orders'
|
},
|
success: function success(res) {
|
if (res.statusCode === 200) {
|
var data = JSON.parse(res.data);
|
if (data.code === 200) {
|
resolve(data.data);
|
} else {
|
reject(new Error(data.msg || '上传失败'));
|
}
|
} else {
|
reject(new Error('上传失败'));
|
}
|
},
|
fail: function fail(err) {
|
reject(err);
|
}
|
});
|
});
|
});
|
_context.prev = 5;
|
_context.next = 8;
|
return Promise.all(uploadTasks);
|
case 8:
|
results = _context.sent;
|
return _context.abrupt("return", results);
|
case 12:
|
_context.prev = 12;
|
_context.t0 = _context["catch"](5);
|
uni.showToast({
|
title: '上传失败',
|
icon: 'none'
|
});
|
throw _context.t0;
|
case 16:
|
case "end":
|
return _context.stop();
|
}
|
}
|
}, _callee, null, [[5, 12]]);
|
}))();
|
},
|
deleteImage: function deleteImage(index) {
|
this.uploadedImages.splice(index, 1);
|
this.form.goodsImages.splice(index, 1);
|
},
|
chooseAndUploadImage: function chooseAndUploadImage() {
|
var _arguments2 = arguments,
|
_this4 = this;
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
var maxCount, currentCount, remainingCount;
|
return _regenerator.default.wrap(function _callee3$(_context3) {
|
while (1) {
|
switch (_context3.prev = _context3.next) {
|
case 0:
|
maxCount = _arguments2.length > 0 && _arguments2[0] !== undefined ? _arguments2[0] : 9;
|
currentCount = _this4.form.goodsImages.length;
|
remainingCount = maxCount - currentCount;
|
if (!(remainingCount <= 0)) {
|
_context3.next = 6;
|
break;
|
}
|
uni.showToast({
|
title: "\u6700\u591A\u4E0A\u4F20".concat(maxCount, "\u5F20\u56FE\u7247"),
|
icon: 'none'
|
});
|
return _context3.abrupt("return");
|
case 6:
|
uni.chooseImage({
|
count: remainingCount,
|
sizeType: ['compressed'],
|
sourceType: ['album', 'camera'],
|
success: function () {
|
var _success = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(res) {
|
var tempFilePaths, uploadResults, addrs, fullPaths;
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
while (1) {
|
switch (_context2.prev = _context2.next) {
|
case 0:
|
tempFilePaths = res.tempFilePaths;
|
uni.showLoading({
|
title: '上传中...',
|
mask: true
|
});
|
_context2.prev = 2;
|
_context2.next = 5;
|
return _this4.uploadFiles(tempFilePaths, maxCount);
|
case 5:
|
uploadResults = _context2.sent;
|
addrs = uploadResults.map(function (item) {
|
return item.imgaddr;
|
});
|
fullPaths = uploadResults.map(function (item) {
|
return item.url || item.path || item;
|
});
|
_this4.uploadedImages = [].concat((0, _toConsumableArray2.default)(_this4.uploadedImages), (0, _toConsumableArray2.default)(fullPaths.map(function (url) {
|
return {
|
url: url
|
};
|
})));
|
_this4.form.goodsImages = [].concat((0, _toConsumableArray2.default)(_this4.form.goodsImages), (0, _toConsumableArray2.default)(addrs));
|
uni.hideLoading();
|
uni.showToast({
|
title: '上传成功',
|
icon: 'success'
|
});
|
_context2.next = 17;
|
break;
|
case 14:
|
_context2.prev = 14;
|
_context2.t0 = _context2["catch"](2);
|
uni.hideLoading();
|
case 17:
|
case "end":
|
return _context2.stop();
|
}
|
}
|
}, _callee2, null, [[2, 14]]);
|
}));
|
function success(_x) {
|
return _success.apply(this, arguments);
|
}
|
return success;
|
}()
|
});
|
case 7:
|
case "end":
|
return _context3.stop();
|
}
|
}
|
}, _callee3);
|
}))();
|
},
|
searchStore: function searchStore() {
|
this.storeList = [];
|
this.storeForm.page = 1;
|
this.storeForm.isSearch = true;
|
this.getNearbyShopList();
|
},
|
switchMode: function switchMode(mode) {
|
this.activeMode = mode;
|
this.selectedStore = null;
|
this.sendStore = null;
|
this.receiveStore = null;
|
this.receiveAddr = null;
|
this.form.receiver = '';
|
this.form.mobile = '';
|
this.form.arriveTime = '';
|
this.form.pickupTime = '';
|
this.form.goodType = '';
|
this.form.goodTypeName = '';
|
this.form.insurance = '';
|
this.form.remark = '';
|
this.form.goodsImages = [];
|
this.amountData = null;
|
this.uploadedImages = [];
|
this.luggageTypes.forEach(function (item) {
|
item.count = 0;
|
});
|
},
|
toggleAgreement: function toggleAgreement() {
|
this.agreementChecked = !this.agreementChecked;
|
},
|
goRichText: function goRichText(type) {
|
uni.navigateTo({
|
url: '/pages/rich-text/rich-text?type=' + type
|
});
|
},
|
openReceiveAddress: function openReceiveAddress() {
|
this.showReceiveAddress = true;
|
},
|
openAmountPopup: function openAmountPopup() {
|
this.showAmountPopup = true;
|
},
|
openStorePopup: function openStorePopup() {
|
this.storePopupType = 'send';
|
this.tempSelectedStoreId = null;
|
this.showStorePopup = true;
|
},
|
openStorePopup0: function openStorePopup0() {
|
this.storePopupType = 'send0';
|
this.tempSelectedStoreId = null;
|
this.showStorePopup = true;
|
},
|
confirmStore: function confirmStore() {
|
console.log("=========================");
|
var selected = this.storeList.find(function (item) {
|
return item.active;
|
});
|
console.log(selected);
|
if (this.storePopupType === 'send') {
|
this.sendStore = selected;
|
} else if (this.storePopupType === 'receive') {
|
this.receiveStore = selected;
|
this.receiveAddr = null;
|
this.calculateRemotePrice();
|
} else {
|
this.selectedStore = selected;
|
this.calculateLocalPrice();
|
}
|
this.showStorePopup = false;
|
},
|
confirmGoods: function confirmGoods() {
|
var _this$goodsOptions$fi, _this$goodsOptions$fi2;
|
if (!this.goodsOptions.find(function (item) {
|
return item.active;
|
})) {
|
uni.showToast({
|
title: '请选择物品信息',
|
icon: 'none'
|
});
|
return;
|
}
|
this.form.goodTypeName = ((_this$goodsOptions$fi = this.goodsOptions.find(function (item) {
|
return item.active;
|
})) === null || _this$goodsOptions$fi === void 0 ? void 0 : _this$goodsOptions$fi.name) || '';
|
this.form.goodType = ((_this$goodsOptions$fi2 = this.goodsOptions.find(function (item) {
|
return item.active;
|
})) === null || _this$goodsOptions$fi2 === void 0 ? void 0 : _this$goodsOptions$fi2.id) || '';
|
this.showGoodsPopup = false;
|
},
|
confirmArriveTime: function confirmArriveTime(e) {
|
var date = new Date(e.value);
|
var year = date.getFullYear();
|
var month = String(date.getMonth() + 1).padStart(2, '0');
|
var day = String(date.getDate()).padStart(2, '0');
|
var hour = String(date.getHours()).padStart(2, '0');
|
var minute = String(date.getMinutes()).padStart(2, '0');
|
this.form.arriveTime = "".concat(year, "-").concat(month, "-").concat(day, " ").concat(hour, ":").concat(minute);
|
this.showArriveTimePicker = false;
|
this.calculateLocalPrice();
|
},
|
confirmPickupTime: function confirmPickupTime(e) {
|
var date = new Date(e.value);
|
var year = date.getFullYear();
|
var month = String(date.getMonth() + 1).padStart(2, '0');
|
var day = String(date.getDate()).padStart(2, '0');
|
var hour = String(date.getHours()).padStart(2, '0');
|
var minute = String(date.getMinutes()).padStart(2, '0');
|
var pickupTime = "".concat(year, "-").concat(month, "-").concat(day, " ").concat(hour, ":").concat(minute);
|
if (this.form.arriveTime && new Date(pickupTime) <= new Date(this.form.arriveTime)) {
|
uni.showToast({
|
title: '预计取件时间必须大于预计到店时间',
|
icon: 'none'
|
});
|
return;
|
}
|
this.form.pickupTime = pickupTime;
|
this.showPickupTimePicker = false;
|
this.calculateLocalPrice();
|
},
|
// 物品分类
|
getCategoryList: function getCategoryList() {
|
var _this5 = this;
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
var res;
|
return _regenerator.default.wrap(function _callee4$(_context4) {
|
while (1) {
|
switch (_context4.prev = _context4.next) {
|
case 0:
|
_context4.next = 2;
|
return _this5.$u.api.getCategoryList({
|
type: 2
|
});
|
case 2:
|
res = _context4.sent;
|
if (res.code === 200) {
|
res.data.forEach(function (item) {
|
item.active = false;
|
});
|
_this5.goodsOptions = res.data || [];
|
}
|
case 4:
|
case "end":
|
return _context4.stop();
|
}
|
}
|
}, _callee4);
|
}))();
|
},
|
getCitySizeList: function getCitySizeList() {
|
var _this6 = this;
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
|
var res;
|
return _regenerator.default.wrap(function _callee5$(_context5) {
|
while (1) {
|
switch (_context5.prev = _context5.next) {
|
case 0:
|
_context5.next = 2;
|
return _this6.$u.api.getCitySizeList({
|
cityId: _this6.cityId
|
});
|
case 2:
|
res = _context5.sent;
|
if (res.code === 200) {
|
res.data.forEach(function (item) {
|
item.count = 0;
|
});
|
_this6.luggageTypes = res.data || [];
|
}
|
case 4:
|
case "end":
|
return _context5.stop();
|
}
|
}
|
}, _callee5);
|
}))();
|
},
|
getNearbyShopList: function getNearbyShopList() {
|
var _this7 = this;
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6() {
|
var res;
|
return _regenerator.default.wrap(function _callee6$(_context6) {
|
while (1) {
|
switch (_context6.prev = _context6.next) {
|
case 0:
|
if (_this7.storeForm.isSearch) {
|
_context6.next = 2;
|
break;
|
}
|
return _context6.abrupt("return");
|
case 2:
|
_context6.next = 4;
|
return _this7.$u.api.getNearbyShopList({
|
capacity: 10,
|
page: _this7.storeForm.page,
|
model: {
|
latitude: _this7.latitude,
|
longitude: _this7.longitude,
|
cityId: _this7.cityId,
|
name: _this7.storeForm.keyword,
|
sortType: 1
|
}
|
});
|
case 4:
|
res = _context6.sent;
|
if (res.code === 200) {
|
res.data.records.forEach(function (item) {
|
item.active = false;
|
});
|
_this7.storeList = [].concat((0, _toConsumableArray2.default)(_this7.storeList), (0, _toConsumableArray2.default)(res.data.records || []));
|
_this7.storeForm.page++;
|
_this7.storeForm.isSearch = _this7.storeList.length <= res.data.total;
|
}
|
case 6:
|
case "end":
|
return _context6.stop();
|
}
|
}
|
}, _callee6);
|
}))();
|
},
|
increaseCount: function increaseCount(index) {
|
this.luggageTypes[index].count++;
|
this.calculateLocalPrice();
|
},
|
decreaseCount: function decreaseCount(index) {
|
if (this.luggageTypes[index].count > 0) {
|
this.luggageTypes[index].count--;
|
}
|
this.calculateLocalPrice();
|
},
|
calculateLocalPrice: function calculateLocalPrice() {
|
var _this8 = this;
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() {
|
return _regenerator.default.wrap(function _callee7$(_context7) {
|
while (1) {
|
switch (_context7.prev = _context7.next) {
|
case 0:
|
if (_this8.activeMode === 'city') {
|
_this8.calculateRemotePrice();
|
} else {
|
_this8.calculateLocalPriceOnly();
|
}
|
case 1:
|
case "end":
|
return _context7.stop();
|
}
|
}
|
}, _callee7);
|
}))();
|
},
|
calculateLocalPriceOnly: function calculateLocalPriceOnly() {
|
var _this9 = this;
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() {
|
var luggageList, res;
|
return _regenerator.default.wrap(function _callee8$(_context8) {
|
while (1) {
|
switch (_context8.prev = _context8.next) {
|
case 0:
|
if (!(!_this9.selectedStore || !_this9.form.arriveTime || !_this9.form.pickupTime)) {
|
_context8.next = 2;
|
break;
|
}
|
return _context8.abrupt("return");
|
case 2:
|
luggageList = _this9.luggageTypes.filter(function (item) {
|
return item.count > 0;
|
}).map(function (item) {
|
return {
|
categoryId: item.id,
|
quantity: item.count
|
};
|
});
|
if (!(luggageList.length === 0)) {
|
_context8.next = 5;
|
break;
|
}
|
return _context8.abrupt("return");
|
case 5:
|
_context8.next = 7;
|
return _this9.$u.api.calculateLocalPrice({
|
cityId: _this9.cityId,
|
shopId: _this9.selectedStore.id,
|
depositStartTime: _this9.form.arriveTime + ':00',
|
depositEndTime: _this9.form.pickupTime + ':00',
|
items: luggageList,
|
declaredAmount: _this9.form.insurance || 0
|
});
|
case 7:
|
res = _context8.sent;
|
if (res.code === 200) {
|
res.data.itemList.forEach(function (item) {
|
item.unitPrice = item.unitPrice / 100;
|
});
|
res.data.totalPrice = res.data.totalPrice / 100;
|
res.data.insuranceFee = res.data.insuranceFee / 100;
|
_this9.amountData = res.data;
|
}
|
case 9:
|
case "end":
|
return _context8.stop();
|
}
|
}
|
}, _callee8);
|
}))();
|
},
|
calculateRemotePrice: function calculateRemotePrice() {
|
var _this10 = this;
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9() {
|
var luggageList, fromLat, fromLgt, toLat, toLgt, res;
|
return _regenerator.default.wrap(function _callee9$(_context9) {
|
while (1) {
|
switch (_context9.prev = _context9.next) {
|
case 0:
|
if (!(!_this10.sendStore || !_this10.form.arriveTime || !_this10.form.pickupTime)) {
|
_context9.next = 2;
|
break;
|
}
|
return _context9.abrupt("return");
|
case 2:
|
if (!(!_this10.receiveStore && !_this10.receiveAddr)) {
|
_context9.next = 4;
|
break;
|
}
|
return _context9.abrupt("return");
|
case 4:
|
luggageList = _this10.luggageTypes.filter(function (item) {
|
return item.count > 0;
|
}).map(function (item) {
|
return {
|
categoryId: item.id,
|
quantity: item.count
|
};
|
});
|
if (!(luggageList.length === 0)) {
|
_context9.next = 7;
|
break;
|
}
|
return _context9.abrupt("return");
|
case 7:
|
fromLat = '';
|
fromLgt = '';
|
toLat = '';
|
toLgt = '';
|
if (_this10.sendStore) {
|
fromLat = _this10.sendStore.latitude;
|
fromLgt = _this10.sendStore.longitude;
|
}
|
if (_this10.receiveStore) {
|
toLat = _this10.receiveStore.latitude;
|
toLgt = _this10.receiveStore.longitude;
|
} else if (_this10.receiveAddr) {
|
toLat = _this10.receiveAddr.latitude;
|
toLgt = _this10.receiveAddr.longitude;
|
}
|
_context9.next = 15;
|
return _this10.$u.api.calculateRemotePrice({
|
cityId: _this10.cityId,
|
fromLat: fromLat,
|
fromLgt: fromLgt,
|
toLat: toLat,
|
toLgt: toLgt,
|
urgent: _this10.isUrgent,
|
depositStartTime: _this10.form.arriveTime + ':00',
|
depositEndTime: _this10.form.pickupTime + ':00',
|
items: luggageList,
|
declaredAmount: _this10.form.insurance || 0
|
});
|
case 15:
|
res = _context9.sent;
|
if (res.code === 200) {
|
res.data.itemList.forEach(function (item) {
|
item.unitPrice = item.unitPrice / 100;
|
});
|
res.data.totalPrice = res.data.totalPrice / 100;
|
res.data.insuranceFee = res.data.insuranceFee / 100;
|
_this10.serviceTimes = [{
|
id: 0,
|
name: '标准达',
|
serviceTime: res.data.standardHours,
|
price: res.data.itemPrice / 100
|
}, {
|
id: 1,
|
name: '急速达',
|
serviceTime: res.data.urgentHours,
|
price: (res.data.urgentFee + res.data.itemPrice) / 100
|
}];
|
_this10.amountData = res.data;
|
}
|
case 17:
|
case "end":
|
return _context9.stop();
|
}
|
}
|
}, _callee9);
|
}))();
|
},
|
createOrder: function createOrder() {
|
var _this11 = this;
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee10() {
|
var luggageList, items, orderParams, res;
|
return _regenerator.default.wrap(function _callee10$(_context10) {
|
while (1) {
|
switch (_context10.prev = _context10.next) {
|
case 0:
|
if (_this11.agreementChecked) {
|
_context10.next = 3;
|
break;
|
}
|
uni.showToast({
|
title: '请先阅读并同意用户服务协议及隐私政策',
|
icon: 'none'
|
});
|
return _context10.abrupt("return");
|
case 3:
|
if (!(_this11.activeMode === 'local')) {
|
_context10.next = 9;
|
break;
|
}
|
if (_this11.selectedStore) {
|
_context10.next = 7;
|
break;
|
}
|
uni.showToast({
|
title: '请选择门店',
|
icon: 'none'
|
});
|
return _context10.abrupt("return");
|
case 7:
|
_context10.next = 15;
|
break;
|
case 9:
|
if (_this11.sendStore) {
|
_context10.next = 12;
|
break;
|
}
|
uni.showToast({
|
title: '请选择寄件服务点',
|
icon: 'none'
|
});
|
return _context10.abrupt("return");
|
case 12:
|
if (!(!_this11.receiveStore && !_this11.receiveAddr)) {
|
_context10.next = 15;
|
break;
|
}
|
uni.showToast({
|
title: '请选择取件地址',
|
icon: 'none'
|
});
|
return _context10.abrupt("return");
|
case 15:
|
if (_this11.form.arriveTime) {
|
_context10.next = 18;
|
break;
|
}
|
uni.showToast({
|
title: '请选择预计到店时间',
|
icon: 'none'
|
});
|
return _context10.abrupt("return");
|
case 18:
|
if (_this11.form.pickupTime) {
|
_context10.next = 21;
|
break;
|
}
|
uni.showToast({
|
title: '请选择预计取件时间',
|
icon: 'none'
|
});
|
return _context10.abrupt("return");
|
case 21:
|
if (!(new Date(_this11.form.pickupTime) <= new Date(_this11.form.arriveTime))) {
|
_context10.next = 24;
|
break;
|
}
|
uni.showToast({
|
title: '预计取件时间必须大于预计到店时间',
|
icon: 'none'
|
});
|
return _context10.abrupt("return");
|
case 24:
|
luggageList = _this11.luggageTypes.filter(function (item) {
|
return item.count > 0;
|
}).map(function (item) {
|
return {
|
categoryId: item.id,
|
quantity: item.count
|
};
|
});
|
if (!(luggageList.length === 0)) {
|
_context10.next = 28;
|
break;
|
}
|
uni.showToast({
|
title: '请选择行李类型',
|
icon: 'none'
|
});
|
return _context10.abrupt("return");
|
case 28:
|
items = luggageList.map(function (item) {
|
return {
|
categoryId: item.categoryId,
|
quantity: item.quantity
|
};
|
});
|
orderParams = {
|
cityId: _this11.cityId,
|
declaredAmount: _this11.form.insurance || 0,
|
expectedDepositTime: _this11.form.arriveTime + ':00',
|
expectedTakeTime: _this11.form.pickupTime + ':00',
|
goodType: _this11.form.goodType,
|
goodsImages: _this11.form.goodsImages,
|
items: items,
|
remark: _this11.form.remark,
|
takePhone: _this11.form.mobile,
|
takeUser: _this11.form.receiver,
|
type: _this11.activeMode === 'local' ? 0 : 1,
|
isUrgent: _this11.isUrgent
|
};
|
if (_this11.activeMode === 'local') {
|
orderParams.depositShopId = _this11.selectedStore.id;
|
} else {
|
orderParams.depositShopId = _this11.sendStore.id;
|
orderParams.fromShopId = _this11.sendStore.id;
|
if (_this11.receiveStore) {
|
orderParams.toType = 0;
|
orderParams.takeShopId = _this11.receiveStore.id;
|
orderParams.takeLat = _this11.receiveStore.latitude;
|
orderParams.takeLgt = _this11.receiveStore.longitude;
|
orderParams.takeLocation = _this11.receiveStore.address;
|
} else if (_this11.receiveAddr) {
|
orderParams.toType = 1;
|
orderParams.toAddrId = _this11.receiveAddr.id;
|
orderParams.takeLat = _this11.receiveAddr.latitude;
|
orderParams.takeLgt = _this11.receiveAddr.longitude;
|
orderParams.takeLocation = _this11.receiveAddr.addr;
|
}
|
}
|
_context10.next = 33;
|
return _this11.$u.api.createOrder(orderParams);
|
case 33:
|
res = _context10.sent;
|
if (res.code === 200) {
|
if (res.data) {
|
_this11.processPayment(res.data.response, res.data.orderId);
|
}
|
}
|
case 35:
|
case "end":
|
return _context10.stop();
|
}
|
}
|
}, _callee10);
|
}))();
|
},
|
processPayment: function processPayment(paymentData, orderId) {
|
uni.requestPayment({
|
provider: 'wxpay',
|
timeStamp: paymentData.timeStamp || '',
|
nonceStr: paymentData.nonceStr || '',
|
package: paymentData.package || '',
|
signType: paymentData.signType || 'MD5',
|
paySign: paymentData.paySign || '',
|
success: function success(res) {
|
uni.redirectTo({
|
url: '/pages/payment-success/payment-success?orderId=' + orderId
|
});
|
},
|
fail: function fail(err) {
|
if (err.errMsg.includes('cancel')) {
|
uni.showToast({
|
title: '已取消支付',
|
icon: 'none'
|
});
|
} else {
|
uni.showToast({
|
title: '支付失败',
|
icon: 'none'
|
});
|
}
|
uni.redirectTo({
|
url: '/pages/delivery-order-detail/delivery-order-detail?id=' + orderId
|
});
|
}
|
});
|
}
|
}
|
};
|
exports.default = _default;
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
|
|
/***/ }),
|
|
/***/ 221:
|
/*!*************************************************************************************************************************************************************!*\
|
!*** D:/code/idea2023/git/gtzxinglijicun/small-program/pages/luggage-storage/luggage-storage.vue?vue&type=style&index=0&id=c13e4c60&lang=scss&scoped=true& ***!
|
\*************************************************************************************************************************************************************/
|
/*! no static exports found */
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
"use strict";
|
__webpack_require__.r(__webpack_exports__);
|
/* harmony import */ var _soft_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_soft_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_soft_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_luggage_storage_vue_vue_type_style_index_0_id_c13e4c60_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../soft/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../soft/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!../../../../../../../soft/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--8-oneOf-1-3!../../../../../../../soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!../../../../../../../soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./luggage-storage.vue?vue&type=style&index=0&id=c13e4c60&lang=scss&scoped=true& */ 222);
|
/* harmony import */ var _soft_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_soft_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_soft_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_luggage_storage_vue_vue_type_style_index_0_id_c13e4c60_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_soft_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_soft_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_soft_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_luggage_storage_vue_vue_type_style_index_0_id_c13e4c60_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _soft_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_soft_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_soft_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_luggage_storage_vue_vue_type_style_index_0_id_c13e4c60_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _soft_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_soft_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_soft_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_luggage_storage_vue_vue_type_style_index_0_id_c13e4c60_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
/* harmony default export */ __webpack_exports__["default"] = (_soft_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_soft_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_soft_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_soft_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_luggage_storage_vue_vue_type_style_index_0_id_c13e4c60_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
/***/ }),
|
|
/***/ 222:
|
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
!*** ./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!D:/code/idea2023/git/gtzxinglijicun/small-program/pages/luggage-storage/luggage-storage.vue?vue&type=style&index=0&id=c13e4c60&lang=scss&scoped=true& ***!
|
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
/*! no static exports found */
|
/***/ (function(module, exports, __webpack_require__) {
|
|
// extracted by mini-css-extract-plugin
|
if(false) { var cssReload; }
|
|
|
/***/ })
|
|
},[[215,"common/runtime","common/vendor"]]]);
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/luggage-storage/luggage-storage.js.map
|