delivery.js 5.4 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageB/delivery"],{"0d5b":function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e={data:function(){return{deal:-1,checkboxValue1:[],logshow:!1,language:"zh-CN",goodinfo:{},topadd:{},bottomadd:{},leftname:"",rightname:"",container_id:"",unit_price:"",number:"",all:0,internationalshow:!1,content:"",contenttitle:""}},onLoad:function(n){this.goodinfo=JSON.parse(decodeURIComponent(n.goodinfo)),this.topadd=JSON.parse(decodeURIComponent(n.topadd)),this.bottomadd=JSON.parse(decodeURIComponent(n.bottom)),this.leftname=n.leftname,this.rightname=n.rightname,this.container_id=n.container_id,this.unit_price=n.unit_price,this.number=n.number,this.all=n.all},onShow:function(){""!=n.getStorageSync("language")&&(this.language=n.getStorageSync("language"))},computed:{i18n:function(){return this.$t("index")}},methods:{internationalshowa:function(){n.navigateTo({url:"/pageB/xieyi?code=international_express_service"})},international:function(){var t=this;n.$u.http.get("/api/agreement",{params:{code:"international_express_service"}}).then((function(n){console.log(n),"zh-CN"==t.language&&(t.content=n.content_cn,t.contenttitle=n.name_cn),"en-US"==t.language&&(t.content=n.content_en,t.contenttitle=n.name_en),"es-ES"==t.language&&(t.content=n.content_es,t.contenttitle=n.content_ita),"it-IT"==t.language&&(t.content=n.content_cn,t.contenttitle=n.name_ita)})).catch((function(){}))},success:function(n){this.logshow=!1,this.leftname=n.leftname,this.container_id=n.dateid,this.rightname=n.rightname,this.unit_price=n.unit_price},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")},changewu:function(){var n=this;this.province_id&&this.goodinfo.goodname?(this.logshow=!0,setTimeout((function(){n.$refs.child.transport()}),800)):this.$u.toast(this.i18n.information)},addbook:function(t){var e=this;n.navigateTo({url:"/pageC/addressManagement/addressManagement?tabs="+t,events:{getadd:function(n){1==t?(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(){var t=this;n.navigateTo({url:"/pageB/goods",events:{goodinfo:function(n){console.log(n),t.goodinfo=n}}})},close:function(){this.logshow=!1,this.internationalshow=!1},send:function(){n.navigateTo({url:"/pageB/Senderinfor"})},recipe:function(){n.navigateTo({url:"/pageB/recipientinfo"})},checkboxChange:function(n){console.log("change",n)},next:function(){0==this.checkboxValue1.length?this.$u.toast(this.i18n.Protocol):"{}"===JSON.stringify(this.goodinfo)?this.$u.toast(this.i18n.select):""==this.leftname?this.$u.toast(this.i18n.logisticsMethod):n.navigateTo({url:"/pageB/end?goodinfo="+encodeURIComponent(JSON.stringify(this.goodinfo))+"&topadd="+encodeURIComponent(JSON.stringify(this.topadd))+"&bottom="+encodeURIComponent(JSON.stringify(this.bottomadd))+"&leftname="+this.leftname+"&rightname="+this.rightname+"&container_id="+this.container_id+"&unit_price="+this.unit_price+"&all="+this.all})}}};t.default=e}).call(this,e("543d")["default"])},"2aaf":function(n,t,e){"use strict";e.r(t);var o=e("57f3"),i=e("ab04");for(var a in i)["default"].indexOf(a)<0&&function(n){e.d(t,n,(function(){return i[n]}))}(a);e("a571");var c,u=e("f0c5"),r=Object(u["a"])(i["default"],o["b"],o["c"],!1,null,"ec317366",null,!1,o["a"],c);t["default"]=r.exports},"303a":function(n,t,e){"use strict";(function(n,t){var o=e("4ea4");e("f93b");o(e("66fd"));var i=o(e("2aaf"));n.__webpack_require_UNI_MP_PLUGIN__=e,t(i.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},"57f3":function(n,t,e){"use strict";e.d(t,"b",(function(){return i})),e.d(t,"c",(function(){return a})),e.d(t,"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"))},uIcon:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-icon/u-icon")]).then(e.bind(null,"01eb"))},uCheckboxGroup:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-checkbox-group/u-checkbox-group")]).then(e.bind(null,"72c8"))},uCheckbox:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-checkbox/u-checkbox")]).then(e.bind(null,"d2b4"))},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"))},uParse:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-parse/u-parse")]).then(e.bind(null,"0d5f"))}},i=function(){var n=this,t=n.$createElement,e=(n._self._c,JSON.stringify(n.topadd)),o="{}"!==e?n.replacePhoneToStar(n.topadd.mobile):null,i=JSON.stringify(n.bottomadd),a="{}"!==i?n.replacePhoneToStar(n.bottomadd.mobile):null,c=JSON.stringify(n.goodinfo);n._isMounted||(n.e0=function(t){return n.uni.navigateBack()},n.e1=function(t){n.logshow=!1}),n.$mp.data=Object.assign({},{$root:{g0:e,m0:o,g1:i,m1:a,g2:c}})},a=[]},6682:function(n,t,e){},a571:function(n,t,e){"use strict";var o=e("6682"),i=e.n(o);i.a},ab04:function(n,t,e){"use strict";e.r(t);var o=e("0d5b"),i=e.n(o);for(var a in o)["default"].indexOf(a)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(a);t["default"]=i.a}},[["303a","common/runtime","common/vendor"]]]);