12 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageB/ParcelExpress"],{426:function(o,t,n){"use strict";(function(o,t){var e=n(4);n(26);e(n(25));var i=e(n(427));o.__webpack_require_UNI_MP_PLUGIN__=n,t(i.default)}).call(this,n(1)["default"],n(2)["createPage"])},427:function(o,t,n){"use strict";n.r(t);var e=n(428),i=n(430);for(var a in i)["default"].indexOf(a)<0&&function(o){n.d(t,o,(function(){return i[o]}))}(a);n(432);var d,r=n(45),s=Object(r["default"])(i["default"],e["render"],e["staticRenderFns"],!1,null,"5b62f5ed",null,!1,e["components"],d);s.options.__file="pageB/ParcelExpress.vue",t["default"]=s.exports},428:function(o,t,n){"use strict";n.r(t);var e=n(429);n.d(t,"render",(function(){return e["render"]})),n.d(t,"staticRenderFns",(function(){return e["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return e["recyclableRender"]})),n.d(t,"components",(function(){return e["components"]}))},429:function(o,t,n){"use strict";var e;n.r(t),n.d(t,"render",(function(){return i})),n.d(t,"staticRenderFns",(function(){return d})),n.d(t,"recyclableRender",(function(){return a})),n.d(t,"components",(function(){return e}));try{e={uNavbar:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-navbar/u-navbar")]).then(n.bind(null,856))},uIcon:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-icon/u-icon")]).then(n.bind(null,980))},uCheckboxGroup:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-checkbox-group/u-checkbox-group")]).then(n.bind(null,938))},uCheckbox:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-checkbox/u-checkbox")]).then(n.bind(null,964))},uPopup:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-popup/u-popup")]).then(n.bind(null,1012))},uParse:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-parse/u-parse")]).then(n.bind(null,1003))}}}catch(r){if(-1===r.message.indexOf("Cannot find module")||-1===r.message.indexOf(".vue"))throw r;console.error(r.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 o=this,t=o.$createElement,n=(o._self._c,o.expressinfo.transit_full_address.slice(0,6)),e=JSON.stringify(o.topadd),i="{}"!==e?o.replacePhoneToStar(o.topadd.mobile):null,a=JSON.stringify(o.bottomadd),d="{}"!==a?o.replacePhoneToStar(o.bottomadd.mobile):null,r=JSON.stringify(o.goodinfo);o._isMounted||(o.e0=function(t){return o.uni.navigateBack()}),o.$mp.data=Object.assign({},{$root:{g0:n,g1:e,m0:i,g2:a,m1:d,g3:r}})},a=!1,d=[];i._withStripped=!0},430:function(o,t,n){"use strict";n.r(t);var e=n(431),i=n.n(e);for(var a in e)["default"].indexOf(a)<0&&function(o){n.d(t,o,(function(){return e[o]}))}(a);t["default"]=i.a},431:function(o,t,n){"use strict";(function(o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{deal:-1,checkboxValue1:[],expressinfo:{},topadd:{},bottomadd:{},province_id:"",goodinfo:{},sum:"",internationalshow:!1,content:"",contenttitle:"",language:"zh-CN",type:"",goodtype:""}},onLoad:function(t){this.expressinfo=JSON.parse(decodeURIComponent(t.expressinfo)),console.log("expressinfo",this.expressinfo),""!=o.getStorageSync("language")&&(this.language=o.getStorageSync("language")),"pin"==t.type&&(this.type="pin",this.goodtype=this.expressinfo.type,console.log(this.goodtype))},computed:{i18n:function(){return this.$t("index")}},methods:{changeji:function(){o.navigateBack()},close:function(){this.internationalshow=!1},internationalshowa:function(){o.navigateTo({url:"/pageB/xieyi?code=international_express_service"})},international:function(){var t=this;o.$u.http.get("/api/agreement",{params:{code:"international_express_service"}}).then((function(o){console.log(o),"zh-CN"==t.language&&(t.content=o.content_cn,t.contenttitle=o.name_cn),"en-US"==t.language&&(t.content=o.content_en,t.contenttitle=o.name_en),"es-ES"==t.language&&(t.content=o.content_es,t.contenttitle=o.content_ita),"it-IT"==t.language&&(t.content=o.content_cn,t.contenttitle=o.name_ita)})).catch((function(){}))},changeadd:function(){var o={};o=this.topadd,this.topadd=this.bottomadd,this.bottomadd=o,this.province_id=this.bottomadd.province_id},replacePhoneToStar:function(o){if(o)return o.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")},addbook:function(t){var n=this;o.navigateTo({url:"/pageC/addressManagement/addressManagement?tabs="+t,events:{getadd:function(o){1==t?(n.topadd=o,console.log("topadd",n.topadd)):(n.bottomadd=o,console.log("bottom",n.bottomadd),n.province_id=n.bottomadd.province_id)}}})},goods:function(){if("{}"!=JSON.stringify(this.topadd))if("{}"!=JSON.stringify(this.bottomadd)){var t=this;"{}"==JSON.stringify(this.goodinfo)?o.navigateTo({url:"/pageB/goods?type="+this.type+"&goodtype="+this.goodtype,events:{goodinfo:function(o){t.goodinfo=o,t.calculate()}}}):o.navigateTo({url:"/pageB/goods?goodinfo="+encodeURIComponent(JSON.stringify(this.goodinfo))+"&type="+this.type+"&goodtype="+this.goodtype,events:{goodinfo:function(o){t.goodinfo=o,console.log(o),t.calculate()}}})}else this.$u.toast(this.i18n.informate);else this.$u.toast(this.i18n.informat)},send:function(){var t=this;if("{}"==JSON.stringify(t.topadd))o.navigateTo({url:"/pageC/addEditAddress/addEditAddress",events:{topadd:function(o){t.topadd=o}}});else{t=this;o.navigateTo({url:"/pageC/addEditAddress/addEditAddress?id="+t.topadd.id,events:{topadd:function(o){t.topadd=o}}})}},recipirnt:function(){var t=this;"{}"==JSON.stringify(t.bottomadd)?o.navigateTo({url:"/pageB/recipientinfo",events:{bottomadd:function(o){console.log(o),t.bottomadd=o}}}):o.navigateTo({url:"/pageB/recipientinfo?id="+t.bottomadd.id,events:{bottomadd:function(o){console.log(o),t.bottomadd=o}}})},checkboxChange:function(o){console.log("change",o)},next:function(){var t=this;"{}"!==JSON.stringify(this.topadd)?"{}"!==JSON.stringify(this.bottomadd)?"{}"!==JSON.stringify(this.goodinfo)?0!=this.checkboxValue1.length?o.$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(n){t.orderinfo=n,o.navigateTo({url:"/pageB/account?goodinfo="+encodeURIComponent(JSON.stringify(t.goodinfo))+"&topadd="+encodeURIComponent(JSON.stringify(t.topadd))+"&bottomadd="+encodeURIComponent(JSON.stringify(t.bottomadd))+"&expressinfo="+encodeURIComponent(JSON.stringify(t.expressinfo))+"&orderinfo="+encodeURIComponent(JSON.stringify(t.orderinfo))})})).catch((function(){})):this.$u.toast("请勾选协议"):this.$u.toast("请填写物品信息"):this.$u.toast("请填写收货地址"):this.$u.toast("请填写寄货地址")},calculate:function(){var t=this;o.$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(o){t.sum=o.amount})).catch((function(){}))}}};t.default=n}).call(this,n(2)["default"])},432:function(o,t,n){"use strict";n.r(t);var e=n(433),i=n.n(e);for(var a in e)["default"].indexOf(a)<0&&function(o){n.d(t,o,(function(){return e[o]}))}(a);t["default"]=i.a},433:function(o,t,n){}},[[426,"common/runtime","common/vendor"]]]);
- //# sourceMappingURL=../../.sourcemap/mp-weixin/pageB/ParcelExpress.js.map
|