"use strict";const e=require("../../../common/vendor.js"),r=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("../../config/zIndex.js");const t={__name:"s-live-card",props:{goodsFields:{type:[Array,Object],default:()=>({})},tagStyle:{type:Object,default:{}},data:{type:Object,default:{}},size:{type:String,default:"sl"},background:{type:String,default:""},topRadius:{type:Number,default:0},bottomRadius:{type:Number,default:0},titleColor:{type:String,default:"#333"},subTitleColor:{type:String,default:"#999999"}},emits:["click","getHeight"],setup(t,{emit:i}){const s=t,a=e.computed((()=>({background:s.background,"border-top-left-radius":s.topRadius+"px","border-top-right-radius":s.topRadius+"px","border-bottom-left-radius":s.bottomRadius+"px","border-bottom-right-radius":s.bottomRadius+"px"}))),o=e.reactive({liveStatus:{101:{img:r.sheep.$url.static("/static/images/living.png"),title:"直播中"},102:{img:r.sheep.$url.static("/static/images/start.png"),title:"未开始"},103:{img:r.sheep.$url.static("/static/images/ended.png"),title:"已结束"}}}),u=i,d=()=>{u("click")};return(i,s)=>e.e({a:"md"===t.size},"md"===t.size?{b:o.liveStatus[t.data.status].img,c:e.t(o.liveStatus[t.data.status].title),d:e.unref(r.sheep).$url.cdn(t.data.feeds_img),e:e.t(t.data.name),f:e.s({color:t.titleColor}),g:e.t(t.data.anchor_name),h:e.s({color:t.subTitleColor}),i:e.s(a.value),j:e.o(d)}:{},{k:"sl"===t.size},"sl"===t.size?{l:o.liveStatus[t.data.status].img,m:e.t(o.liveStatus[t.data.status].title),n:e.unref(r.sheep).$url.cdn(t.data.feeds_img),o:e.t(t.data.name),p:e.s({color:t.titleColor}),q:e.t(t.data.anchor_name),r:e.s({color:t.subTitleColor}),s:e.s(a.value),t:e.o(d)}:{})}},i=e._export_sfc(t,[["__scopeId","data-v-630d95ca"]]);wx.createComponent(i);
