(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/set/addressManage"],{"1c3e":function(e,t,n){"use strict";n.r(t);var i=n("be49"),a=n("4ff4");for(var s in a)["default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(s);n("9b15");var c=n("f0c5"),o=Object(c["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);t["default"]=o.exports},"3f5b":function(e,t,n){"use strict";(function(e,t){var i=n("4ea4");n("ab68");i(n("66fd"));var a=i(n("1c3e"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(a.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},"409c":function(e,t,n){"use strict";(function(e,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n("8383"),s={components:{uniList:function(){n.e("components/uni-list/uni-list").then(function(){return resolve(n("cca2"))}.bind(null,n)).catch(n.oe)},uniListItem:function(){n.e("components/uni-list-item/uni-list-item").then(function(){return resolve(n("6ccd"))}.bind(null,n)).catch(n.oe)},pickerAddress:function(){Promise.all([n.e("common/vendor"),n.e("components/wangding-pickerAddress/wangding-pickerAddress")]).then(function(){return resolve(n("2698"))}.bind(null,n)).catch(n.oe)},uniPopup:function(){n.e("components/uni-popup/uni-popup").then(function(){return resolve(n("b91e"))}.bind(null,n)).catch(n.oe)}},data:function(){return{addressDetail:"",addressData:{name:"",mobile:"",address:{province:"",city:"",district:""},area:"",default:!1}}},onLoad:function(t){var n="新增收货地址";if("edit"===t.type){n="编辑收货地址";var i=JSON.parse(t.data);console.log(i),this.addressData={name:i.real_name,mobile:i.phone,address:{province:i.province,city:i.city,district:i.district},area:i.detail,default:1==i.is_default,id:i.id},this.addressDetail=i.province+i.city+i.district}this.manageType=t.type,e.setNavigationBarTitle({title:n})},methods:{wxaddress:function(){console.log(this.weichatObj,"123456"),console.log(weichatObj,"weichatObj"),console.log(i,"654321")},onCityClick:function(e){var t=e.data,n=this.addressData.address;n.province=t[0],n.city=t[1],n.district=t[2],this.addressDetail=t.join("")},chooseLocation:function(){var t=this;e.chooseLocation({success:function(e){console.log(e),t.addressData.addressName=e.name,t.addressData.address=e.name}})},switchChange:function(e){this.addressData.default=e.value},confirm:function(){var t=this,n=this.addressData;n.name?/(^1[2|3|4|5|6|7|8|9][0-9]{9}$)/.test(n.mobile)?n.address?n.area?(0,a.addressEdit)({real_name:n.name,phone:n.mobile,address:{province:n.address.province,city:n.address.city,district:n.address.district},detail:n.area,is_default:n.default,id:n.id||"",type:1}).then((function(n){t.$api.prePage().refreshList(),e.showToast({title:"提交成功",duration:2e3}),setTimeout((function(){e.navigateBack()}),800)})):this.$api.msg("请填写门牌号信息"):this.$api.msg("请在地图选择所在位置"):this.$api.msg("请输入正确的手机号码"):this.$api.msg("请填写收货人姓名")}}};t.default=s}).call(this,n("543d")["default"],n("bc2e")["default"])},"4ff4":function(e,t,n){"use strict";n.r(t);var i=n("409c"),a=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(s);t["default"]=a.a},"9b15":function(e,t,n){"use strict";var i=n("a039"),a=n.n(i);a.a},a039:function(e,t,n){},be49:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return i}));var i={uniList:function(){return n.e("components/uni-list/uni-list").then(n.bind(null,"cca2"))},uniListItem:function(){return n.e("components/uni-list-item/uni-list-item").then(n.bind(null,"6ccd"))}},a=function(){var e=this.$createElement;this._self._c},s=[]}},[["3f5b","common/runtime","common/vendor"]]]);