!function(){function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function e(e){for(var r=1;rt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0?"left":"right",e=Math.abs(C.offset),i=n?.85:.15,(a="left"===t?O.value:k.value)&&e>a*i?x(t):P(t),setTimeout((function(){r=!1}),0))},J=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"outside";a("click",e),n&&!r&&y(t.beforeClose,{args:[{name:t.name,position:e}],done:function(){return P(e)}})},U=function(t,e){return function(n){e&&n.stopPropagation(),J(t)}},Y=function(t,e){var n=o[t];if(n)return h("div",{ref:e,class:W(t),onClick:U(t,!0)},[n()])};return d({open:x,close:P}),g(s,(function(){return J("outside")}),{eventName:"touchstart"}),function(){var t,e={transform:"translate3d(".concat(C.offset,"px, 0, 0)"),transitionDuration:C.dragging?"0s":".6s"};return h("div",{ref:s,class:W(),onClick:U("cell",r),onTouchstart:E,onTouchmove:T,onTouchend:R,onTouchcancel:R},[h("div",{class:W("wrapper"),style:e},[Y("left",A),null==(t=o.default)?void 0:t.call(o),Y("right",w)])])}}}),B=A(z);t("default",s({name:"shop-address",setup:function(){var t=w(),n=c({isClick:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{page:1,rows:20},selectItem:{}}),r=function(){var t=i(regeneratorRuntime.mark((function t(){var r,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!n.isClick){t.next=3;break}return t.abrupt("return");case 3:return n.isClick=!0,t.next=6,E.get("/api-mall-portal/member/address/list",{params:e({},n.params)});case 6:if(r=t.sent,n.listState.loading=!1,i=r.data||{},!(n.list.length>0&&1===i.current)){t.next=11;break}return t.abrupt("return");case 11:n.list=n.list.concat(i||[]),n.listState.finished=!0,n.params.page=i.current+1,n.listState.dataShow=n.list.length>0,n.isClick=!1,t.next=23;break;case 18:t.prev=18,t.t0=t.catch(0),n.listState.dataShow=!1,n.listState.finished=!0,n.isClick=!1;case 23:case"end":return t.stop()}}),t,null,[[0,18]])})));return function(){return t.apply(this,arguments)}}();return C((function(){r()})),function(){var e,a;return h("div",{class:[Y.shopAddress]},[h(G,null,null),n.listState.dataShow?h(U,{finished:n.listState.finished,finishedText:" ",class:[Y.liveList],onLoad:r,immediateCheck:!1},(a=e=n.list.map((function(e){return h(B,{class:Y.swipeCell,beforeClose:function(t){return function(t,e){if("right"!==t.position)return!0;P.confirm({title:"提示",message:"确定删除吗?",confirmButtonColor:"#FF8021"}).then(i(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,E.post("/api-mall-portal/member/address/delete/"+e.id,{requestType:"form",data:{}});case 2:return setTimeout((function(){T("删除成功")}),100),setTimeout((function(){n.params.page=1,n.list=[],n.listState.dataShow=!0,n.listState.loading=!1,n.listState.finished=!1,r()}),1100),t.abrupt("return",!0);case 5:case"end":return t.stop()}}),t)}))))}(t,e)}},{default:function(){return h(R,{center:!0,onClick:function(){return function(e){sessionStorage.setItem("addressDetails",JSON.stringify(e)),t.back()}(e)}},{title:function(){return h("div",{class:Y.title},[h("span",{class:Y.name},[e.name]),h("span",{class:Y.phone},[e.phoneNumber]),e.defaultStatus&&h(J,{plain:!0,color:"#FF8057"},{default:function(){return[S("默认")]}})])},label:function(){return h("div",{class:Y.content},[e.province,e.city,e.region,e.detailAddress])},"right-icon":function(){return h(j,{name:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAA15JREFUWEft2E+ME2UYx/HvMxJhu0ZMWJAbwUTihRgucjDKn13+XEhQsp0uRuPJRDkAwSgK275Tl4UTSmIkcPK2O2nCv10SE9iEg9EDF8GDR5EEhXQPBg7ALjuPmXa2NLXzr50mHJhT23n7vp/+5nneaSs8Y4f0yqPGfh/kS9A3gX+BCzz2RuV4pRq1Zk9A6hQMqqU2C9/iibdVxip/hqEyB6nJl0FGGwsq1xHWAgPBa3/xxNsShsoUpE6+jDYwHsJnUnLPqBkZQLyrKP7l849QVGYgNYVvQI8GC3pYfCpF9+xiUjr+3grmX5yJQ2UCUmOPAUfCMJEo9d4Vp3J7cUzXoKSYCNQvYty3MwGpyR8D+ToumdaOql++pb+i+nr9nLdBTOU3/1HHCXWKaSRVtg/jcTx4vkeMe65jkJrCOOhXaZNpYMzHy+DhNWBj7TWLt6ToXu8IpE5hHO0Cc3C4j+VyEWRbDSPcoOhuEEFTg9TYfsSHO07Gx7zywkVUFzFV5tkkY+4fqYs6E8xy6xIwFCRTRa0hMRM3m4s+UVGryZ+o3yjrLdG66bV20f+66uRwH/ebMDAL1mArJtElU6cwimq5S8wUMBjMEYqJBakzsg31fqr1QafJPLCm0GSYSJCazUvg1d+BN4JPdkiMezLu8jxt7V056JsC2ZokmdiiVpPfDXK+PlCuiJncng7TPwWaChOTkD0BFGoI9d4Rp/JzEpCaXTk0N42wJU0yCRKybwFrEO5JyV2dGCO5abQzTGhC9fpZNQfibwszYtz63hFx1JIhdxnY3EjGYkiK7o249zafb7sPqRleDdY/Qf1MiJncG4n5/MN+Xpqb7hYTnlB5eD2eVd9BhVNScg+EgdR88DIsXALd1E0ykTWkTmEQ1asB6KiU3GPtQMG4H4B1WWAiasj2u8vvMj+hL5hnmiW6EmElC7IKS14D3QGsb4LexWJn2ppp/aDta8jJ70Pl+xTFOAPykZjJv1O8p+3Q9qCivR+L72ImnwO9gqenpVzxuyuTI6TLRgbAOwWsoHZnpopKFQv/Z/AsunAH+m+K+fFRJoqmSRJ9/ch60aj5noPi0n72Egq+K/s78bI4fY/PPwL5VtTYfucs/lXS4zVjp58VdQo26n0CsjR2eE8H6GPEOvsf2eN7gbiHuWgAAAAASUVORK5CYII=",size:"18",onClick:function(n){n.stopPropagation(),function(e){t.push({path:"/addressOperation",query:{id:e.id}})}(e)}},null)}})},right:function(){return h(O,{type:"danger"},{default:function(){return[S("删除")]}})}})})),"function"==typeof a||"[object Object]"===Object.prototype.toString.call(a)&&!x(a)?e:{default:function(){return[e]}})):h("div",{style:{"min-height":"calc(100vh - var(--header-height))",display:"flex","align-items":"center"}},[h(k,{type:"empty",tips:"暂无收货地址",btnStatus:!1},null)]),h(D,{position:"bottom"},{default:function(){return[h("div",{class:"btnGroup"},[h(O,{type:"primary",round:!0,block:!0,class:Y.createBtn,onClick:function(){t.push("/addressOperation")}},{default:function(){return[S("新建收货地址")]}})])]}})])}}}))}}}))}();