delivery.js 4.7 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageB/delivery"],{4878:function(n,o,t){},a7b3:function(n,o,t){"use strict";t.r(o);var e=t("fc14"),i=t.n(e);for(var a in e)["default"].indexOf(a)<0&&function(n){t.d(o,n,(function(){return e[n]}))}(a);o["default"]=i.a},bd25:function(n,o,t){"use strict";var e=t("4878"),i=t.n(e);i.a},cb7d:function(n,o,t){"use strict";t.r(o);var e=t("e27a5"),i=t("a7b3");for(var a in i)["default"].indexOf(a)<0&&function(n){t.d(o,n,(function(){return i[n]}))}(a);t("bd25");var u=t("828b"),d=Object(u["a"])(i["default"],e["b"],e["c"],!1,null,"8557561e",null,!1,e["a"],void 0);o["default"]=d.exports},e27a5:function(n,o,t){"use strict";t.d(o,"b",(function(){return i})),t.d(o,"c",(function(){return a})),t.d(o,"a",(function(){return e}));var e={uNavbar:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-navbar/u-navbar")]).then(t.bind(null,"f3ae"))},uIcon:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-icon/u-icon")]).then(t.bind(null,"b73a"))},uCheckboxGroup:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-checkbox-group/u-checkbox-group")]).then(t.bind(null,"c952"))},uCheckbox:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-checkbox/u-checkbox")]).then(t.bind(null,"5fa3"))},uPopup:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-popup/u-popup")]).then(t.bind(null,"f1b1"))},kjFlow:function(){return t.e("components/kj-flow/kj-flow").then(t.bind(null,"0021"))}},i=function(){var n=this,o=n.$createElement,t=(n._self._c,JSON.stringify(n.topadd)),e="{}"!==t?n.replacePhoneToStar(n.topadd.mobile):null,i=JSON.stringify(n.bottomadd),a="{}"!==i?n.replacePhoneToStar(n.bottomadd.mobile):null,u=JSON.stringify(n.goodinfo);n._isMounted||(n.e0=function(o){return n.uni.navigateBack()},n.e1=function(o){n.logshow=!1}),n.$mp.data=Object.assign({},{$root:{g0:t,m0:e,g1:i,m1:a,g2:u}})},a=[]},f6f3:function(n,o,t){"use strict";(function(n,o){var e=t("47a9");t("abeb");e(t("3240"));var i=e(t("cb7d"));n.__webpack_require_UNI_MP_PLUGIN__=t,o(i.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])},fc14:function(n,o,t){"use strict";(function(n){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var t={data:function(){return{deal:-1,checkboxValue1:[],logshow:!1,language:"zh-CN",goodinfo:{},topadd:{},bottomadd:{},leftname:"",rightname:"",container_id:"",unit_price:"",number:"",all:0}},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:{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("请先选择城市和物品信息")},addbook:function(o){var t=this;n.navigateTo({url:"/pageC/addressManagement/addressManagement?index="+o,events:{getadd:function(n){0==o?(t.topadd=n,console.log("topadd",t.topadd)):(t.bottomadd=n,console.log("bottom",t.bottomadd),t.province_id=t.bottomadd.province_id)}}})},goods:function(){var o=this;n.navigateTo({url:"/pageB/goods",events:{goodinfo:function(n){console.log(n),o.goodinfo=n}}})},close:function(){this.logshow=!0},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("请勾选协议"):"{}"===JSON.stringify(this.goodinfo)?this.$u.toast("请填写物品信息"):""==this.leftname?this.$u.toast("请选择物流方式"):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})}}};o.default=t}).call(this,t("df3c")["default"])}},[["f6f3","common/runtime","common/vendor"]]]);