Commit f540a20f by 肖康

Merge branch 'XK_order_ship20210120'

# Conflicts:
#	view/22.js
#	view/23.js
#	view/47.js
#	view/app.fd4032ed808a8ccad4f3.hot-update.js
#	view/app.js
#	view/index.html
parents acc3b822 1381b2ac
......@@ -26,7 +26,12 @@ const actions = {
Services.shipping(qs.stringify(params)).then((res) => {
state.loading = false;
if (res.data.err_code == 0) {
state.wlInfo=res.data.data[0]
let arr_=res.data.data||[]
arr_.forEach((item)=>{
if(item.order_shipping_id==payload.order_shipping_id){
state.wlInfo=item
}
})
state.wlInfoAll=res.data.data
}else{
Toast(res.data.err_msg)
......
......@@ -10,7 +10,7 @@
</div>
<template v-else-if="orderDetailInfo.status==7||orderDetailInfo.status==8||orderDetailInfo.status==10" >
<div v-if="wlInfoAll&&wlInfoAll.length>0">
<a v-for="item in wlInfoAll" class="t1-box wl wlnobt" @click="toUrl('/h5/view/#/userShipping?order_id='+orderDetailInfo.order_id+'&order_sn='+orderDetailInfo.order_sn)" >
<a v-for="item in wlInfoAll" class="t1-box wl wlnobt" @click="toUrl('/h5/view/#/userShipping?order_shipping_id='+orderDetailInfo.order_shipping_id+'order_id='+orderDetailInfo.order_id+'&order_sn='+orderDetailInfo.order_sn)" >
<div class="ordersta" >{{item.shipping_name}}&nbsp;单号:{{item.shipping_no}}</div>
<span class="fhxh" @click.stop="fhxhfunc(item.goods_items)">发货型号</span>
<i class="icon iconfont">&#xe67c;</i>
......
......@@ -45,7 +45,8 @@
return {
order_id:"",
order_sn:"",
copyCon:""
copyCon:"",
order_shipping_id:""
}
},
computed: {
......@@ -63,9 +64,11 @@
created() {
this.order_id=this.$route.query.order_id;
this.order_sn=this.$route.query.order_sn;
this.order_shipping_id=this.$route.query.order_shipping_id;
this.$store.dispatch({
type: "shipping",
order_id:this.order_id
order_id:this.order_id,
order_shipping_id:this.order_shipping_id
})
this.$store.dispatch({
type: "getUserbase"
......
{"h":"d662d6b0f690f88d7447","c":{"app":true}}
\ No newline at end of file
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
{"h":"ab478af8c61e7f43acba","c":{"47":true}}
\ No newline at end of file
This diff is collapsed. Click to expand it.
{"h":"34aea70b41e107755780","c":{"23":true}}
\ No newline at end of file
{"h":"041a82a8f9cbc85cb834","c":{"47":true}}
\ No newline at end of file
{"h":"fd4032ed808a8ccad4f3","c":{"app":true}}
\ No newline at end of file
webpackHotUpdate("app",{
/***/ "./src/store/modules/user/shipping.js":
/*!********************************************!*\
!*** ./src/store/modules/user/shipping.js ***!
\********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/web.dom.iterable */ \"./node_modules/_core-js@2.6.12@core-js/modules/web.dom.iterable.js\");\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../api/index */ \"./src/api/index.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.11.2@vant/es/index.js\");\n\n\n\n\nvar qs = __webpack_require__(/*! qs */ \"./node_modules/_qs@6.9.4@qs/lib/index.js\");\n\nvar state = {\n loading: false,\n wlInfo: \"\",\n wlInfoAll: \"\",\n userInfo: {\n user_info: {\n user_head: \"\"\n },\n company_info: {\n com_addres: \"\"\n }\n }\n};\nvar mutations = {};\nvar actions = {\n //获取物流信息\n shipping: function shipping(_ref, payload) {\n var commit = _ref.commit;\n state.loading = true;\n var params = {\n id: payload.order_id\n };\n _api_index__WEBPACK_IMPORTED_MODULE_1__[\"services\"].shipping(qs.stringify(params)).then(function (res) {\n state.loading = false;\n\n if (res.data.err_code == 0) {\n var arr_ = res.data.data || [];\n arr_.forEach(function (item) {\n if (item.order_shipping_id == payload.order_shipping_id) {\n state.wlInfo = item;\n }\n });\n state.wlInfoAll = res.data.data;\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_2__[\"Toast\"])(res.data.err_msg);\n }\n }).catch(function (err) {\n state.loading = false;\n });\n },\n getUserbase: function getUserbase(_ref2, payload) {\n var commit = _ref2.commit;\n state.loading = true;\n var params = {\n type: 2\n };\n _api_index__WEBPACK_IMPORTED_MODULE_1__[\"services\"].getUserType(qs.stringify(params)).then(function (res) {\n state.loading = false;\n var data = res.data;\n\n if (data.err_code == 0) {\n state.userInfo = data.data;\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_2__[\"Toast\"])({\n message: data.err_msg,\n duration: 3000\n });\n }\n }).catch(function (err) {\n state.loading = false;\n });\n }\n};\nvar getters = {};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n state: state,\n mutations: mutations,\n actions: actions,\n getters: getters\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc3RvcmUvbW9kdWxlcy91c2VyL3NoaXBwaW5nLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL3N0b3JlL21vZHVsZXMvdXNlci9zaGlwcGluZy5qcz9jNjc2Il0sInNvdXJjZXNDb250ZW50IjpbIlxyXG5pbXBvcnQgeyBzZXJ2aWNlcyBhcyBTZXJ2aWNlcywgcHJvZHVjdGlvblVybEFwaSB9IGZyb20gJy4uLy4uLy4uL2FwaS9pbmRleCdcclxuaW1wb3J0IHsgVG9hc3QgfSBmcm9tICd2YW50J1xyXG52YXIgcXMgPSByZXF1aXJlKCdxcycpO1xyXG5cclxuXHJcbmNvbnN0IHN0YXRlID0ge1xyXG4gICAgbG9hZGluZzogZmFsc2UsXHJcbiAgICB3bEluZm86XCJcIixcclxuICAgIHdsSW5mb0FsbDpcIlwiLFxyXG4gICAgdXNlckluZm86e3VzZXJfaW5mbzp7dXNlcl9oZWFkOlwiXCJ9LGNvbXBhbnlfaW5mbzp7Y29tX2FkZHJlczpcIlwifX0sXHJcbiAgIFxyXG59XHJcblxyXG5jb25zdCBtdXRhdGlvbnMgPSB7XHJcblxyXG59XHJcbmNvbnN0IGFjdGlvbnMgPSB7XHJcblxyXG4gICAgLy/ojrflj5bnianmtYHkv6Hmga9cclxuICAgIHNoaXBwaW5nKHsgY29tbWl0IH0sIHBheWxvYWQpIHtcclxuICAgICAgICBzdGF0ZS5sb2FkaW5nID0gdHJ1ZTtcclxuICAgICAgICB2YXIgcGFyYW1zID0ge1xyXG4gICAgICAgICAgICBpZDogcGF5bG9hZC5vcmRlcl9pZFxyXG4gICAgICAgIH1cclxuICAgICAgICBTZXJ2aWNlcy5zaGlwcGluZyhxcy5zdHJpbmdpZnkocGFyYW1zKSkudGhlbigocmVzKSA9PiB7XHJcbiAgICAgICAgICAgIHN0YXRlLmxvYWRpbmcgPSBmYWxzZTtcclxuICAgICAgICAgICAgaWYgKHJlcy5kYXRhLmVycl9jb2RlID09IDApIHtcclxuICAgICAgICAgICAgICAgIGxldCBhcnJfPXJlcy5kYXRhLmRhdGF8fFtdXHJcbiAgICAgICAgICAgICAgICBhcnJfLmZvckVhY2goKGl0ZW0pPT57XHJcbiAgICAgICAgICAgICAgICAgICAgaWYoaXRlbS5vcmRlcl9zaGlwcGluZ19pZD09cGF5bG9hZC5vcmRlcl9zaGlwcGluZ19pZCl7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHN0YXRlLndsSW5mbz1pdGVtXHJcbiAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgfSlcclxuICAgICAgICAgICAgICAgIHN0YXRlLndsSW5mb0FsbD1yZXMuZGF0YS5kYXRhXHJcbiAgICAgICAgICAgIH1lbHNle1xyXG4gICAgICAgICAgICAgICAgVG9hc3QocmVzLmRhdGEuZXJyX21zZylcclxuICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICB9KS5jYXRjaChmdW5jdGlvbiAoZXJyKSB7XHJcbiAgICAgICAgICAgIHN0YXRlLmxvYWRpbmcgPSBmYWxzZTtcclxuICAgICAgICB9KTtcclxuXHJcblxyXG4gICAgfSxcclxuICAgIGdldFVzZXJiYXNlKHtjb21taXR9LCBwYXlsb2FkKSB7XHJcbiAgICAgICAgc3RhdGUubG9hZGluZz10cnVlO1xyXG4gICAgICAgIHZhciBwYXJhbXMgPSB7XHJcbiAgICAgICAgICAgIHR5cGU6MlxyXG4gICAgICAgIH1cclxuICAgICAgICBTZXJ2aWNlcy5nZXRVc2VyVHlwZShxcy5zdHJpbmdpZnkocGFyYW1zKSkudGhlbigocmVzKSA9PiB7XHJcbiAgICAgICAgICAgIHN0YXRlLmxvYWRpbmc9ZmFsc2U7XHJcbiAgICAgICAgICAgIGxldCBkYXRhID0gcmVzLmRhdGE7XHJcbiAgICAgICAgICAgIGlmIChkYXRhLmVycl9jb2RlID09IDApIHtcclxuICAgICAgICAgICAgICAgIHN0YXRlLnVzZXJJbmZvPWRhdGEuZGF0YTtcclxuICAgICAgICAgICAgICAgXHJcbiAgICAgICAgICAgIH1lbHNlIHtcclxuICAgICAgICAgICAgICAgIFRvYXN0KHtcclxuICAgICAgICAgICAgICAgICAgICBtZXNzYWdlOiBkYXRhLmVycl9tc2csXHJcbiAgICAgICAgICAgICAgICAgICAgZHVyYXRpb246IDMwMDBcclxuICAgICAgICAgICAgICAgIH0pO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfSkuY2F0Y2goZnVuY3Rpb24gKGVycikge1xyXG4gICAgICAgICAgICBzdGF0ZS5sb2FkaW5nID0gZmFsc2U7XHJcbiAgICAgICAgfSk7XHJcbiAgICB9LFxyXG4gICBcclxuICAgXHJcblxyXG5cclxufVxyXG5cclxuY29uc3QgZ2V0dGVycyA9IHt9XHJcblxyXG5leHBvcnQgZGVmYXVsdCB7XHJcbiAgICBzdGF0ZSxcclxuICAgIG11dGF0aW9ucyxcclxuICAgIGFjdGlvbnMsXHJcbiAgICBnZXR0ZXJzXHJcbn1cclxuXHJcbiJdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUpBO0FBUUE7QUFHQTtBQUVBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQURBO0FBR0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUdBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQURBO0FBR0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFGQTtBQUlBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFoREE7QUF1REE7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBSkEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/store/modules/user/shipping.js\n");
/***/ })
})
\ No newline at end of file
webpackHotUpdate("app",{
/***/ "./src/store/modules/user/shipping.js":
/*!********************************************!*\
!*** ./src/store/modules/user/shipping.js ***!
\********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../api/index */ \"./src/api/index.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.11.2@vant/es/index.js\");\n\n\n\nvar qs = __webpack_require__(/*! qs */ \"./node_modules/_qs@6.9.4@qs/lib/index.js\");\n\nvar state = {\n loading: false,\n wlInfo: \"\",\n wlInfoAll: \"\",\n wlInfoItem: \"\",\n userInfo: {\n user_info: {\n user_head: \"\"\n },\n company_info: {\n com_addres: \"\"\n }\n }\n};\nvar mutations = {};\nvar actions = {\n //获取物流信息\n shipping: function shipping(_ref, payload) {\n var commit = _ref.commit;\n state.loading = true;\n var params = {\n id: payload.order_id\n };\n _api_index__WEBPACK_IMPORTED_MODULE_0__[\"services\"].shipping(qs.stringify(params)).then(function (res) {\n state.loading = false;\n\n if (res.data.err_code == 0) {\n state.wlInfo = res.data.data[0];\n state.wlInfoAll = res.data.data;\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])(res.data.err_msg);\n }\n }).catch(function (err) {\n state.loading = false;\n });\n },\n getUserbase: function getUserbase(_ref2, payload) {\n var commit = _ref2.commit;\n state.loading = true;\n var params = {\n type: 2\n };\n _api_index__WEBPACK_IMPORTED_MODULE_0__[\"services\"].getUserType(qs.stringify(params)).then(function (res) {\n state.loading = false;\n var data = res.data;\n\n if (data.err_code == 0) {\n state.userInfo = data.data;\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])({\n message: data.err_msg,\n duration: 3000\n });\n }\n }).catch(function (err) {\n state.loading = false;\n });\n }\n};\nvar getters = {};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n state: state,\n mutations: mutations,\n actions: actions,\n getters: getters\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc3RvcmUvbW9kdWxlcy91c2VyL3NoaXBwaW5nLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL3N0b3JlL21vZHVsZXMvdXNlci9zaGlwcGluZy5qcz9jNjc2Il0sInNvdXJjZXNDb250ZW50IjpbIlxyXG5pb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gICB9ZWxzZXtcclxuICAgICAgICAgICAgICAgIFRvYXN0KHJlcy5kYXRhLmVycl9tc2cpXHJcbiAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgfSkuY2F0Y2goZnVuY3Rpb24gKGVycikge1xyXG4gICAgICAgICAgICBzdGF0ZS5sb2FkaW5nID0gZmFsc2U7XHJcbiAgICAgICAgfSk7XHJcblxyXG5cclxuICAgIH0sXHJcbiAgICBnZXRVc2VyYmFzZSh7Y29tbWl0fSwgcGF5bG9hZCkge1xyXG4gICAgICAgIHN0YXRlLmxvYWRpbmc9dHJ1ZTtcclxuICAgICAgICB2YXIgcGFyYW1zID0ge1xyXG4gICAgICAgICAgICB0eXBlOjJcclxuICAgICAgICB9XHJcbiAgICAgICAgU2VydmljZXMuZ2V0VXNlclR5cGUocXMuc3RyaW5naWZ5KHBhcmFtcykpLnRoZW4oKHJlcykgPT4ge1xyXG4gICAgICAgICAgICBzdGF0ZS5sb2FkaW5nPWZhbHNlO1xyXG4gICAgICAgICAgICBsZXQgZGF0YSA9IHJlcy5kYXRhO1xyXG4gICAgICAgICAgICBpZiAoZGF0YS5lcnJfY29kZSA9PSAwKSB7XHJcbiAgICAgICAgICAgICAgICBzdGF0ZS51c2VySW5mbz1kYXRhLmRhdGE7XHJcbiAgICAgICAgICAgICAgIFxyXG4gICAgICAgICAgICB9ZWxzZSB7XHJcbiAgICAgICAgICAgICAgICBUb2FzdCh7XHJcbiAgICAgICAgICAgICAgICAgICAgbWVzc2FnZTogZGF0YS5lcnJfbXNnLFxyXG4gICAgICAgICAgICAgICAgICAgIGR1cmF0aW9uOiAzMDAwXHJcbiAgICAgICAgICAgICAgICB9KTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH0pLmNhdGNoKGZ1bmN0aW9uIChlcnIpIHtcclxuICAgICAgICAgICAgc3RhdGUubG9hZGluZyA9IGZhbHNlO1xyXG4gICAgICAgIH0pO1xyXG4gICAgfSxcclxuICAgXHJcbiAgIFxyXG5cclxuXHJcbn1cclxuXHJcbmNvbnN0IGdldHRlcnMgPSB7fVxyXG5cclxuZXhwb3J0IGRlZmF1bHQge1xyXG4gICAgc3RhdGUsXHJcbiAgICBtdXRhdGlvbnMsXHJcbiAgICBhY3Rpb25zLFxyXG4gICAgZ2V0dGVyc1xyXG59XHJcblxyXG4iXSwibWFwcGluZ3MiOiJBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUxBO0FBU0E7QUFHQTtBQUVBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQURBO0FBR0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBR0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBREE7QUFHQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUZBO0FBSUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQTNDQTtBQWtEQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFKQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/store/modules/user/shipping.js\n");
/***/ })
})
\ No newline at end of file
webpackHotUpdate("app",{
/***/ "./src/store/modules/user/shipping.js":
/*!********************************************!*\
!*** ./src/store/modules/user/shipping.js ***!
\********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../api/index */ \"./src/api/index.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.11.2@vant/es/index.js\");\n\n\n\nvar qs = __webpack_require__(/*! qs */ \"./node_modules/_qs@6.9.4@qs/lib/index.js\");\n\nvar state = {\n loading: false,\n wlInfo: \"\",\n wlInfoAll: \"\",\n userInfo: {\n user_info: {\n user_head: \"\"\n },\n company_info: {\n com_addres: \"\"\n }\n }\n};\nvar mutations = {};\nvar actions = {\n //获取物流信息\n shipping: function shipping(_ref, payload) {\n var commit = _ref.commit;\n state.loading = true;\n var params = {\n id: payload.order_id\n };\n _api_index__WEBPACK_IMPORTED_MODULE_0__[\"services\"].shipping(qs.stringify(params)).then(function (res) {\n state.loading = false;\n\n if (res.data.err_code == 0) {\n state.wlInfo = res.data.data[0];\n state.wlInfoAll = res.data.data;\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])(res.data.err_msg);\n }\n }).catch(function (err) {\n state.loading = false;\n });\n },\n getUserbase: function getUserbase(_ref2, payload) {\n var commit = _ref2.commit;\n state.loading = true;\n var params = {\n type: 2\n };\n _api_index__WEBPACK_IMPORTED_MODULE_0__[\"services\"].getUserType(qs.stringify(params)).then(function (res) {\n state.loading = false;\n var data = res.data;\n\n if (data.err_code == 0) {\n state.userInfo = data.data;\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])({\n message: data.err_msg,\n duration: 3000\n });\n }\n }).catch(function (err) {\n state.loading = false;\n });\n }\n};\nvar getters = {};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n state: state,\n mutations: mutations,\n actions: actions,\n getters: getters\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc3RvcmUvbW9kdWxlcy91c2VyL3NoaXBwaW5nLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL3N0b3JlL21vZHVsZXMvdXNlci9zaGlwcGluZy5qcz9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ICAgICAgICAgICB9ZWxzZXtcclxuICAgICAgICAgICAgICAgIFRvYXN0KHJlcy5kYXRhLmVycl9tc2cpXHJcbiAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgfSkuY2F0Y2goZnVuY3Rpb24gKGVycikge1xyXG4gICAgICAgICAgICBzdGF0ZS5sb2FkaW5nID0gZmFsc2U7XHJcbiAgICAgICAgfSk7XHJcblxyXG5cclxuICAgIH0sXHJcbiAgICBnZXRVc2VyYmFzZSh7Y29tbWl0fSwgcGF5bG9hZCkge1xyXG4gICAgICAgIHN0YXRlLmxvYWRpbmc9dHJ1ZTtcclxuICAgICAgICB2YXIgcGFyYW1zID0ge1xyXG4gICAgICAgICAgICB0eXBlOjJcclxuICAgICAgICB9XHJcbiAgICAgICAgU2VydmljZXMuZ2V0VXNlclR5cGUocXMuc3RyaW5naWZ5KHBhcmFtcykpLnRoZW4oKHJlcykgPT4ge1xyXG4gICAgICAgICAgICBzdGF0ZS5sb2FkaW5nPWZhbHNlO1xyXG4gICAgICAgICAgICBsZXQgZGF0YSA9IHJlcy5kYXRhO1xyXG4gICAgICAgICAgICBpZiAoZGF0YS5lcnJfY29kZSA9PSAwKSB7XHJcbiAgICAgICAgICAgICAgICBzdGF0ZS51c2VySW5mbz1kYXRhLmRhdGE7XHJcbiAgICAgICAgICAgICAgIFxyXG4gICAgICAgICAgICB9ZWxzZSB7XHJcbiAgICAgICAgICAgICAgICBUb2FzdCh7XHJcbiAgICAgICAgICAgICAgICAgICAgbWVzc2FnZTogZGF0YS5lcnJfbXNnLFxyXG4gICAgICAgICAgICAgICAgICAgIGR1cmF0aW9uOiAzMDAwXHJcbiAgICAgICAgICAgICAgICB9KTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH0pLmNhdGNoKGZ1bmN0aW9uIChlcnIpIHtcclxuICAgICAgICAgICAgc3RhdGUubG9hZGluZyA9IGZhbHNlO1xyXG4gICAgICAgIH0pO1xyXG4gICAgfSxcclxuICAgXHJcbiAgIFxyXG5cclxuXHJcbn1cclxuXHJcbmNvbnN0IGdldHRlcnMgPSB7fVxyXG5cclxuZXhwb3J0IGRlZmF1bHQge1xyXG4gICAgc3RhdGUsXHJcbiAgICBtdXRhdGlvbnMsXHJcbiAgICBhY3Rpb25zLFxyXG4gICAgZ2V0dGVyc1xyXG59XHJcblxyXG4iXSwibWFwcGluZ3MiOiJBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFKQTtBQVFBO0FBR0E7QUFFQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFEQTtBQUdBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUdBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQURBO0FBR0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFGQTtBQUlBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUEzQ0E7QUFrREE7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBSkEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/store/modules/user/shipping.js\n");
/***/ })
})
\ No newline at end of file
This diff could not be displayed because it is too large.
{"h":"5159791b25ece1f76444","c":{"app":true}}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment