(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/mycenter/addlocation"],{"01d2":function(e,n,t){"use strict";t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return i}));var i={uniForms:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uni-forms/components/uni-forms/uni-forms")]).then(t.bind(null,"f0ca"))},uniFormsItem:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uni-forms/components/uni-forms-item/uni-forms-item")]).then(t.bind(null,"72e7"))},uniEasyinput:function(){return t.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(t.bind(null,"9759"))}},o=function(){var e=this,n=e.$createElement;e._self._c},a=[]},"2ffa":function(e,n,t){"use strict";var i=t("c0be"),o=t.n(i);o.a},"79f7":function(e,n,t){"use strict";var i=t("c051"),o=t.n(i);o.a},9156:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i,o=a(t("4c1b"));function a(e){return e&&e.__esModule?e:{default:e}}function r(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var d=function(){t.e("components/mys_navBar/mysNavBar").then(function(){return resolve(t("7857"))}.bind(null,t)).catch(t.oe)},s=(i={components:{mvBar:d},data:function(){return{ismodify:"",oldRegion:o.default,region:[[],[],[]],regionIndex:[0,0,0],regionStr:"请选择省市区",mysNavConfig:{isHome:!0,navFixed:!0,navTitle:{text:"我的信息",color:"",fontSize:"32rpx",fontWeight:"normal"},btnType:"type2",onLeftClick:"/pages/mycenter/mycenter",type2Config:{leftPath:"/static/img/png2.png",rightPath:"/static/img/png4.png",radius:"40rpx"}},formData:{name:"",phone:"",detailregion:"",fregion:"",mail_code:"",setdefault:!1},index:0,index1:0,data:{},show:!1,rules:{mail_code:{rules:[{required:!0,errorMessage:"请输入邮政编码"}]},detailregion:{rules:[{required:!0,errorMessage:"请输入详细地址"}]},name:{rules:[{required:!0,errorMessage:"请输入收件人"}]},phone:{rules:[{validateFunction:function(e,n,t,i){var o=/^1[3|4|5|7|8]\d{9}$/,a=/^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}$/;return o.test(n)||a.test(n)||i("手机号码格式不正确,请重新填写"),!0}},{required:!0,errorMessage:"请输入联系电话"}]},fregion:{rules:[{required:!0,errorMessage:"请选择所在地区"}]}},address_id:""}},onLoad:function(){var n=this;e.showLoading(),setTimeout((function(){n.formData={name:"",phone:"",detailregion:"",fregion:""},e.hideLoading()}),500)},onReady:function(){this.$refs.form.setRules(this.rules)},onShow:function(){"1"==this.ismodify&&this.getDetailAddress()}},r(i,"onLoad",(function(e){console.log(e),this.ismodify=e.ismodify,"1"==this.ismodify&&(this.address_id=e.address_id)})),r(i,"methods",{tomybank:function(){e.navigateTo({url:"./mybank"})},topersoninfo:function(){e.navigateTo({url:"./personinfo"})},tomyaccount:function(){e.navigateTo({url:"./myaccount"})},setDefault:function(e){console.log(e.detail.value),e.detail.value?this.formData.setdefault=1:this.formData.setdefault=0},getDetailAddress:function(){var e=this;this.$https.get("/youngee/c/t/g/get-single-address?address_id="+this.address_id).then((function(n){console.log(n),e.formData.name=n.data.data.receiver_name,e.formData.phone=n.data.data.phone_number,e.formData.detailregion=n.data.data.detail_addr,e.formData.fregion=n.data.data.region_code,e.formData.mail_code=n.data.data.mail_code;for(var t=n.data.data.region_code.toString().slice(0,2),i=n.data.data.region_code.toString().slice(0,4),a=0,r=0;r