end.js 3.8 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageB/end"],{5604:function(o,n,e){"use strict";(function(o,n){var t=e("4ea4");e("f93b");t(e("66fd"));var i=t(e("b26c"));o.__webpack_require_UNI_MP_PLUGIN__=e,n(i.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},"5d63":function(o,n,e){},"732c":function(o,n,e){"use strict";(function(o){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={data:function(){return{deal:-1,checkboxValue1:[],expname:"",language:"zh-CN",goodinfo:{},topadd:{},bottomadd:{},leftname:"",rightname:"",container_id:"",unit_price:"",number:"",sum:"",code:""}},onLoad:function(o){this.goodinfo=JSON.parse(decodeURIComponent(o.goodinfo)),this.topadd=JSON.parse(decodeURIComponent(o.topadd)),this.bottomadd=JSON.parse(decodeURIComponent(o.bottom)),this.leftname=o.leftname,this.rightname=o.rightname,this.container_id=o.container_id,this.unit_price=o.unit_price,this.number=o.number},onShow:function(){""!=o.getStorageSync("language")&&(this.language=o.getStorageSync("language"))},computed:{i18n:function(){return this.$t("index")}},methods:{payorder:function(){var n=this;o.$u.http.post("/api/express-order/common-create",{from_address_id:this.topadd.id,to_address_id:this.bottomadd.id,container_id:this.container_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),goods_type:this.goodinfo.goodtype,domestic_logistics_company_code:this.code}).then((function(e){console.log(e),n.$u.toast(n.i18n.successful),setTimeout((function(){o.navigateTo({url:"/pageB/orderinfo?orderinfo="+encodeURIComponent(JSON.stringify(e))})}))})).catch((function(){}))},toexpress:function(){var n=this;o.navigateTo({url:"/pageB/expresstype",events:{todcp:function(o){console.log(o),n.expname=o.concant,n.code=o.code}}})},replacePhoneToStar:function(o){if(o)return o.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")},addbook:function(n){var e=this;o.navigateTo({url:"/pageC/addressManagement/addressManagement?tabs="+n,events:{getadd:function(o){1==n?(e.topadd=o,console.log("topadd",e.topadd)):(e.bottomadd=o,console.log("bottom",e.bottomadd),e.province_id=e.bottomadd.province_id)}}})},send:function(){o.navigateTo({url:"/pageB/Senderinfor"})},recipe:function(){o.navigateTo({url:"/pageB/recipientinfo"})},checkboxChange:function(o){console.log("change",o)}}};n.default=e}).call(this,e("543d")["default"])},"86fb":function(o,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return t}));var t={uNavbar:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-navbar/u-navbar")]).then(e.bind(null,"b6bd"))},uIcon:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-icon/u-icon")]).then(e.bind(null,"01eb"))}},i=function(){var o=this,n=o.$createElement,e=(o._self._c,JSON.stringify(o.topadd)),t="{}"!==e?o.replacePhoneToStar(o.topadd.mobile):null,i=JSON.stringify(o.bottomadd),a="{}"!==i?o.replacePhoneToStar(o.bottomadd.mobile):null;o._isMounted||(o.e0=function(n){return o.uni.navigateBack()}),o.$mp.data=Object.assign({},{$root:{g0:e,m0:t,g1:i,m1:a}})},a=[]},b26c:function(o,n,e){"use strict";e.r(n);var t=e("86fb"),i=e("c76e");for(var a in i)["default"].indexOf(a)<0&&function(o){e.d(n,o,(function(){return i[o]}))}(a);e("c8d7");var d,c=e("f0c5"),r=Object(c["a"])(i["default"],t["b"],t["c"],!1,null,"e76c059a",null,!1,t["a"],d);n["default"]=r.exports},c76e:function(o,n,e){"use strict";e.r(n);var t=e("732c"),i=e.n(t);for(var a in t)["default"].indexOf(a)<0&&function(o){e.d(n,o,(function(){return t[o]}))}(a);n["default"]=i.a},c8d7:function(o,n,e){"use strict";var t=e("5d63"),i=e.n(t);i.a}},[["5604","common/runtime","common/vendor"]]]);