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