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 g,f,s as b,g as j,j as v,t as h,i as x,O as k,bi as w}from"./index-DmADNK3Y.js";import{_ as A}from"./s-address-item.Bck4bq--.js";import{a as S,_ as C}from"./s-layout.BUcPdB_i.js";import{_ as D}from"./s-empty.D3fOnhM3.js";import{_ as E}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./s-menu-tools.CBBAuMM5.js";import"./s-search-block.vue_vue_type_style_index_0_scoped_f692e81a_lang.DfwRfjhk.js";import"./uni-icons.BXlOSy8E.js";import"./s-layout.vue_vue_type_style_index_0_scoped_c1143e8c_lang.DcsMz737.js";import"./phone-international-input.vue_vue_type_style_index_0_scoped_87b92f91_lang.B3RF0S0d.js";import"./s-search-block.Bt-c_iKm.js";import"./phone-international-input.BvERe5mS.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})):g("",!0),f(i,{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(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?g("",!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};
|