(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-7b35482c"],{"13b6":function(e,t,n){"use strict";n.r(t);var r,a,s,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{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 e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.$route&&this.$route.query&&this.$route.query.id?this.isRes="1":this.isRes="0";case 1:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)}),mounted:function(){this.searchList()},methods:{onClickLeft:function(){window.history.back(-1)},onClickRight:function(){var e=this;this.loading||(""!==this.delId?c.a.confirm({title:"确认删除?",message:"确认删除该地址?"}).then(Object(u.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.delAddr(e.delId);case 2:case"end":return t.stop()}}),t)})))).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(e){this.loading||window.vm.$router.push({path:"/addressView",query:{id:e.id}})},onSelect:function(e){"1"===this.isRes?this.$store.dispatch("user/set_ad",e).then((function(e){window.history.back(-1)})):this.delId=e.id},pageData:(s=Object(u.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.parmValue.page++,e.next=3,this.searchList();case 3:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)}),delAddr:(a=Object(u.a)(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.loading=!0,e.next=3,d.a.del({id:t});case 3:if(n=e.sent,this.loading=!1,n&&0==n.code)return this.show_title("地址删除成功!"),e.next=9,this.searchList();e.next=11;break;case 9:e.next=17;break;case 11:if(n&&100<=n.code&&n.code<=104)return e.next=14,this.logout();e.next=16;break;case 14:e.next=17;break;case 16:this.show_title(n.msg);case 17:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)}),searchList:(r=Object(u.a)(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.loading){e.next=22;break}return 1===this.parmValue.page&&(this.list=[]),e.next=5,d.a.list(this.parmValue);case 5:if(!(t=e.sent)||0!=t.code||!t.data){e.next=15;break}(r=t.data.list).map((function(e){var t=e.city_name===e.provice_name?e.provice_name:e.provice_name+e.city_name;return e.name=e.contector,e.tel=e.mobile,e.address=t+e.area_name+e.addr,e})),(n=this.list).push.apply(n,Object(o.a)(r)),""===this.chosenAddressId&&0