1 |
- import{v as s,D as a,bK as e,Q as t,T as o,bL as i,E as r,a as l,b as n,w as d,j as _,y as p,z as u,F as m,x as c,d as y,u as f,s as b,e as g,k as j,i as v,M as x,be as h}from"./index-708bb52f.js";import{_ as k}from"./s-address-item.623b8be0.js";import{a as w,_ as D}from"./s-layout.3ef8cd7b.js";import{_ as F}from"./s-empty.87a8de84.js";import{_ as S}from"./_plugin-vue_export-helper.1b428a4d.js";import"./s-layout.vue_vue_type_style_index_0_scoped_0789db2f_lang.6f68056c.js";import"./phone-international-input.vue_vue_type_style_index_0_scoped_a2d557af_lang.20409793.js";import"./s-tabbar.73e94363.js";import"./useGoods.2c1a3d0e.js";import"./phone-international-input.ab10a90b.js";/* empty css */const C=S({__name:"list",setup(S){const C=s({list:[],loading:!0});return a((async()=>{C.list=(await e.getAddressList()).data,C.loading=!1})),t((()=>{o("areaData")||i.getAreaTree().then((s=>{0===s.code&&r("areaData",s.data)}))})),(s,a)=>{const e=_(j("s-address-item"),k),t=v,o=x,i=_(j("su-fixed"),w),r=_(j("s-empty"),F),S=_(j("s-layout"),D);return l(),n(S,{title:"发票抬头管理",bgStyle:{color:"#FFF"}},{default:d((()=>[C.list.length?(l(),n(t,{key:0},{default:d((()=>[(l(!0),p(m,null,u(C.list,(s=>(l(),n(e,{hasBorderBottom:"",key:s.id,item:s,onClick:a=>(h("SELECT_ADDRESS",{addressInfo:s}),void b.$router.back())},null,8,["item","onClick"])))),128))])),_:1})):c("",!0),y(i,{bottom:"",placeholder:""},{default:d((()=>[y(t,{class:"footer-box ss-flex ss-row-between ss-p-20"},{default:d((()=>[y(o,{class:"add-btn ss-reset-button ui-Shadow-Main",onClick:a[0]||(a[0]=s=>f(b).$router.go("/pages/user/invoice/edit"))},{default:d((()=>[g(" 新增发票抬头 ")])),_:1})])),_:1})])),_:1}),0!==C.list.length||C.loading?c("",!0):(l(),n(r,{key:1,text:"暂无发票抬头",icon:"/static/data-empty.png"}))])),_:1})}}},[["__scopeId","data-v-0bd54ac4"]]);export{C as default};
|