1 |
- import{v as s,D as e,bL as t,Q as a,T as o,bM as d,E as i,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 g,f,s as j,g as b,j as v,t as h,i as x,M as k,be as w}from"./index-BCKJ-0Ge.js";import{_ as A}from"./s-address-item.B5jZa3NG.js";import{a as D,_ as E}from"./s-layout.BlKiWP6r.js";import{_ as S}from"./s-empty.QkB-HsQm.js";import{_ as C}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./s-menu-tools.IK4uQ0vW.js";import"./s-search-block.vue_vue_type_style_index_0_scoped_f692e81a_lang.PvnEoxKH.js";import"./uni-icons.B3KpsLhk.js";import"./s-layout.vue_vue_type_style_index_0_scoped_d5f7c468_lang.DAm7RC0r.js";import"./phone-international-input.vue_vue_type_style_index_0_scoped_a793e264_lang.gzj6S5Lq.js";import"./s-search-block.Cv0lfwt6.js";import"./useGoods.RKHlFkKU.js";import"./phone-international-input.DlQn1niu.js";/* empty css */const F=C({__name:"list",setup(C){const F=s({list:[],loading:!0});return e((async()=>{F.list=(await t.getAddressList(2)).data,F.loading=!1})),a((()=>{o("areaData")||d.getAreaTree().then((s=>{0===s.code&&i("areaData",s.data)}))})),(s,e)=>{const t=r(_("s-address-item"),A),a=x,o=k,d=r(_("su-fixed"),D),i=r(_("s-empty"),S),C=r(_("s-layout"),E);return u(),l(C,{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 j.$router.back())},null,8,["item","onClick"])))),128))])),_:1})):g("",!0),f(d,{bottom:"",placeholder:""},{default:n((()=>[f(a,{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:e[0]||(e[0]=s=>p(j).$router.go("/pages/user/dummyAddress/edit"))},{default:n((()=>[b(v(p(h)("address.add_new_shipping_address")),1)])),_:1})])),_:1})])),_:1}),0!==F.list.length||F.loading?g("",!0):(u(),l(i,{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};
|