import{c as t,f as e,g as s,w as l,n as a,aj as o,E as r,z as i,s as u,m as d,t as p,i as c,p as f,F as n,l as m,A as _}from"./index-007bf156.js";import{_ as x}from"./points.c381a8e1.js";import{a as g,f as y}from"./useGoods.ac3bf93e.js";/* empty css                                                                     */import{_ as b}from"./_plugin-vue_export-helper.1b428a4d.js";const h=b({__name:"s-goods-item",props:{img:{type:String,default:"https://img1.baidu.com/it/u=1601695551,235775011&fm=26&fmt=auto"},title:{type:String,default:""},titleWidth:{type:Number,default:0},skuText:{type:[String,Array],default:""},price:{type:[String,Number],default:""},priceColor:{type:[String],default:""},num:{type:[String,Number],default:0},score:{type:[String,Number],default:""},radius:{type:[String],default:""},marginBottom:{type:[String],default:""},virtualPirce:{type:[Boolean],default:!1}},setup(b){const h=b,v=t((()=>h.skuText?"object"==typeof h.skuText?h.skuText.join(","):h.skuText:""));return(t,h)=>{const k=m,S=_;return e(),s(k,null,{default:l((()=>[a(k,null,{default:l((()=>[o(t.$slots,"top",{},void 0,!0)])),_:3}),a(k,{class:"ss-order-card-warp ss-flex ss-col-stretch ss-row-between bg-white",style:r([{borderRadius:b.radius+"rpx",marginBottom:b.marginBottom+"rpx"}])},{default:l((()=>[a(k,{class:"img-box ss-m-r-24"},{default:l((()=>[a(S,{class:"order-img",src:i(u).$url.cdn(b.img),mode:"aspectFill"},null,8,["src"])])),_:1}),a(k,{class:"box-right ss-flex-col ss-row-between",style:r([{width:b.titleWidth?b.titleWidth+"rpx":""}])},{default:l((()=>[b.title?(e(),s(k,{key:0,class:"title-text ss-line-2"},{default:l((()=>[d(p(b.title),1)])),_:1})):c("",!0),v.value?(e(),s(k,{key:1,class:"spec-text ss-m-t-8 ss-m-b-12"},{default:l((()=>[d(p(v.value),1)])),_:1})):c("",!0),a(k,{class:"groupon-box"},{default:l((()=>[o(t.$slots,"groupon",{},void 0,!0)])),_:3}),a(k,{class:"ss-flex"},{default:l((()=>[a(k,{class:"ss-flex ss-col-center"},{default:l((()=>[a(k,{class:"price-text ss-flex ss-col-center",style:r([{color:b.priceColor}])},{default:l((()=>[b.virtualPirce?(e(),f(n,{key:0},[a(S,{src:x,style:{width:"30rpx",height:"30rpx"}}),d(" "+p(i(g)(b.price)),1)],64)):(e(),f(n,{key:1},[d("￥"+p(i(y)(b.price)),1)],64))])),_:1},8,["style"]),b.num?(e(),s(k,{key:0,class:"total-text ss-flex ss-col-center"},{default:l((()=>[d("x "+p(b.num),1)])),_:1})):c("",!0),o(t.$slots,"priceSuffix",{},void 0,!0)])),_:3})])),_:3}),a(k,{class:"tool-box"},{default:l((()=>[o(t.$slots,"tool",{},void 0,!0)])),_:3}),a(k,null,{default:l((()=>[o(t.$slots,"rightBottom",{},void 0,!0)])),_:3})])),_:3},8,["style"])])),_:3},8,["style"])])),_:3})}}},[["__scopeId","data-v-eed9f7be"]]);export{h as _};
