1 |
- require('./common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageA/counter"],{"05c2":function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return u})),e.d(n,"a",(function(){return i}));var i={uIcon:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-icon/u-icon")]).then(e.bind(null,"01eb"))},uNumberBox:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-number-box/u-number-box")]).then(e.bind(null,"02c9"))},uPicker:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-picker/u-picker")]).then(e.bind(null,"a152"))},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"))}},o=function(){var t=this,n=t.$createElement,e=(t._self._c,t.i18n.length);t._isMounted||(t.e0=function(n){t.logshow=!1}),t.$mp.data=Object.assign({},{$root:{g0:e}})},u=[]},"0a7c":function(t,n,e){"use strict";var i=e("ebf9"),o=e.n(i);o.a},"2eb7":function(t,n,e){"use strict";(function(t,n){var i=e("4ea4");e("f93b");i(e("66fd"));var o=i(e("978c"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(o.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},"7fdf":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={data:function(){return{logshow:!1,value:1,show:!1,original:"",bourn:"",type:0,gat:0,gatShow:!1,columns:[],columnData:[],goods:[],index:0,domestic:1,province_id:"",goodstype:"normal",container_id:"",leftname:"",rightname:"",money:"",length:"",width:"",height:""}},onLoad:function(){},onShow:function(){t.setNavigationBarTitle({title:this.i18n.compute}),this.goodtype()},computed:{i18n:function(){return this.$t("index")}},methods:{goodtype:function(){var n=this;t.$u.http.get("/api/express-goods-type").then((function(t){n.goods=t})).catch((function(){}))},changewu:function(){var t=this;this.province_id?(this.logshow=!0,setTimeout((function(){t.$refs.child.transport()}),800)):this.$u.toast(this.i18n.selectcity)},calculate:function(){var n=this;""!=this.container_id?t.$u.http.get("/api/express-order/calculate",{params:{container_id:this.container_id,weight:this.value,length:this.length,width:this.width,height:this.height,type:this.goodstype}}).then((function(t){n.money=t})).catch((function(){})):this.$u.toast(this.i18n.container)},getarea:function(){var n=this;this.columns=[],this.columnData=[],t.$u.http.get("/api/area/tree",{params:{is_domestic:this.domestic,pid:0}}).then((function(t){console.log(t),n.columns=[t],n.columns[1]=t[0].children,t.forEach((function(t){n.columnData.push(t.children)}))})).catch((function(){}))},success:function(t){this.logshow=!1,console.log(t),this.leftname=t.leftname,this.container_id=t.dateid,this.rightname=t.rightname},close:function(){this.logshow=!1},good:function(t,n){this.goodstype=t.value,this.index=n},logistics:function(){t.navigateTo({url:"/pageA/logisticsinfo?weight="+this.value+"&money="+this.money})},gain:function(){""==this.container_id?this.$u.toast(this.i18n.container):(this.gat=1,this.gatShow=!0,this.calculate())},change:function(t){this.type=t,this.show=!0,0==t?(this.domestic=1,this.getarea()):(this.domestic=0,this.getarea())},changeHandler:function(t){var n=t.columnIndex,e=(t.value,t.values,t.index),i=t.picker,o=void 0===i?this.$refs.uPicker:i;0===n&&o.setColumnValues(1,this.columnData[e])},confirm:function(t){console.log("confirm",t),this.show=!1,0==this.type?this.original=t.value[0].name+"-"+t.value[1].name:(this.bourn=t.value[0].name+"-"+t.value[1].name,this.province_id=t.value[1].id)}}};n.default=e}).call(this,e("543d")["default"])},"92c6":function(t,n,e){"use strict";e.r(n);var i=e("7fdf"),o=e.n(i);for(var u in i)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(u);n["default"]=o.a},"978c":function(t,n,e){"use strict";e.r(n);var i=e("05c2"),o=e("92c6");for(var u in o)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(u);e("0a7c");var c,a=e("f0c5"),s=Object(a["a"])(o["default"],i["b"],i["c"],!1,null,"489e1878",null,!1,i["a"],c);n["default"]=s.exports},ebf9:function(t,n,e){}},[["2eb7","common/runtime","common/vendor"]]]);
|