(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-370cd43a"],{"0142":function(t,e,n){},1148:function(t,e,n){t.exports=n.p+"static/img/addr-null.479fe01a.png"},"13b6":function(t,e,n){"use strict";n.r(e);var r,s,a,i,o=n("2909"),c=(n("47e2"),n("2241")),u=(n("96cf"),n("1da1")),d=n("74ce"),h={mixins:[n("9f53").a],data:function(){return{isShowAddrNull:!0,delId:"",chosenAddressId:"",isRes:this.$route.query.id||"0",list:[],total:0,parmValue:{page:1,size:10},loading:!1}},created:(i=Object(u.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.$route&&this.$route.query&&this.$route.query.id?this.isRes="1":this.isRes="0";case 2:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)}),mounted:function(){this.searchList()},methods:{onClickLeft:function(){window.history.back(-1)},onClickRight:function(){var t=this;this.loading||(""!==this.delId?c.a.confirm({title:"确认删除?",message:"确认删除该地址?"}).then(Object(u.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.delAddr(t.delId);case 2:case"end":return e.stop()}}),e)})))).catch((function(){})):this.show_title("请选择地址!"))},customerService:function(){this.serviceShow=!0},gotoInfor:function(){this.$router.push({path:"/personalInfor"})},onAdd:function(){this.$router.push({path:"/addressView"})},onEdit:function(t){this.loading||window.vm.$router.push({path:"/addressView",query:{id:t.id}})},onSelect:function(t){"1"===this.isRes?this.$store.dispatch("user/set_ad",t).then((function(t){window.history.back(-1)})):this.delId=t.id},pageData:(a=Object(u.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.parmValue.page++,t.next=3,this.searchList();case 3:case"end":return t.stop()}}),t,this)}))),function(){return a.apply(this,arguments)}),delAddr:(s=Object(u.a)(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.loading=!0,t.next=3,d.a.del({id:e});case 3:if(n=t.sent,this.loading=!1,n&&0==n.code)return this.show_title("地址删除成功!"),t.next=9,this.searchList();t.next=11;break;case 9:t.next=17;break;case 11:if(n&&100<=n.code&&n.code<=104)return t.next=14,this.logout();t.next=16;break;case 14:t.next=17;break;case 16:this.show_title(n.msg);case 17:case"end":return t.stop()}}),t,this)}))),function(t){return s.apply(this,arguments)}),searchList:(r=Object(u.a)(regeneratorRuntime.mark((function t(){var e,n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.loading){t.next=22;break}return 1===this.parmValue.page&&(this.list=[]),t.next=4,d.a.list(this.parmValue);case 4:if(!(e=t.sent)||0!=e.code||!e.data){t.next=15;break}(r=e.data.list).map((function(t){var e=t.city_name===t.provice_name?t.provice_name:t.provice_name+t.city_name;return t.name=t.contector,t.tel=t.mobile,t.address=e+t.area_name+t.addr,t})),(n=this.list).push.apply(n,Object(o.a)(r)),0!=this.list.length?this.isShowAddrNull=!1:this.isShowAddrNull=!0,""===this.chosenAddressId&&0