(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-account-address-list"],{"16a8":function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return a}));var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-button",{class:"ui-btn ui-btn__"+t.type+" ui-btn__"+t.size+(t.disabed?" ui-btn__disabed":""),on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.click.apply(void 0,arguments)}}},[t._t("default")],2)},i=[]},2702:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={props:{type:{type:String,default:"line"},size:{type:String,default:"normal"},disabed:{type:Boolean,default:!1}},methods:{click:function(){!this.disabed&&this.$emit("click")}}};e.default=a},"34b0":function(t,e,n){"use strict";var a=n("4ea4");n("7db0"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("96cf");var s=a(n("1da1")),i=a(n("8832")),d=a(n("359f")),r=n("87c9"),o={components:{BsEmpty:i.default,UiButton:d.default},data:function(){var t=this.$Route.query;return{query:{type:t.type,id:t.id,source:t.source},addresList:[],isLoading:!0}},computed:{selectedId:function(){var t=this.addresList.find((function(t){return t.isDefault}));return this.query.id||t.id}},onLoad:function(t){this.getAddressList()},methods:{getAddressList:function(){var t=this;return(0,s.default)(regeneratorRuntime.mark((function e(){var n,a,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.isLoading=!0,e.next=3,(0,r.ApiGetAddress)();case 3:if(n=e.sent,a=n.error,s=n.result,t.isLoading=!1,!a){e.next=10;break}return uni.$u.toast(a.message),e.abrupt("return",!1);case 10:t.addresList=s,t.$store.commit("SET_ADDRESS",s);case 12:case"end":return e.stop()}}),e)})))()},changeAds:function(t){uni.$emit("changeAddress",t,this.query.source),this.$Router.back()}}};e.default=o},"359f":function(t,e,n){"use strict";n.r(e);var a=n("16a8"),s=n("a5d5");for(var i in s)"default"!==i&&function(t){n.d(e,t,(function(){return s[t]}))}(i);n("c95f");var d,r=n("f0c5"),o=Object(r["a"])(s["default"],a["b"],a["c"],!1,null,"5577a645",null,!1,a["a"],d);e["default"]=o.exports},"3ccf":function(t,e,n){var a=n("5640");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=n("4f06").default;s("20e9ce27",a,!0,{sourceMap:!1,shadowMode:!1})},5640:function(t,e,n){var a=n("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 透明度 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */.ui-btn[data-v-5577a645]{display:inline-block;padding:0 %?50?%;border-radius:%?50?%}.ui-btn__normal[data-v-5577a645]{height:%?70?%;line-height:%?70?%;font-size:%?28?%}.ui-btn__max[data-v-5577a645]{width:%?690?%;height:%?80?%;line-height:%?80?%;font-size:%?32?%}.ui-btn__gradual[data-v-5577a645]{background:linear-gradient(270deg,#ff7f39,#ffa35b);color:#fff}.ui-btn__solid[data-v-5577a645]{background:#ff875b;color:#fff}.ui-btn__line[data-v-5577a645]{background:none;color:#333;border:1px solid #c0b9b9}.ui-btn__primaryLine[data-v-5577a645]{background:none;color:#ff875b;border:1px solid #ff875b}.ui-btn__disabed[data-v-5577a645]{opacity:.8}',""]),t.exports=e},"7c34":function(t,e,n){"use strict";n.r(e);var a=n("34b0"),s=n.n(a);for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=s.a},"87c9":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ApiDeleteAddress=e.ApiPutAddress=e.ApiPostAddress=e.ApiGetAddress=void 0;var a=n("5767"),s="/mall/base",i=function(){return(0,a.ToAsyncAwait)(a.MsbRequestTk.get("".concat(s,"/receiveAddress")))};e.ApiGetAddress=i;var d=function(t){return(0,a.ToAsyncAwait)(a.MsbRequestTk.post("".concat(s,"/receiveAddress"),t))};e.ApiPostAddress=d;var r=function(t){return(0,a.ToAsyncAwait)(a.MsbRequestTk.put("".concat(s,"/receiveAddress"),t))};e.ApiPutAddress=r;var o=function(t){return(0,a.ToAsyncAwait)(a.MsbRequestTk.delete("".concat(s,"/receiveAddress?idList=").concat(t.idList)))};e.ApiDeleteAddress=o},a5d5:function(t,e,n){"use strict";n.r(e);var a=n("2702"),s=n.n(a);for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=s.a},aced:function(t,e,n){"use strict";n.r(e);var a=n("f654"),s=n("7c34");for(var i in s)"default"!==i&&function(t){n.d(e,t,(function(){return s[t]}))}(i);n("c10a");var d,r=n("f0c5"),o=Object(r["a"])(s["default"],a["b"],a["c"],!1,null,"19bbbf42",null,!1,a["a"],d);e["default"]=o.exports},b87a:function(t,e,n){var a=n("d309");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=n("4f06").default;s("ed6b715c",a,!0,{sourceMap:!1,shadowMode:!1})},c10a:function(t,e,n){"use strict";var a=n("b87a"),s=n.n(a);s.a},c95f:function(t,e,n){"use strict";var a=n("3ccf"),s=n.n(a);s.a},d309:function(t,e,n){var a=n("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 透明度 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */uni-page-body[data-v-19bbbf42]{background:#f8f8f8}.address[data-v-19bbbf42]{background:#fff}.addressItem[data-v-19bbbf42]{height:%?188?%;margin-left:%?40?%;padding-right:%?40?%;border-bottom:1px solid #eee;display:flex;justify-content:space-between;align-items:center;font-size:%?24?%;color:#999}.addressItem--detail[data-v-19bbbf42]{font-size:%?28?%;color:#333;margin:%?20?% 0}.addressItem--name[data-v-19bbbf42]{margin-right:%?46?%}.addressItem--edit[data-v-19bbbf42]{width:%?26?%;height:%?26?%}.addressItem__default .addressItem--city[data-v-19bbbf42]{display:flex;align-items:center}.addressItem__default .addressItem--city[data-v-19bbbf42]::after{display:block;content:"默认";background:#ff512b;color:#fff;border-radius:%?4?%;padding:%?4?% %?6?%;margin-left:%?20?%}.addressItem__last[data-v-19bbbf42]{border:0}.addAddress[data-v-19bbbf42]{position:fixed;bottom:%?89?%;left:%?30?%;display:flex;align-items:center;justify-content:center}.addAddress[data-v-19bbbf42]::before{display:inline-block;content:"+";margin-right:%?20?%;font-size:%?46?%;font-weight:700;padding-top:%?10?%}body.?%PAGE?%[data-v-19bbbf42]{background:#f8f8f8}',""]),t.exports=e},f654:function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return a}));var a={uLoadmore:n("c153").default},s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"container"},[a("v-uni-view",{staticClass:"address"},[t.isLoading?a("u-loadmore",{attrs:{status:"loading"}}):t._e(),t.isLoading||t.addresList.length?t._e():a("BsEmpty",{attrs:{tips:"暂无收货地址呢~"}}),t._l(t.addresList,(function(e,s){return a("v-uni-view",{key:e.id,staticClass:"addressItem",class:{addressItem__last:s===t.addresList.length-1,addressItem__default:e.isDefault}},[a("v-uni-radio",{attrs:{checked:e.id===t.selectedId},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.changeAds(e)}}}),a("v-uni-view",[a("v-uni-view",{staticClass:"addressItem--city"},[t._v(t._s(e.province)+t._s(e.city)+t._s(e.area))]),a("v-uni-view",{staticClass:"addressItem--detail"},[t._v(t._s(e.detailAddress))]),a("v-uni-view",[a("v-uni-text",{staticClass:"addressItem--name"},[t._v(t._s(e.name))]),a("v-uni-text",[t._v(t._s(e.phone))])],1)],1),a("v-uni-image",{staticClass:"addressItem--edit",attrs:{src:n("fc13")},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.$Router.push("/addressEdit?id="+e.id)}}})],1)}))],2),a("UiButton",{staticClass:"addAddress",attrs:{type:"solid",size:"max"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$Router.push("/addressCreate?first="+!t.addresList.length)}}},[t._v("新增地址")])],1)},i=[]},fc13:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAMAAACelLz8AAAAAXNSR0IArs4c6QAAALpQTFRFAAAAAAAAJCQkICAgKioqMzMzLCwsKioqLi4uMTExLy8vMDAwMjIyMDAwMzMzNDQ0MTExMDAwNDQ0MjIyNDQ0MjIyNDQ0MzMzMTExMjIyMjIyMzMzMzMzMzMzMzMzMzMzMzMzMjIyMzMzMjIyMzMzMjIyMzMzMjIyMjIyMjIyMzMzMzMzMjIyMzMzMjIyMzMzMzMzMzMzMzMzMzMzMzMzMjIyMzMzMzMzMjIyMzMzMzMzMzMzMjIyMzMziWtizwAAAD10Uk5TAAQHCAwUFxgcHyswMzs8QERFT1JUXGNkaGtsb36Dh4uMj5KTm6Orsre7w8TFx8vNz9PX293f5+3z9/v8/qW7KhoAAADGSURBVCjPddHXEoIwFATQi6Jg7zU2FBHF3kX3/3/LAIIQzT7tzJlkwkL0m2xOpb9pnwDXzv+CsoSfR12U1AKY6FTe4K4LZ7hMvaIeYCRpzq+6Fr3WwTEhBjA44l7itYKLIIy0wBj2olBg+gXDhIz94tkONy2SEaI3ZRz+XbVI2FdIdfCUyApuVSrNuFjRIAnpcVFCseLSeMmEZlhLhLb+CB9BK/4jHih/hcVHLcBNB00U6ocbG6KQCVMitEdXIioksUk5y+gN3e0uRauYuucAAAAASUVORK5CYII="}}]);