"use strict";const e=require("../../../common/vendor.js"),r=require("../../hooks/useGoods.js"),i=require("../../index.js");require("../../url/index.js"),require("../../store/index.js"),require("../../store/app.js"),require("../../api/promotion/diy.js"),require("../../request/index.js"),require("../../config/index.js"),require("../../platform/index.js"),require("../../platform/provider/wechat/index.js"),require("../../platform/provider/wechat/miniProgram.js"),require("../../api/member/auth.js"),require("../../api/member/social.js"),require("../../api/member/user.js"),require("../../platform/provider/apple/index.js"),require("../../platform/share.js"),require("../../router/index.js"),require("../../hooks/useModal.js"),require("../../helper/index.js"),require("../../helper/test.js"),require("../../helper/digit.js"),require("../../api/member/signin.js"),require("../../helper/throttle.js"),require("../../platform/pay.js"),require("../../api/pay/order.js"),require("../../store/user.js"),require("../../store/cart.js"),require("../../api/trade/cart.js"),require("../../api/pay/wallet.js"),require("../../api/trade/order.js"),require("../../api/promotion/coupon.js"),require("../../store/sys.js"),require("../../store/modal.js"),require("../../util/index.js"),require("../../config/zIndex.js");const t={__name:"s-coupon-list",props:{data:{type:Object,default:{}},disabled:{type:Boolean,default:!1},type:{type:String,default:"coupon"}},setup(t){e.reactive({});const a=e.computed((()=>"coupon"!==o.type&&1!==o.data.status)),o=t;return(o,s)=>e.e({a:e.t(1===t.data.discountType?"满减券":"折扣券"),b:e.n(a.value?"disabled-bg-color":"info-bg-color"),c:e.t(t.data.name),d:e.n(a.value?"disabled-color":"info-color"),e:1===t.data.discountType},(t.data.discountType,{}),{f:e.t(1===t.data.discountType?e.unref(r.fen2yuan)(t.data.discountPrice):t.data.discountPercent/10),g:2===t.data.discountType},(t.data.discountType,{}),{h:e.n(a.value?"disabled-color":"price-text"),i:2===t.data.validityType},2===t.data.validityType?{j:e.t(t.data.fixedEndTerm),k:e.n(a.value?"disabled-color":"subtitle-color")}:{l:e.t(e.unref(i.sheep).$helper.timeFormat(t.data.validStartTime,"yyyy-mm-dd")),m:e.t(e.unref(i.sheep).$helper.timeFormat(t.data.validEndTime,"yyyy-mm-dd")),n:e.n(a.value?"disabled-color":"subtitle-color")},{o:e.t(e.unref(r.fen2yuan)(t.data.usePrice)),p:e.n(a.value?"disabled-color":"subtitle-color"),q:e.t(t.data.description),r:t.disabled?"0.5":"1"})}},a=e._export_sfc(t,[["__scopeId","data-v-b112a8a9"]]);wx.createComponent(a);
