1 |
- import{v as s,G as e,bQ as t,U as a,T as o,bR as i,H as d,a as r,b as _,d as l,w as n,u as p,e as u,x as m,y as c,F as y,z as f,f as g,s as b,g as j,j as v,t as h,i as x,O as k,bi as w}from"./index-CRW3onsz.js";import{_ as A}from"./s-address-item.2DP7Leco.js";import{a as S,_ as C}from"./s-layout.DKC65HXL.js";import{_ as D}from"./s-empty.C6jDqfil.js";import{_ as E}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./s-menu-tools.CNNsOrh3.js";import"./s-search-block.vue_vue_type_style_index_0_scoped_f692e81a_lang.CiL8L9B_.js";import"./uni-icons.CkO1HN9g.js";import"./s-layout.vue_vue_type_style_index_0_scoped_c1143e8c_lang.HuwOimZj.js";import"./phone-international-input.vue_vue_type_style_index_0_scoped_0f0268ff_lang.Dctrwx6t.js";import"./s-search-block.9OtJrST_.js";import"./phone-international-input.vKvR7wTz.js";/* empty css */const F=E({__name:"list",setup(E){const F=s({list:[],loading:!0});return e((async()=>{F.list=(await t.getAddressList(2)).data,F.loading=!1})),a((()=>{o("areaData")||i.getAreaTree().then((s=>{0===s.code&&d("areaData",s.data)}))})),(s,e)=>{const t=r(_("s-address-item"),A),a=x,o=k,i=r(_("su-fixed"),S),d=r(_("s-empty"),D),E=r(_("s-layout"),C);return u(),l(E,{title:p(h)("address.virtual_goods_address"),bgStyle:{color:"#FFF"}},{default:n((()=>[F.list.length?(u(),l(a,{key:0},{default:n((()=>[(u(!0),m(y,null,c(F.list,(s=>(u(),l(t,{spuType:"0",hasBorderBottom:"",key:s.id,item:s,onClick:e=>(w("SELECT_ADDRESS",{addressInfo:s}),void b.$router.back())},null,8,["item","onClick"])))),128))])),_:1})):f("",!0),g(i,{bottom:"",placeholder:""},{default:n((()=>[g(a,{class:"footer-box ss-flex ss-row-between ss-p-20"},{default:n((()=>[g(o,{class:"add-btn ss-reset-button ui-Shadow-Main",onClick:e[0]||(e[0]=s=>p(b).$router.go("/pages/user/dummyAddress/edit"))},{default:n((()=>[j(v(p(h)("address.add_new_shipping_address")),1)])),_:1})])),_:1})])),_:1}),0!==F.list.length||F.loading?f("",!0):(u(),l(d,{key:1,text:p(h)("address.no_shipping_address"),icon:"/static/data-empty.png"},null,8,["text"]))])),_:1},8,["title"])}}},[["__scopeId","data-v-7468c481"]]);export{F as default};
|