import{B as s,v as a,aH as t,Q as e,T as o,aI as r,x as i,f as l,g as d,w as n,q as p,p as u,r as m,F as _,i as c,n as f,z as y,s as g,m as b,u as j,l as x,L as h,aJ as k}from"./index-007bf156.js";import{_ as v}from"./s-address-item.89afa959.js";import{a as w,_ as S}from"./s-layout.19bedb43.js";import{_ as A}from"./s-empty.df9577ad.js";import{_ as C}from"./_plugin-vue_export-helper.1b428a4d.js";import"./phone-international-input.3617e4e0.js";import"./useGoods.ac3bf93e.js";/* empty css                                                                */const D=C({__name:"list",setup(C){const D=s({list:[],loading:!0});return a((async()=>{D.list=(await t.getAddressList(2)).data,D.loading=!1})),e((()=>{o("areaData")||r.getAreaTree().then((s=>{0===s.code&&i("areaData",s.data)}))})),(s,a)=>{const t=p(j("s-address-item"),v),e=x,o=h,r=p(j("su-fixed"),w),i=p(j("s-empty"),A),C=p(j("s-layout"),S);return l(),d(C,{title:"虚拟商品收货地址",bgStyle:{color:"#FFF"}},{default:n((()=>[D.list.length?(l(),d(e,{key:0},{default:n((()=>[(l(!0),u(_,null,m(D.list,(s=>(l(),d(t,{spuType:"0",hasBorderBottom:"",key:s.id,item:s,onClick:a=>(k("SELECT_ADDRESS",{addressInfo:s}),void g.$router.back())},null,8,["item","onClick"])))),128))])),_:1})):c("",!0),f(r,{bottom:"",placeholder:""},{default:n((()=>[f(e,{class:"footer-box ss-flex ss-row-between ss-p-20"},{default:n((()=>[f(o,{class:"add-btn ss-reset-button ui-Shadow-Main",onClick:a[0]||(a[0]=s=>y(g).$router.go("/pages/user/dummyAddress/edit"))},{default:n((()=>[b(" 新增收货地址 ")])),_:1})])),_:1})])),_:1}),0!==D.list.length||D.loading?c("",!0):(l(),d(i,{key:1,text:"暂无收货地址",icon:"/static/data-empty.png"}))])),_:1})}}},[["__scopeId","data-v-79fb41c9"]]);export{D as default};
