|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-account-address-list"],{"0ab6":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-34e76cba]{display:inline-block;padding:0 %?50?%;border-radius:%?50?%}.ui-btn__normal[data-v-34e76cba]{height:%?70?%;line-height:%?70?%;font-size:%?28?%}.ui-btn__min[data-v-34e76cba]{height:%?50?%;line-height:%?50?%;font-size:%?28?%}.ui-btn__max[data-v-34e76cba]{width:%?690?%;height:%?80?%;line-height:%?80?%;font-size:%?32?%}.ui-btn__gradual[data-v-34e76cba]{background:linear-gradient(270deg,#ff7f39,#ffa35b);color:#fff}.ui-btn__solid[data-v-34e76cba]{background:#ff875b;color:#fff}.ui-btn__line[data-v-34e76cba]{background:none;color:#333;border:1px solid #c0b9b9}.ui-btn__primaryLine[data-v-34e76cba]{background:none;color:#ff875b;border:1px solid #ff875b}.ui-btn__disabed[data-v-34e76cba]{opacity:.5}',""]),t.exports=e},"1a19":function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return a}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"empty"},[t._t("icon",[n("v-uni-image",{staticClass:"empty--icon",attrs:{src:t.icon,mode:"widthFix"}})]),n("v-uni-view",{staticClass:"empty--tips"},[t._v(t._s(t.tips))]),t._t("btn")],2)},s=[]},"23b3":function(t,e,n){var a=n("ee72");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("073f447a",a,!0,{sourceMap:!1,shadowMode:!1})},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"},disable:{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 i=a(n("1da1")),s=a(n("8832")),d=a(n("359f")),r=n("87c9"),c={components:{BsEmpty:s.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,i.default)(regeneratorRuntime.mark((function e(){var n,a,i;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,i=n.result,t.isLoading=!1,!a){e.next=10;break}return uni.$u.toast(a.message),e.abrupt("return",!1);case 10:t.addresList=i,t.$store.commit("SET_ADDRESS",i);case 12:case"end":return e.stop()}}),e)})))()},changeAds:function(t){uni.$emit("changeAddress",t,this.query.source),this.$Router.back()}}};e.default=c},"359f":function(t,e,n){"use strict";n.r(e);var a=n("b179"),i=n("a5d5");for(var s in i)"default"!==s&&function(t){n.d(e,t,(function(){return i[t]}))}(s);n("e7a4");var d,r=n("f0c5"),c=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"34e76cba",null,!1,a["a"],d);e["default"]=c.exports},"47e4":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={data:function(){return{}},props:{icon:{type:String,default:n("7a1a")},tips:{type:String,default:"亲,暂无相关数据"}},mounted:function(){},methods:{}};e.default=a},7985:function(t,e,n){"use strict";n.r(e);var a=n("47e4"),i=n.n(a);for(var s in a)"default"!==s&&function(t){n.d(e,t,(function(){return a[t]}))}(s);e["default"]=i.a},"7a1a":function(t,e,n){t.exports=n.p+"static/img/empty.bdec362e.png"},"7c34":function(t,e,n){"use strict";n.r(e);var a=n("34b0"),i=n.n(a);for(var s in a)"default"!==s&&function(t){n.d(e,t,(function(){return a[t]}))}(s);e["default"]=i.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"),i="/mall/base",s=function(){return(0,a.ToAsyncAwait)(a.MsbRequestTk.get("".concat(i,"/receiveAddress")))};e.ApiGetAddress=s;var d=function(t){return(0,a.ToAsyncAwait)(a.MsbRequestTk.post("".concat(i,"/receiveAddress"),t))};e.ApiPostAddress=d;var r=function(t){return(0,a.ToAsyncAwait)(a.MsbRequestTk.put("".concat(i,"/receiveAddress"),t))};e.ApiPutAddress=r;var c=function(t){return(0,a.ToAsyncAwait)(a.MsbRequestTk.delete("".concat(i,"/receiveAddress?idList=").concat(t.idList)))};e.ApiDeleteAddress=c},8832:function(t,e,n){"use strict";n.r(e);var a=n("1a19"),i=n("7985");for(var s in i)"default"!==s&&function(t){n.d(e,t,(function(){return i[t]}))}(s);n("b44b");var d,r=n("f0c5"),c=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"012c6a88",null,!1,a["a"],d);e["default"]=c.exports},a5d5:function(t,e,n){"use strict";n.r(e);var a=n("2702"),i=n.n(a);for(var s in a)"default"!==s&&function(t){n.d(e,t,(function(){return a[t]}))}(s);e["default"]=i.a},a69a:function(t,e,n){"use strict";var a=n("fc00"),i=n.n(a);i.a},aced:function(t,e,n){"use strict";n.r(e);var a=n("c7d7"),i=n("7c34");for(var s in i)"default"!==s&&function(t){n.d(e,t,(function(){return i[t]}))}(s);n("a69a");var d,r=n("f0c5"),c=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"403d739c",null,!1,a["a"],d);e["default"]=c.exports},b179:function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return a}));var i=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.disable?" x ui-btn__disabed":" xx"),on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.click.apply(void 0,arguments)}}},[t._t("default")],2)},s=[]},b44b:function(t,e,n){"use strict";var a=n("23b3"),i=n.n(a);i.a},c7d7:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return a}));var a={uLoadmore:n("c153").default},i=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,i){return a("v-uni-view",{key:e.id,staticClass:"addressItem",class:{addressItem__last:i===t.addresList.length-1,addressItem__default:e.isDefault}},[t.query.source?a("v-uni-radio",{attrs:{checked:e.id===t.selectedId},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.changeAds(e)}}}):t._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)},s=[]},d9ec: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-403d739c]{background:#f8f8f8}.address[data-v-403d739c]{background:#fff}.addressItem[data-v-403d739c]{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-403d739c]{font-size:%?28?%;color:#333;margin:%?20?% 0}.addressItem--name[data-v-403d739c]{margin-right:%?46?%}.addressItem--edit[data-v-403d739c]{width:%?26?%;height:%?26?%}.addressItem__default .addressItem--city[data-v-403d739c]{display:flex;align-items:center}.addressItem__default .addressItem--city[data-v-403d739c]::after{display:block;content:"默认";background:#ff512b;color:#fff;border-radius:%?4?%;padding:%?4?% %?6?%;margin-left:%?20?%}.addressItem__last[data-v-403d739c]{border:0}.addAddress[data-v-403d739c]{position:fixed;bottom:%?89?%;left:%?30?%;display:flex;align-items:center;justify-content:center}.addAddress[data-v-403d739c]::before{display:inline-block;content:"+";margin-right:%?20?%;font-size:%?46?%;font-weight:700;padding-top:%?10?%}body.?%PAGE?%[data-v-403d739c]{background:#f8f8f8}',""]),t.exports=e},de3b:function(t,e,n){var a=n("0ab6");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("62ab6330",a,!0,{sourceMap:!1,shadowMode:!1})},e7a4:function(t,e,n){"use strict";var a=n("de3b"),i=n.n(a);i.a},ee72: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/* 垂直间距 */.empty[data-v-012c6a88]{box-sizing:border-box;width:100%;padding:%?50?%;text-align:center;background:#fff}.empty--tips[data-v-012c6a88]{font-size:%?26?%;color:#999;margin:%?30?% 0 %?50?%}.empty--icon[data-v-012c6a88]{width:%?280?%}',""]),t.exports=e},fc00:function(t,e,n){var a=n("d9ec");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("d107502e",a,!0,{sourceMap:!1,shadowMode:!1})},fc13:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAMAAACelLz8AAAAAXNSR0IArs4c6QAAALpQTFRFAAAAAAAAJCQkICAgKioqMzMzLCwsKioqLi4uMTExLy8vMDAwMjIyMDAwMzMzNDQ0MTExMDAwNDQ0MjIyNDQ0MjIyNDQ0MzMzMTExMjIyMjIyMzMzMzMzMzMzMzMzMzMzMzMzMjIyMzMzMjIyMzMzMjIyMzMzMjIyMjIyMjIyMzMzMzMzMjIyMzMzMjIyMzMzMzMzMzMzMzMzMzMzMzMzMjIyMzMzMzMzMjIyMzMzMzMzMzMzMjIyMzMziWtizwAAAD10Uk5TAAQHCAwUFxgcHyswMzs8QERFT1JUXGNkaGtsb36Dh4uMj5KTm6Orsre7w8TFx8vNz9PX293f5+3z9/v8/qW7KhoAAADGSURBVCjPddHXEoIwFATQi6Jg7zU2FBHF3kX3/3/LAIIQzT7tzJlkwkL0m2xOpb9pnwDXzv+CsoSfR12U1AKY6FTe4K4LZ7hMvaIeYCRpzq+6Fr3WwTEhBjA44l7itYKLIIy0wBj2olBg+gXDhIz94tkONy2SEaI3ZRz+XbVI2FdIdfCUyApuVSrNuFjRIAnpcVFCseLSeMmEZlhLhLb+CB9BK/4jHih/hcVHLcBNB00U6ocbG6KQCVMitEdXIioksUk5y+gN3e0uRauYuucAAAAASUVORK5CYII="}}]); |