1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/express/express"],{"32c5":function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return o}));var o={uNavbar:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-navbar/u-navbar")]).then(e.bind(null,"b6bd"))},uBadge:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-badge/u-badge")]).then(e.bind(null,"eb50"))},uSubsection:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-subsection/u-subsection")]).then(e.bind(null,"0010"))},uLineProgress:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-line-progress/u-line-progress")]).then(e.bind(null,"daa6"))},uPopup:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-popup/u-popup")]).then(e.bind(null,"2f21"))},kjFlow:function(){return e.e("components/kj-flow/kj-flow").then(e.bind(null,"3409"))},kjTabbar:function(){return Promise.all([e.e("common/vendor"),e.e("components/kj-tabbar/kj-tabbar")]).then(e.bind(null,"c7a7"))}},i=function(){var t=this,n=t.$createElement,e=(t._self._c,JSON.stringify(t.topadd)),o="{}"!=e?t.replacePhoneToStar(t.topadd.mobile):null,i=JSON.stringify(t.bottomadd),a="{}"!=i?t.replacePhoneToStar(t.bottomadd.mobile):null,r=JSON.stringify(t.goodinfo),s=t.__map(t.expressList,(function(n,e){var o=t.__get_orig(n),i=n.price?n.price.slice(0,-3):null,a=n.price?n.price.slice(-3):null;return{$orig:o,g3:i,g4:a}}));t.$mp.data=Object.assign({},{$root:{g0:e,m0:o,g1:i,m1:a,g2:r,l0:s}})},a=[]},"65f3":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e("970c"),i={data:function(){return{list:[],current:0,type:"error",percentage:50,logshow:!1,status_collection:"",transit:0,receipt:0,overseas:0,topadd:{},bottomadd:{},province_id:"",leftname:"",rightname:"",container_id:"",language:"zh-CN",goodinfo:{},unit_price:"",expressList:[],leftchange:"",rightchange:"",typeid:"",unReadCount:0}},onLoad:function(t){this.list=[this.i18n.border,this.i18n.shop],t.current&&(this.current=t.current)},onShow:function(){this.list[0]=this.i18n.border,this.list[1]=this.i18n.shop,this.express(),""!=t.getStorageSync("language")&&(this.language=t.getStorageSync("language")),this.getexpress(),this.getlist()},computed:{i18n:function(){return this.$t("index")}},methods:{getlist:function(){var t=this;this.unReadCount=0,o.conn.getServerConversations({pageSize:50,cursor:""}).then((function(n){console.log(n),n.data.conversations.forEach((function(n){t.unReadCount+=n.unReadCount}))}))},onShareAppMessage:function(t){return"button"===t.from&&console.log(t.target),{title:this.i18n.border,path:"/pages/express/express"}},callphone:function(){t.$u.http.get("/api/config",{params:{module:"basic"}}).then((function(n){console.log(n),t.makePhoneCall({phoneNumber:n.service_mobile})})).catch((function(){}))},calculate:function(){var n=this;t.$u.http.get("/api/express-order/calculate",{params:{container_id:this.container_id,weight:this.goodinfo.weight,length:this.goodinfo.length,width:this.goodinfo.width,height:this.goodinfo.height,type:this.goodinfo.goodtype}}).then((function(e){console.log(e),t.navigateTo({url:"/pageB/delivery?goodinfo="+encodeURIComponent(JSON.stringify(n.goodinfo))+"&topadd="+encodeURIComponent(JSON.stringify(n.topadd))+"&bottom="+encodeURIComponent(JSON.stringify(n.bottomadd))+"&leftname="+n.leftname+"&rightname="+n.rightname+"&container_id="+n.container_id+"&unit_price="+n.unit_price+"&all="+e})})).catch((function(){}))},getexpress:function(){var n=this;t.$u.http.get("/api/express-group-package",{params:{is_page:0,page:1,limit:3,transport_type_id:"",container_base_id:"",type:""}}).then((function(t){n.expressList=t})).catch((function(){}))},success:function(t){this.logshow=!1,this.leftname=t.leftname,this.container_id=t.dateid,this.rightname=t.rightname,this.unit_price=t.unit_price,this.leftchange=t.leftchange,this.rightchange=t.rightchange,this.typeid=t.typeid},changewu:function(){var t=this,n=this;this.province_id?(this.logshow=!0,setTimeout((function(){console.log("2222222",t.$refs.child),n.$refs.child.transport()}),800)):this.$u.toast(this.i18n.selectcity)},changeadd:function(){var t={};t=this.topadd,this.topadd=this.bottomadd,this.bottomadd=t,this.province_id=this.bottomadd.province_id},replacePhoneToStar:function(t){if(t)return t.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")},addbook:function(n){var e=this;t.navigateTo({url:"/pageC/addressManagement/addressManagement?tabs="+n,events:{getadd:function(t){1==n?(e.topadd=t,console.log("topadd",e.topadd)):(e.bottomadd=t,console.log("bottom",e.bottomadd),e.province_id=e.bottomadd.province_id)}}})},express:function(){var n=this;t.$u.http.get("/api/express-order/status-count",{}).then((function(t){console.log(t),n.overseas=t.to_overseas,n.receipt=t.transit_receipt,n.transit=t.to_transit})).catch((function(){}))},todev:function(){"{}"===JSON.stringify(this.topadd)?this.$u.toast("请填写寄件人地址"):"{}"===JSON.stringify(this.bottomadd)?this.$u.toast("请填写收件人地址"):"{}"===JSON.stringify(this.goodinfo)?this.$u.toast("请填写物品信息"):""==this.leftname?this.$u.toast("请选择物流方式"):this.calculate()},count:function(){t.navigateTo({url:"/pageB/account"})},pack:function(n){t.navigateTo({url:"/pageC/myPackage/myPackage?type="+n})},more:function(){t.navigateTo({url:"/pageB/list/list"})},toaccount:function(n){t.navigateTo({url:"/pageB/ParcelExpress?expressinfo="+encodeURIComponent(JSON.stringify(n))+"&type=pin"})},counter:function(){t.navigateTo({url:"/pageA/counter"})},tochat:function(){t.navigateTo({url:"/pageA/chat/news"})},goods:function(){var n=this;"{}"==JSON.stringify(this.goodinfo)?t.navigateTo({url:"/pageB/goods",events:{goodinfo:function(t){console.log("goodinfo",t),n.goodinfo=t}}}):t.navigateTo({url:"/pageB/goods?goodinfo="+encodeURIComponent(JSON.stringify(this.goodinfo)),events:{goodinfo:function(t){n.goodinfo=t,console.log(t)}}})},send:function(){var n=this;if("{}"==JSON.stringify(n.topadd))t.navigateTo({url:"/pageC/addEditAddress/addEditAddress",events:{topadd:function(t){n.topadd=t}}});else{n=this;t.navigateTo({url:"/pageC/addEditAddress/addEditAddress?id="+n.topadd.id,events:{topadd:function(t){n.topadd=t}}})}},recipirnt:function(){var n=this;"{}"==JSON.stringify(n.bottomadd)?t.navigateTo({url:"/pageB/recipientinfo",events:{bottomadd:function(t){console.log(t),n.bottomadd=t}}}):t.navigateTo({url:"/pageB/recipientinfo?id="+n.bottomadd.id,events:{bottomadd:function(t){console.log(t),n.bottomadd=t}}})},close:function(){this.logshow=!1},sectionChange:function(n){this.current=n,console.log(n),1==this.current&&(t.switchTab({url:"/pages/index/index?current=1"}),this.current=0)},toparcel:function(){t.navigateTo({url:"/pageB/parcel"})}}};n.default=i}).call(this,e("543d")["default"])},"66d4":function(t,n,e){},b7c4:function(t,n,e){"use strict";var o=e("66d4"),i=e.n(o);i.a},ced9:function(t,n,e){"use strict";e.r(n);var o=e("65f3"),i=e.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);n["default"]=i.a},cf4e:function(t,n,e){"use strict";e.r(n);var o=e("32c5"),i=e("ced9");for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);e("b7c4");var r,s=e("f0c5"),c=Object(s["a"])(i["default"],o["b"],o["c"],!1,null,"1d8d1de0",null,!1,o["a"],r);n["default"]=c.exports},fe80:function(t,n,e){"use strict";(function(t,n){var o=e("4ea4");e("f93b");o(e("66fd"));var i=o(e("cf4e"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(i.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])}},[["fe80","common/runtime","common/vendor"]]]);
|