yj
2024-12-05 ac3234c308e86f20cc63465573f321561ee00690
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-address-list"],{"1f9a":function(t,e,n){"use strict";var a=n("957a"),i=n.n(a);i.a},4982:function(t,e,n){var a=n("c86c");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */uni-page-body[data-v-c3dff13e]{padding-bottom:%?120?%}.content[data-v-c3dff13e]{position:relative}.list[data-v-c3dff13e]{display:flex;align-items:center;padding:%?20?% %?30?%;background:#fff;position:relative}.wrapper[data-v-c3dff13e]{display:flex;flex-direction:column;flex:1}.address-box[data-v-c3dff13e]{display:flex;align-items:center}.address-box .tag[data-v-c3dff13e]{font-size:%?24?%;color:#fa436a;margin-right:%?10?%;background:#fffafb;border:1px solid #ffb4c7;border-radius:%?4?%;padding:%?4?% %?10?%;line-height:1}.address-box .address[data-v-c3dff13e]{font-size:%?28?%;color:#909399}.u-box[data-v-c3dff13e]{font-size:%?30?%;color:#303133;margin-top:%?16?%}.u-box .name[data-v-c3dff13e]{margin-right:%?30?%}.icon-bianji[data-v-c3dff13e]{display:flex;align-items:center;height:%?80?%;font-size:%?40?%;color:#909399;padding-left:%?30?%}.add-btn[data-v-c3dff13e]{position:fixed;left:%?30?%;right:%?30?%;bottom:%?16?%;z-index:95;display:flex;align-items:center;justify-content:center;width:%?690?%;height:%?80?%;font-size:%?32?%;color:#fff;background-color:#fa436a;border-radius:%?10?%;box-shadow:1px 2px 5px rgba(219,63,96,.4)}',""]),t.exports=e},"53b5":function(t,e,n){"use strict";n.r(e);var a=n("9897"),i=n("e9ce");for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);n("1f9a");var d=n("828b"),o=Object(d["a"])(i["default"],a["b"],a["c"],!1,null,"c3dff13e",null,!1,a["a"],void 0);e["default"]=o.exports},5734:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("e966"),n("c223"),n("d4b5");var a={data:function(){return{source:0,addressList:[]}},onLoad:function(t){this.refreshList(),t.source&&(this.source=parseInt(t.source))},methods:{checkAddress:function(t){1===this.source&&(this.$api.prePage().addressData=t,this.$api.prePage().calcFreightPrice(),uni.navigateBack())},toUpsert:function(t,e){uni.navigateTo({url:"/pages/address/upsert?type=".concat(t,"&data=").concat(JSON.stringify(e))})},refreshList:function(t,e){var n=this;n.$api.request("address","list").then((function(t){n.addressList=t.data}))},deleteShow:function(t){var e=this;uni.showModal({title:"删除提示",content:"您确定要删除该地址吗?",showCancel:!0,confirmText:"删除",success:function(n){n.confirm&&e.$api.request("address","delete",{addressId:t.id}).then((function(t){e.refreshList()}))},fail:function(){}})}}};e.default=a},"957a":function(t,e,n){var a=n("4982");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("967d").default;i("0ce22dca",a,!0,{sourceMap:!1,shadowMode:!1})},9897:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"content b-t"},[t._l(t.addressList,(function(e,a){return n("v-uni-view",{key:a,staticClass:"list b-b",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.checkAddress(e)},longpress:function(n){arguments[0]=n=t.$handleEvent(n),t.deleteShow(e)}}},[n("v-uni-view",{staticClass:"wrapper"},[n("v-uni-view",{staticClass:"u-box"},[n("v-uni-text",{staticClass:"name"},[t._v(t._s(e.consignee))]),n("v-uni-text",{staticClass:"mobile"},[t._v(t._s(e.phone))])],1),n("v-uni-view",{staticClass:"address-box"},[e.defaultAddress?n("v-uni-text",{staticClass:"tag"},[t._v("默认")]):t._e(),n("v-uni-text",{staticClass:"address"},[t._v(t._s(e.province)+" "+t._s(e.city)+" "+t._s(e.county)+" "+t._s(e.address))])],1)],1),n("v-uni-text",{staticClass:"yticon icon-bianji",on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.toUpsert("edit",e)}}})],1)})),n("v-uni-button",{staticClass:"add-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toUpsert("add")}}},[t._v("新增地址")])],2)},i=[]},e9ce:function(t,e,n){"use strict";n.r(e);var a=n("5734"),i=n.n(a);for(var s in a)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(s);e["default"]=i.a}}]);