pages-user-dummyAddress-list.e8d1db3b.js 1.7 KB

1
  1. import{z as s,p as a,aF as t,O as e,Q as o,aG as r,q as i,f as d,g as l,w as n,m as p,l as m,r as u,F as _,i as c,k as f,x as y,s as g,u as b,n as j,j as x,J as h,aH as k}from"./index-362f34b3.js";import{_ as v}from"./s-address-item.73fd1a79.js";import{a as w,_ as D}from"./s-layout.c41325d6.js";import{_ as F}from"./s-empty.b20f9f6b.js";import{_ as S}from"./_plugin-vue_export-helper.1b428a4d.js";import"./phone-international-input.74cd98cf.js";import"./useGoods.1b454b40.js";/* empty css */const A=S({__name:"list",setup(S){const A=s({list:[],loading:!0});return a((async()=>{A.list=(await t.getAddressList(2)).data,A.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"),F),S=p(j("s-layout"),D);return d(),l(S,{title:"虚拟商品收货地址",bgStyle:{color:"#FFF"}},{default:n((()=>[A.list.length?(d(),l(e,{key:0},{default:n((()=>[(d(!0),m(_,null,u(A.list,(s=>(d(),l(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!==A.list.length||A.loading?c("",!0):(d(),l(i,{key:1,text:"暂无收货地址",icon:"/static/data-empty.png"}))])),_:1})}}},[["__scopeId","data-v-79fb41c9"]]);export{A as default};