import{C as e,M as t,O as n,_ as r,a as i,b as a,f as o,g as s,j as c,k as l,m as u,o as d,s as f,t as p,w as m,x as h}from"./index-vhvNh9F8.js";var g={class:`page`},_={key:0,style:{"text-align":`center`,padding:`40px`,color:`#999`,"font-size":`14px`}},v={class:`card-body`},y={style:{display:`flex`,"justify-content":`space-between`,"font-size":`12px`,color:`#999`}},b={style:{display:`flex`,gap:`10px`,"align-items":`center`,"margin-top":`8px`}},x={style:{flex:`1`}},S={style:{"font-size":`13px`,"font-weight":`500`}},C={style:{"font-size":`12px`,color:`#999`,"margin-top":`2px`}},w={style:{"text-align":`right`}},T={style:{color:`var(--danger)`,"font-weight":`700`,"font-size":`15px`}},E=f({__name:`MyBulkGroup`,setup(f){let E=n(localStorage.getItem(`token`)||``),D=n([]);return h(async()=>{if(E.value)try{let e=await i.get(`/bulk-group/orders`,{headers:{Authorization:`Bearer `+E.value}});e.code===0&&(D.value=e.data.list||[])}catch{}}),(n,i)=>(e(),r(`div`,g,[a(d,{title:`我的团购`,onBack:i[0]||=e=>n.router.push(`/user`)}),D.value.length===0?(e(),r(`div`,_,`暂无团购订单`)):s(``,!0),(e(!0),r(o,null,m(D.value,n=>(e(),r(`div`,{key:n.order_no,class:`card`},[u(`div`,v,[u(`div`,y,[u(`span`,null,t(n.created_at),1),u(`span`,{style:c({color:n.status===`paid`?`#52c41a`:`#999`})},t(n.status===`paid`?`已支付`:`待支付`),5)]),u(`div`,b,[u(`div`,x,[u(`div`,S,t(n.product_name),1),u(`div`,C,`x`+t(n.quantity)+` 件 · ¥`+t(l(p)(n.unit_price))+`/件`,1)]),u(`div`,w,[u(`div`,T,`¥`+t(l(p)(n.total_amount)),1)])])])]))),128))]))}},[[`__scopeId`,`data-v-c2f65a18`]]);export{E as default};