12 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageB/ParcelExpress"],{414:function(n,o,e){"use strict";(function(n,o){var t=e(4);e(26);t(e(25));var i=t(e(415));n.__webpack_require_UNI_MP_PLUGIN__=e,o(i.default)}).call(this,e(1)["default"],e(2)["createPage"])},415:function(n,o,e){"use strict";e.r(o);var t=e(416),i=e(418);for(var a in i)["default"].indexOf(a)<0&&function(n){e.d(o,n,(function(){return i[n]}))}(a);e(420);var r,c=e(37),d=Object(c["default"])(i["default"],t["render"],t["staticRenderFns"],!1,null,"5b62f5ed",null,!1,t["components"],r);d.options.__file="pageB/ParcelExpress.vue",o["default"]=d.exports},416:function(n,o,e){"use strict";e.r(o);var t=e(417);e.d(o,"render",(function(){return t["render"]})),e.d(o,"staticRenderFns",(function(){return t["staticRenderFns"]})),e.d(o,"recyclableRender",(function(){return t["recyclableRender"]})),e.d(o,"components",(function(){return t["components"]}))},417:function(n,o,e){"use strict";var t;e.r(o),e.d(o,"render",(function(){return i})),e.d(o,"staticRenderFns",(function(){return r})),e.d(o,"recyclableRender",(function(){return a})),e.d(o,"components",(function(){return t}));try{t={uNavbar:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-navbar/u-navbar")]).then(e.bind(null,836))},uIcon:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-icon/u-icon")]).then(e.bind(null,860))},uCheckboxGroup:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-checkbox-group/u-checkbox-group")]).then(e.bind(null,944))},uCheckbox:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-checkbox/u-checkbox")]).then(e.bind(null,970))},uPopup:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-popup/u-popup")]).then(e.bind(null,885))},uParse:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-parse/u-parse")]).then(e.bind(null,1006))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var n=this,o=n.$createElement,e=(n._self._c,n.expressinfo.transit_full_address.slice(0,6)),t=JSON.stringify(n.topadd),i="{}"!==t?n.replacePhoneToStar(n.topadd.mobile):null,a=JSON.stringify(n.bottomadd),r="{}"!==a?n.replacePhoneToStar(n.bottomadd.mobile):null,c=JSON.stringify(n.goodinfo);n._isMounted||(n.e0=function(o){return n.uni.navigateBack()}),n.$mp.data=Object.assign({},{$root:{g0:e,g1:t,m0:i,g2:a,m1:r,g3:c}})},a=!1,r=[];i._withStripped=!0},418:function(n,o,e){"use strict";e.r(o);var t=e(419),i=e.n(t);for(var a in t)["default"].indexOf(a)<0&&function(n){e.d(o,n,(function(){return t[n]}))}(a);o["default"]=i.a},419:function(n,o,e){"use strict";(function(n){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var e={data:function(){return{deal:-1,checkboxValue1:[],expressinfo:{},topadd:{},bottomadd:{},province_id:"",goodinfo:{},sum:"",internationalshow:!1,content:"",contenttitle:"",language:"zh-CN"}},onLoad:function(o){this.expressinfo=JSON.parse(decodeURIComponent(o.expressinfo)),""!=n.getStorageSync("language")&&(this.language=n.getStorageSync("language"))},computed:{i18n:function(){return this.$t("index")}},methods:{changeji:function(){n.navigateBack()},close:function(){this.internationalshow=!1},internationalshowa:function(){n.navigateTo({url:"/pageB/xieyi?code=international_express_service"})},international:function(){var o=this;n.$u.http.get("/api/agreement",{params:{code:"international_express_service"}}).then((function(n){console.log(n),"zh-CN"==o.language&&(o.content=n.content_cn,o.contenttitle=n.name_cn),"en-US"==o.language&&(o.content=n.content_en,o.contenttitle=n.name_en),"es-ES"==o.language&&(o.content=n.content_es,o.contenttitle=n.content_ita),"it-IT"==o.language&&(o.content=n.content_cn,o.contenttitle=n.name_ita)})).catch((function(){}))},changeadd:function(){var n={};n=this.topadd,this.topadd=this.bottomadd,this.bottomadd=n,this.province_id=this.bottomadd.province_id},replacePhoneToStar:function(n){if(n)return n.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")},addbook:function(o){var e=this;n.navigateTo({url:"/pageC/addressManagement/addressManagement?index="+o,events:{getadd:function(n){1==o?(e.topadd=n,console.log("topadd",e.topadd)):(e.bottomadd=n,console.log("bottom",e.bottomadd),e.province_id=e.bottomadd.province_id)}}})},goods:function(){if("{}"!=JSON.stringify(this.topadd))if("{}"!=JSON.stringify(this.bottomadd)){var o=this;"{}"==JSON.stringify(this.goodinfo)?n.navigateTo({url:"/pageB/goods",events:{goodinfo:function(n){o.goodinfo=n,o.calculate()}}}):n.navigateTo({url:"/pageB/goods?goodinfo="+encodeURIComponent(JSON.stringify(this.goodinfo)),events:{goodinfo:function(n){o.goodinfo=n,console.log(n),o.calculate()}}})}else this.$u.toast(this.i18n.informate);else this.$u.toast(this.i18n.informat)},send:function(){n.navigateTo({url:"/pageB/Senderinfor"})},recipirnt:function(){n.navigateTo({url:"/pageB/recipientinfo"})},checkboxChange:function(n){console.log("change",n)},next:function(){var o=this;"{}"!==JSON.stringify(this.topadd)?"{}"!==JSON.stringify(this.bottomadd)?"{}"!==JSON.stringify(this.goodinfo)?0!=this.checkboxValue1.length?n.$u.http.post("/api/express-order/group-create",{group_package_id:this.expressinfo.id,from_address_id:this.topadd.id,to_address_id:this.bottomadd.id,goods_name:this.goodinfo.goodname,goods_num:this.goodinfo.number,goods_weight:this.goodinfo.weight,goods_length:Number(this.goodinfo.length),goods_width:Number(this.goodinfo.width),goods_height:Number(this.goodinfo.height)}).then((function(e){o.orderinfo=e,n.navigateTo({url:"/pageB/account?goodinfo="+encodeURIComponent(JSON.stringify(o.goodinfo))+"&topadd="+encodeURIComponent(JSON.stringify(o.topadd))+"&bottomadd="+encodeURIComponent(JSON.stringify(o.bottomadd))+"&expressinfo="+encodeURIComponent(JSON.stringify(o.expressinfo))+"&orderinfo="+encodeURIComponent(JSON.stringify(o.orderinfo))})})).catch((function(){})):this.$u.toast("请勾选协议"):this.$u.toast("请填写物品信息"):this.$u.toast("请填写收货地址"):this.$u.toast("请填写寄货地址")},calculate:function(){var o=this;n.$u.http.post("/api/express-order/group-calculate",{group_package_id:this.expressinfo.id,weight:this.goodinfo.weight,length:this.goodinfo.length,width:this.goodinfo.width,height:this.goodinfo.height}).then((function(n){o.sum=n.amount})).catch((function(){}))}}};o.default=e}).call(this,e(2)["default"])},420:function(n,o,e){"use strict";e.r(o);var t=e(421),i=e.n(t);for(var a in t)["default"].indexOf(a)<0&&function(n){e.d(o,n,(function(){return t[n]}))}(a);o["default"]=i.a},421:function(n,o,e){}},[[414,"common/runtime","common/vendor"]]]);
- //# sourceMappingURL=../../.sourcemap/mp-weixin/pageB/ParcelExpress.js.map
|