(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-address-address"],{"41bb":function(t,i,n){"use strict";n.r(i);var a=n("6b3f"),e=n("44b8");for(var s in e)"default"!==s&&function(t){n.d(i,t,(function(){return e[t]}))}(s);n("c2ba");var d,o=n("f0c5"),r=Object(o["a"])(e["default"],a["b"],a["c"],!1,null,"2c9c85bd",null,!1,a["a"],d);i["default"]=r.exports},"44b8":function(t,i,n){"use strict";n.r(i);var a=n("fd95"),e=n.n(a);for(var s in a)"default"!==s&&function(t){n.d(i,t,(function(){return a[t]}))}(s);i["default"]=e.a},5778:function(t,i,n){var a=n("24fb");i=a(!1),i.push([t.i,".address-list[data-v-2c9c85bd]{padding-bottom:%?90?%}.foot-btns[data-v-2c9c85bd]{padding:0}.foot-btns .btn-red[data-v-2c9c85bd]{width:100%;height:%?90?%;line-height:%?90?%;border-radius:0}",""]),t.exports=i},"6b3f":function(t,i,n){"use strict";var a;n.d(i,"b",(function(){return e})),n.d(i,"c",(function(){return s})),n.d(i,"a",(function(){return a}));var e=function(){var t=this,i=t.$createElement,n=t._self._c||i;return t.loadding?t._e():n("v-uni-view",[n("v-uni-view",{staticClass:"address-list bg-white"},t._l(t.listData,(function(i,a){return n("v-uni-view",{key:a,staticClass:"address p30 d-s-c border-b-e"},[n("v-uni-view",{staticClass:"radio"},[n("v-uni-radio",{attrs:{value:i.address_id+"",checked:t.default_id==i.address_id+""},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.radioChange(i.address_id)}}})],1),n("v-uni-view",{staticClass:"info flex-1 ml20"},[n("v-uni-view",{staticClass:"user f34"},[n("v-uni-text",[t._v(t._s(i.name))]),n("v-uni-text",{staticClass:"ml20"},[t._v(t._s(i.phone))]),t.default_id==i.address_id?n("v-uni-text",{staticClass:"ml20 red f24"},[t._v("默认")]):t._e()],1),n("v-uni-view",{staticClass:"pt10 f28 gray6"},[t._v(t._s(i.region.province)+" "+t._s(i.region.city)+" "+t._s(i.region.region)+" "+t._s(i.detail))])],1),n("v-uni-view",{staticClass:"icon-box plus d-c-c ml30",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.editAddress(i.address_id)}}},[n("span",{staticClass:"icon iconfont icon-edit"})]),n("v-uni-view",{staticClass:"icon-box plus d-c-c ml30",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.delAddress(i.address_id)}}},[n("span",{staticClass:"icon iconfont icon-lajitong"})])],1)})),1),n("v-uni-view",{staticClass:"foot-btns"},[n("v-uni-button",{staticClass:"btn-red",attrs:{type:"primary"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.gotoPage("/pages/user/address/add/add")}}},[t._v("新增收货地址")])],1)],1)},s=[]},"94f0":function(t,i,n){var a=n("5778");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var e=n("4f06").default;e("7cbe2e42",a,!0,{sourceMap:!1,shadowMode:!1})},c2ba:function(t,i,n){"use strict";var a=n("94f0"),e=n.n(a);e.a},fd95:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a={data:function(){return{loadding:!0,indicatorDots:!0,autoplay:!0,interval:2e3,duration:500,listData:[],default_id:"0",options:{}}},onLoad:function(t){this.options=t},onShow:function(){uni.showLoading({title:"加载中"}),this.getData()},methods:{getData:function(){var t=this;t.dataType;t._get("user.address/lists",{},(function(i){t.listData=i.data.list,t.default_id=i.data.default_id+"",t.loadding=!1,uni.hideLoading()}))},gotoPage:function(t){uni.navigateTo({url:t})},radioChange:function(t){var i=this;return i.default_id=t,i._post("user.address/setDefault",{address_id:t},(function(t){"order"===i.options.source&&uni.navigateBack()})),!1},editAddress:function(t){uni.navigateTo({url:"/pages/user/address/edit/edit?address_id="+t})},delAddress:function(t){var i=this;wx.showModal({title:"提示",content:"您确定要移除当前收货地址吗?",success:function(n){n.confirm&&i._get("user.address/delete",{address_id:t},(function(t){1==t.code&&(uni.showToast({title:"删除成功",duration:2e3}),i.getData())}))}})}}};i.default=a}}]);