12 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageB/recipientinfo"],{404:function(e,t,n){"use strict";(function(e,t){var i=n(4);n(26);i(n(25));var o=i(n(405));e.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n(1)["default"],n(2)["createPage"])},405:function(e,t,n){"use strict";n.r(t);var i=n(406),o=n(408);for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);n(410);var c,d=n(45),s=Object(d["default"])(o["default"],i["render"],i["staticRenderFns"],!1,null,null,null,!1,i["components"],c);s.options.__file="pageB/recipientinfo.vue",t["default"]=s.exports},406:function(e,t,n){"use strict";n.r(t);var i=n(407);n.d(t,"render",(function(){return i["render"]})),n.d(t,"staticRenderFns",(function(){return i["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return i["recyclableRender"]})),n.d(t,"components",(function(){return i["components"]}))},407:function(e,t,n){"use strict";var i;n.r(t),n.d(t,"render",(function(){return o})),n.d(t,"staticRenderFns",(function(){return c})),n.d(t,"recyclableRender",(function(){return a})),n.d(t,"components",(function(){return i}));try{i={uCheckboxGroup:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-checkbox-group/u-checkbox-group")]).then(n.bind(null,938))},uCheckbox:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-checkbox/u-checkbox")]).then(n.bind(null,964))},uPicker:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-picker/u-picker")]).then(n.bind(null,1052))}}}catch(d){if(-1===d.message.indexOf("Cannot find module")||-1===d.message.indexOf(".vue"))throw d;console.error(d.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var e=this,t=e.$createElement;e._self._c;e._isMounted||(e.e0=function(t){e.show=!1})},a=!1,c=[];o._withStripped=!0},408:function(e,t,n){"use strict";n.r(t);var i=n(409),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);t["default"]=o.a},409:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{checkboxValue1:[],active:1,addname:"",addid:"",show:!1,cityList:[],cityid:"",cityname:"",name:"",phone:"",postalCode:"",detailed:"",email:"",companyName:"",is_default:0}},onLoad:function(e){e.id&&(this.addressId=e.id,this.getAddressDetail(e.id))},methods:{getAddressDetail:function(t){var n=this;e.$u.http.get("/api/address/".concat(t)).then((function(e){console.log(e),n.cityname=e.province_name,n.name=e.name,n.phone=e.mobile,n.detailed=e.address,n.companyName=e.company_name,n.is_default=e.is_default,n.addname=e.country_name,n.email=e.email,n.addid=e.country_id,n.cityid=e.province_id,n.postalCode=e.zip_code,1==n.is_default?n.checkboxValue1=[1]:n.checkboxValue1=[]}))},clear:function(){this.phone="",this.name="",this.addid="",this.cityid="",this.detailed="",this.companyName="",this.email="",this.postalCode="",this.is_default="",this.checkboxValue1=[],this.cityname="",this.addname=""},submit:function(){var t=this,n={mobile:this.phone,name:this.name,country_id:this.addid,province_id:this.cityid,address:this.detailed,company_name:this.companyName,email:this.email,zip_code:this.postalCode,is_default:this.is_default};this.addressId?e.$u.http.put("/api/address/".concat(this.addressId),n).then((function(n){var i=t.getOpenerEventChannel();i.emit("bottomadd",n),e.navigateBack()})):e.$u.http.post("/api/address",n).then((function(n){var i=t.getOpenerEventChannel();i.emit("bottomadd",n),e.navigateBack()}))},countrycConfirm:function(e){console.log(e),this.cityid=e.value[0].id,this.cityname=e.value[0].name,this.show=!1},openCity:function(){this.addid?this.show=!0:e.$u.toast(this.i18n.Pleasecountry)},checkboxChange:function(e){console.log("change",e),this.checkboxValue1=e,e.length>0?this.is_default=1:this.is_default=0},tocitychange:function(){var t=this;e.navigateTo({url:"/pageB/citychange",events:{getadd:function(e){console.log(e.id),t.addid=e.id,t.addname=e.name,t.getCityList()}}})},getCityList:function(){var t=this;e.$u.http.get("/api/area/tree?pid="+this.addid).then((function(e){t.cityList=[e],console.log(t.cityList)}))}},computed:{i18n:function(){return this.$t("index")}},onShow:function(){e.setNavigationBarTitle({title:this.i18n.goods})}};t.default=n}).call(this,n(2)["default"])},410:function(e,t,n){"use strict";n.r(t);var i=n(411),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);t["default"]=o.a},411:function(e,t,n){}},[[404,"common/runtime","common/vendor"]]]);
- //# sourceMappingURL=../../.sourcemap/mp-weixin/pageB/recipientinfo.js.map
|