(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/mycenter/mylocation"],{"0a3d":function(t,e,o){"use strict";o.r(e);var n=o("e57c"),a=o.n(n);for(var c in n)"default"!==c&&function(t){o.d(e,t,(function(){return n[t]}))}(c);e["default"]=a.a},"0a69":function(t,e,o){"use strict";var n;o.d(e,"b",(function(){return a})),o.d(e,"c",(function(){return c})),o.d(e,"a",(function(){return n}));var a=function(){var t=this,e=t.$createElement;t._self._c},c=[]},5236:function(t,e,o){"use strict";o.r(e);var n=o("0a69"),a=o("0a3d");for(var c in a)"default"!==c&&function(t){o.d(e,t,(function(){return a[t]}))}(c);o("638f");var i,s=o("f0c5"),l=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"47852284",null,!1,n["a"],i);e["default"]=l.exports},"638f":function(t,e,o){"use strict";var n=o("8075"),a=o.n(n);a.a},8075:function(t,e,o){},c787:function(t,e,o){"use strict";(function(t){o("a87f");n(o("66fd"));var e=n(o("5236"));function n(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=o,t(e.default)}).call(this,o("543d")["createPage"])},e57c:function(t,e,o){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(){o.e("components/mys_navBar/mysNavBar").then(function(){return resolve(o("7857"))}.bind(null,o)).catch(o.oe)},a={components:{mvBar:n},data:function(){return{weixinimage:"../../static/img/icon-weixin.png",picture:{icon_edit:"https://horastar.obs.cn-east-3.myhuaweicloud.com/youngee/talent_upload/icon-edit.png",icon_del:"https://horastar.obs.cn-east-3.myhuaweicloud.com/youngee/talent_upload/icon-del.png",icon_loc:"https://horastar.obs.cn-east-3.myhuaweicloud.com/youngee/talent_upload/icon-loc.png",home8:"https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home8.png",home10:"https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home10.png",home11:"https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home11.png"},list:[],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"}}}},onShow:function(){this.getlist()},onLoad:function(){},methods:{tomybank:function(){t.navigateTo({url:"./mybank"})},topersoninfo:function(){t.navigateTo({url:"./personinfo"})},tomyaccount:function(){t.navigateTo({url:"./myaccount"})},getlist:function(){var e=this;this.$https.get("/youngee/c/t/g/get-talent-address").then((function(o){console.log(o),e.list=o.data.data,0==e.list.length&&t.navigateTo({url:"/pages/mycenter/addlocation?ismodify=0"})}))},addreceipt:function(){t.navigateTo({url:"/pages/mycenter/addlocation?ismodify=0"})},chooseAddr:function(){var e=this;t.chooseAddress({success:function(t){console.log(t),console.log(t.userName),console.log(t.postalCode),console.log(t.provinceName),console.log(t.cityName),console.log(t.countyName),console.log(t.detailInfo),console.log(t.nationalCode),console.log(t.telNumber),e.$https.post("/youngee/c/t/p/add-talent-address",{region_code:t.nationalCode,detail_addr:t.provinceName+t.cityName+t.countyName+t.detailInfo,phone_number:t.telNumber,receiver_name:t.userName,mail_code:t.postalCode,default_tag:1}).then((function(t){console.log(t),e.getlist()}))}})},setdefault:function(e){var o=this;console.log(e.default_tag),1!==e.default_tag&&this.$https.post("/youngee/c/t/p/change-default-delivery-addr",{address_id:e.address_id}).then((function(e){console.log(e),o.getlist(),t.showToast({title:"修改成功"})}))},edit:function(e){console.log(e.receiver_name),t.navigateTo({url:"/pages/mycenter/addlocation?address_id="+e.address_id+"&ismodify=1"})},del:function(e){var o=this;t.showModal({title:"提示",content:"确认删除",success:function(n){n.confirm?o.$https.post("/youngee/c/t/p/delete-talent-address",{address_id:e.address_id,default_tag:e.default_tag}).then((function(e){console.log(e),o.getlist(),t.showToast({title:"删除成功"})})):n.cancel&&console.log("用户点击取消")}})}}};e.default=a}).call(this,o("543d")["default"])}},[["c787","common/runtime","common/vendor"]]]);