import{P as v}from"./page.3b4d44cb.js";import{K as b}from"./storeActivity.634c4426.js";import{a4 as y,b as w,ar as D,a as Y,_ as C,c as i,e as p,k as B,i as a,g as e,h as t,t as o,f,j as k,F,R as S,S as j}from"./index.0308b213.js";const H={components:{page:v},setup(){const s=y(),u=Number(s.query.id),n=w({loading:!0,item:{}});return b({id:u}).then(c=>{console.log("\u8BF7\u6C42\u7ED3\u679C\uFF1A",c),n.item=c.coupons}).finally(()=>{n.loading=!1}),{...D(n),dayjs:Y}}};const _=s=>(S("data-v-3af797ce"),s=s(),j(),s),I={class:"wrap"},M=_(()=>e("div",{class:"wrap-title"},[e("span",null,"\u6D3B\u52A8\u4FE1\u606F")],-1)),$=_(()=>e("span",null,"\u6D3B\u52A8\u5DF2\u751F\u6548",-1)),N={class:"coupons-left"},R={class:"price"},A={class:"condition"},E={class:"coupons-right"},P={class:"valid"},V={class:"wrap"},q=_(()=>e("div",{class:"wrap-title"},[e("span",null,"\u6D3B\u52A8\u7EDF\u8BA1")],-1)),K={class:"progress"},L={class:"progress"},z={class:"progress"};function G(s,u,n,c,J,O){const l=i("el-form-item"),m=i("el-form"),r=i("el-progress"),g=i("page");return p(),B(g,{showBorder:!1},{main:a(()=>[e("div",I,[M,t(m,{"label-width":"150px",class:"form-container"},{default:a(()=>[t(l,{label:"\u6D3B\u52A8\u540D\u79F0"},{default:a(()=>[e("span",null,o(s.item.title),1)]),_:1}),t(l,{label:"\u6D3B\u52A8\u72B6\u6001"},{default:a(()=>[$]),_:1}),t(l,{label:"\u6D3B\u52A8\u65F6\u95F4"},{default:a(()=>[e("span",null,o(s.dayjs(s.item.starttime*1e3).format("YYYY-MM-DD :HH:mm:ss"))+"~"+o(s.dayjs(s.item.endtime*1e3).format("YYYY-MM-DD :HH:mm:ss")),1)]),_:1}),t(l,{label:"\u5361\u5377\u603B\u6570"},{default:a(()=>[e("span",null,o(s.item.amount)+"\u4E2A",1)]),_:1}),t(l,{label:"\u4F18\u60E0\u5377"},{default:a(()=>[(p(!0),f(F,null,k(s.item.data,(d,h)=>(p(),f("div",{class:"coupons",key:h},[e("div",N,[e("p",R,"\uFFE5"+o(d.discount),1),e("p",A,"\u6EE1"+o(d.condition)+"\u53EF\u7528",1)]),e("div",E,[e("p",P,"\u9886\u5238\u540E"+o(d.use_days_limit)+"\u5929\u5185\u6709\u6548",1)])]))),128))]),_:1})]),_:1})]),e("div",V,[q,t(m,{"label-width":"150px",class:"form-container"},{default:a(()=>[t(l,{label:"\u52B5\u603B\u5F20\u6570"},{default:a(()=>[e("span",null,o(s.item.amount),1),e("div",K,[t(r,{percentage:s.item.amount?100:0},null,8,["percentage"])])]),_:1}),t(l,{label:"\u53D1\u653E\u6570\u91CF"},{default:a(()=>[e("span",null,o(s.item.dosage_total),1),e("div",L,[t(r,{percentage:s.item.dosage_percent},null,8,["percentage"])])]),_:1}),t(l,{label:"\u4F7F\u7528\u6570\u91CF"},{default:a(()=>[e("span",null,o(s.item.is_use_total),1),e("div",z,[t(r,{percentage:s.item.is_use_percent},null,8,["percentage"])])]),_:1})]),_:1})])]),_:1})}const W=C(H,[["render",G],["__scopeId","data-v-3af797ce"]]);export{W as default};
