1 |
- import{v as s,D as e,bL as a,Q as t,T as o,bM as d,E as i,a as r,b as l,d as n,w as _,u as p,e as u,x as m,y as c,F as y,z as g,f,s as b,g as j,j as v,t as x,i as h,M as k,be as w}from"./index-DUAp9XEj.js";import{_ as C}from"./s-address-item.-N3p6yga.js";import{a as D,_ as S}from"./s-layout.a1_kfpIW.js";import{_ as A}from"./s-empty.BQPqUoar.js";import{_ as E}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./s-menu-tools.Bn3wdRty.js";import"./s-layout.vue_vue_type_style_index_0_scoped_d5f7c468_lang.CKkHKX6k.js";import"./phone-international-input.vue_vue_type_style_index_0_scoped_a793e264_lang.Bv2EixP5.js";import"./s-tabbar.fodLOlFD.js";import"./useGoods.Cwnq-veC.js";import"./phone-international-input.D4fi9eUK.js";/* empty css */const F=E({__name:"list",setup(E){const F=s({list:[],loading:!0});return e((async()=>{F.list=(await a.getAddressList(2)).data,F.loading=!1})),t((()=>{o("areaData")||d.getAreaTree().then((s=>{0===s.code&&i("areaData",s.data)}))})),(s,e)=>{const a=r(l("s-address-item"),C),t=h,o=k,d=r(l("su-fixed"),D),i=r(l("s-empty"),A),E=r(l("s-layout"),S);return u(),n(E,{title:p(x)("address.virtual_goods_address"),bgStyle:{color:"#FFF"}},{default:_((()=>[F.list.length?(u(),n(t,{key:0},{default:_((()=>[(u(!0),m(y,null,c(F.list,(s=>(u(),n(a,{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})):g("",!0),f(d,{bottom:"",placeholder:""},{default:_((()=>[f(t,{class:"footer-box ss-flex ss-row-between ss-p-20"},{default:_((()=>[f(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:_((()=>[j(v(p(x)("address.add_new_shipping_address")),1)])),_:1})])),_:1})])),_:1}),0!==F.list.length||F.loading?g("",!0):(u(),n(i,{key:1,text:p(x)("address.no_shipping_address"),icon:"/static/data-empty.png"},null,8,["text"]))])),_:1},8,["title"])}}},[["__scopeId","data-v-7468c481"]]);export{F as default};
|