|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-account-address-list"],{"0aad":function(t,e,n){"use strict";var a=n("a7aa"),i=n.n(a);i.a},"0f1d":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"},[t.isLoading||t.addresList.length?t._e():a("BsEmpty",{attrs:{tips:"暂无收货地址呢~"}}),t.isLoading?a("u-loadmore",{attrs:{status:"loading"}}):t._e(),t._l(t.addresList,(function(e){return a("UiWhiteBox",{key:e.id,staticClass:"address-item",class:{"address-item__default":e.isDefault}},["submitOrder"==t.query.source?a("v-uni-radio",{staticClass:"address-item--radio",attrs:{color:"#FF875B",checked:e.id==t.selectedId},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.changeAds(e)}}}):t._e(),a("v-uni-view",{staticClass:"address-item--con"},[a("v-uni-view",{staticClass:"address-item--city"},[t._v(t._s(e.province)+t._s(e.city)+t._s(e.area))]),a("v-uni-view",{staticClass:"address-item--detail"},[t._v(t._s(e.detailAddress))]),a("v-uni-view",{staticClass:"address-item--info"},[a("v-uni-text",{staticClass:"address-item--name"},[t._v(t._s(e.name))]),a("v-uni-text",[t._v(t._s(e.phone))])],1)],1),a("v-uni-image",{staticClass:"address-item--edit",attrs:{src:n("fc13")},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.$Router.push("/addressEdit?id="+e.id)}}})],1)})),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("新增地址")])],2)},s=[]},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.disable&&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")),r=a(n("359f")),d=n("87c9"),c=a(n("5a25")),u={components:{BsEmpty:s.default,UiButton:r.default,UiWhiteBox:c.default},data:function(){var t=this.$Route.query;return{query:{id:t.id,source:t.source},addresList:[],isLoading:!0}},computed:{selectedId:{get:function(){var t=this.query.id,e=this.addresList.find((function(t){return t.isDefault}));return t||e.id},set:function(t){uni.$emit("changeAddress",this.addresList.find((function(e){return e.id==t}))||{},this.query.source)}}},onShow: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,d.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),"submitOrder"===t.query.source&&uni.$emit("changeAddress",t.addresList.find((function(e){return e.id==t.selectedId}))||{},t.query.source);case 13:case"end":return e.stop()}}),e)})))()},changeAds:function(t){this.selectedId=t.id,this.$Router.back()}}};e.default=u},"359f":function(t,e,n){"use strict";n.r(e);var a=n("7f16"),i=n("a5d5");for(var s in i)"default"!==s&&function(t){n.d(e,t,(function(){return i[t]}))}(s);n("9f0b");var r,d=n("f0c5"),c=Object(d["a"])(i["default"],a["b"],a["c"],!1,null,"4c357d64",null,!1,a["a"],r);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},5726:function(t,e,n){var a=n("fc54");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("ee1499be",a,!0,{sourceMap:!1,shadowMode:!1})},"5a25":function(t,e,n){"use strict";var a;n.r(e);var i,s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"ui-white-box"},[t._t("default")],2)},r=[],d=(n("c557"),n("f0c5")),c={},u=Object(d["a"])(c,s,r,!1,null,"7e14885a",null,!1,a,i);e["default"]=u.exports},"5a44":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-4c357d64]{display:inline-block;padding:0 %?50?%;border-radius:%?50?%}.ui-btn[data-v-4c357d64]::after{display:none}.ui-btn__normal[data-v-4c357d64]{height:%?70?%;line-height:%?70?%;font-size:%?28?%}.ui-btn__min[data-v-4c357d64]{height:%?60?%;line-height:%?60?%;font-size:%?28?%}.ui-btn__small[data-v-4c357d64]{height:%?50?%;line-height:%?50?%;font-size:%?28?%}.ui-btn__max[data-v-4c357d64]{height:%?80?%;line-height:%?80?%;font-size:%?32?%}.ui-btn__gradual[data-v-4c357d64]{background:linear-gradient(270deg,#ff7f39,#ffa35b);color:#fff}.ui-btn__solid[data-v-4c357d64]{background:#ff875b;color:#fff}.ui-btn__line[data-v-4c357d64]{background:none;color:#333;border:1px solid #999}.ui-btn__primaryLine[data-v-4c357d64]{background:none;color:#ff875b;border:1px solid #ff875b}.ui-btn__disabed[data-v-4c357d64]{opacity:.5}',""]),t.exports=e},"63a1":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-4ba9913b]{background:#f8f8f8}.address[data-v-4ba9913b]{background:#fff}.address-item[data-v-4ba9913b]{height:%?188?%;padding:0 %?40?% 0 %?30?%;display:flex;justify-content:space-between;align-items:center}.address-item--radio[data-v-4ba9913b]{-webkit-transform:scale(60%);transform:scale(60%)}.address-item--con[data-v-4ba9913b]{flex:1;margin-left:%?10?%}.address-item--city[data-v-4ba9913b]{font-size:%?24?%;color:#999}.address-item--detail[data-v-4ba9913b]{font-size:%?28?%;color:#333;margin:%?20?% 0}.address-item--info uni-text[data-v-4ba9913b]{font-size:%?24?%;color:#999}.address-item--name[data-v-4ba9913b]{margin-right:%?46?%}.address-item--edit[data-v-4ba9913b]{width:%?26?%;height:%?26?%}.address-item__default .address-item--city[data-v-4ba9913b]{display:flex;align-items:center}.address-item__default .address-item--city[data-v-4ba9913b]::after{display:block;content:"默认";background:#ff512b;color:#fff;border-radius:%?4?%;padding:%?4?% %?6?%;margin-left:%?20?%;width:%?62?%}.address-item__last[data-v-4ba9913b]{border:0}.addAddress[data-v-4ba9913b]{position:fixed;bottom:%?89?%;left:%?30?%;display:flex;align-items:center;justify-content:center;width:%?670?%}body.?%PAGE?%[data-v-4ba9913b]{background:#f8f8f8}',""]),t.exports=e},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},"7f16":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=[]},"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 r=function(t){return(0,a.ToAsyncAwait)(a.MsbRequestTk.post("".concat(i,"/receiveAddress"),t))};e.ApiPostAddress=r;var d=function(t){return(0,a.ToAsyncAwait)(a.MsbRequestTk.put("".concat(i,"/receiveAddress"),t))};e.ApiPutAddress=d;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("b867"),i=n("7985");for(var s in i)"default"!==s&&function(t){n.d(e,t,(function(){return i[t]}))}(s);n("f35f");var r,d=n("f0c5"),c=Object(d["a"])(i["default"],a["b"],a["c"],!1,null,"54c060f6",null,!1,a["a"],r);e["default"]=c.exports},"92fd":function(t,e,n){var a=n("5a44");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("4898df4d",a,!0,{sourceMap:!1,shadowMode:!1})},"9f0b":function(t,e,n){"use strict";var a=n("92fd"),i=n.n(a);i.a},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},a7aa:function(t,e,n){var a=n("63a1");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("22efa3e2",a,!0,{sourceMap:!1,shadowMode:!1})},aced:function(t,e,n){"use strict";n.r(e);var a=n("0f1d"),i=n("7c34");for(var s in i)"default"!==s&&function(t){n.d(e,t,(function(){return i[t]}))}(s);n("0aad");var r,d=n("f0c5"),c=Object(d["a"])(i["default"],a["b"],a["c"],!1,null,"4ba9913b",null,!1,a["a"],r);e["default"]=c.exports},b867: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=[]},c557:function(t,e,n){"use strict";var a=n("dd95"),i=n.n(a);i.a},c997: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-white-box[data-v-7e14885a]{margin:%?20?% %?30?%;background:#fff;border-radius:%?20?%}',""]),t.exports=e},dd95:function(t,e,n){var a=n("c997");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("36cf71ae",a,!0,{sourceMap:!1,shadowMode:!1})},f35f:function(t,e,n){"use strict";var a=n("5726"),i=n.n(a);i.a},fc13:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAMAAACelLz8AAAAAXNSR0IArs4c6QAAALpQTFRFAAAAAAAAJCQkICAgKioqMzMzLCwsKioqLi4uMTExLy8vMDAwMjIyMDAwMzMzNDQ0MTExMDAwNDQ0MjIyNDQ0MjIyNDQ0MzMzMTExMjIyMjIyMzMzMzMzMzMzMzMzMzMzMzMzMjIyMzMzMjIyMzMzMjIyMzMzMjIyMjIyMjIyMzMzMzMzMjIyMzMzMjIyMzMzMzMzMzMzMzMzMzMzMzMzMjIyMzMzMzMzMjIyMzMzMzMzMzMzMjIyMzMziWtizwAAAD10Uk5TAAQHCAwUFxgcHyswMzs8QERFT1JUXGNkaGtsb36Dh4uMj5KTm6Orsre7w8TFx8vNz9PX293f5+3z9/v8/qW7KhoAAADGSURBVCjPddHXEoIwFATQi6Jg7zU2FBHF3kX3/3/LAIIQzT7tzJlkwkL0m2xOpb9pnwDXzv+CsoSfR12U1AKY6FTe4K4LZ7hMvaIeYCRpzq+6Fr3WwTEhBjA44l7itYKLIIy0wBj2olBg+gXDhIz94tkONy2SEaI3ZRz+XbVI2FdIdfCUyApuVSrNuFjRIAnpcVFCseLSeMmEZlhLhLb+CB9BK/4jHih/hcVHLcBNB00U6ocbG6KQCVMitEdXIioksUk5y+gN3e0uRauYuucAAAAASUVORK5CYII="},fc54: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-54c060f6]{box-sizing:border-box;padding:%?50?%;text-align:center;background:#fff;margin:%?20?% %?30?%;border-radius:%?16?%}.empty--tips[data-v-54c060f6]{font-size:%?26?%;color:#999;margin:%?30?% 0 %?50?%}.empty--icon[data-v-54c060f6]{width:%?380?%;height:%?240?%}',""]),t.exports=e}}]); |