import{C as s,o as t,e as a,w as e,i as l,G as d,y as u,z as o,k as c,T as r,E as i,m as n}from"./index-520dfaee.js";import{_}from"./_plugin-vue_export-helper.1b428a4d.js";const f=_({__name:"s-coupon-list",props:{data:{type:Object,default:{}},disabled:{type:Boolean,default:!1},type:{type:String,default:"coupon"}},setup:_=>(s({stateMap:{0:"立即领取",1:"去使用"}}),(s,f)=>{const p=n;return t(),a(p,{class:"ss-m-20",style:i({opacity:_.disabled?"0.5":"1"})},{default:e((()=>[l(p,{class:"content"},{default:e((()=>[l(p,{class:d(["tag ss-flex ss-row-center","expired"==_.data.status||"used"==_.data.status?"disabled-bg-color":"info-bg-color"])},{default:e((()=>[u(o(_.data.type_text),1)])),_:1},8,["class"]),l(p,{class:"title ss-m-x-30 ss-p-t-18"},{default:e((()=>[l(p,{class:"ss-flex ss-row-between"},{default:e((()=>[l(p,{class:d(["value-text ss-flex-1 ss-m-r-10","expired"==_.data.status||"used"==_.data.status?"disabled-color":"info-color"])},{default:e((()=>[u(o(_.data.name),1)])),_:1},8,["class"]),l(p,null,{default:e((()=>[l(p,{class:d(["ss-flex ss-col-bottom","expired"!=_.data.status&&"used"!=_.data.status?"price-text":"disabled-color"])},{default:e((()=>["reduce"===_.data.type?(t(),a(p,{key:0,class:"value-reduce ss-m-b-10"},{default:e((()=>[u("￥")])),_:1})):c("",!0),l(p,{class:"value-price"},{default:e((()=>[u(o(_.data.amount),1)])),_:1}),"discount"===_.data.type?(t(),a(p,{key:1,class:"value-discount ss-m-b-10 ss-m-l-4"},{default:e((()=>[u("折")])),_:1})):c("",!0)])),_:1},8,["class"])])),_:1})])),_:1}),l(p,{class:"ss-flex ss-row-between ss-m-t-16"},{default:e((()=>[l(p,{class:d(["sellby-text","expired"==_.data.status||"used"==_.data.status?"disabled-color":"subtitle-color"])},{default:e((()=>[u(o("user"===_.type?"有效期："+_.data.use_start_time.substring(0,11):"领取时间："+_.data.get_start_time.substring(0,11))+"至 "+o("user"===_.type?_.data.use_end_time.substring(0,11):_.data.get_end_time.substring(0,11)),1)])),_:1},8,["class"]),l(p,{class:d(["value-enough","expired"==_.data.status||"used"==_.data.status?"disabled-color":"subtitle-color"])},{default:e((()=>[u("满"+o(_.data.enough)+"可用",1)])),_:1},8,["class"])])),_:1})])),_:1})])),_:1}),l(p,{class:"desc ss-flex ss-row-between"},{default:e((()=>[l(p,null,{default:e((()=>[l(p,{class:"desc-title"},{default:e((()=>[u(o(_.data.description),1)])),_:1}),l(p,null,{default:e((()=>[r(s.$slots,"reason",{},void 0,!0)])),_:3})])),_:3}),l(p,null,{default:e((()=>[r(s.$slots,"default",{},void 0,!0)])),_:3})])),_:3})])),_:3},8,["style"])})},[["__scopeId","data-v-942873c6"]]);export{f as _};
