import{c as s,o as t,e,w as l,i as o,T as r,E as a,u as i,s as u,y as c,z as d,k as p,m as n,l as f}from"./index-520dfaee.js";/* empty css                                                                     */import{_ as m}from"./_plugin-vue_export-helper.1b428a4d.js";const _=m({__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:""}},setup(m){const _=m,x=s((()=>_.skuText?"object"==typeof _.skuText?_.skuText.join(","):_.skuText:""));return(s,_)=>{const g=n,y=f;return t(),e(g,null,{default:l((()=>[o(g,null,{default:l((()=>[r(s.$slots,"top",{},void 0,!0)])),_:3}),o(g,{class:"ss-order-card-warp ss-flex ss-col-stretch ss-row-between bg-white",style:a([{borderRadius:m.radius+"rpx",marginBottom:m.marginBottom+"rpx"}])},{default:l((()=>[o(g,{class:"img-box ss-m-r-24"},{default:l((()=>[o(y,{class:"order-img",src:i(u).$url.cdn(m.img),mode:"aspectFill"},null,8,["src"])])),_:1}),o(g,{class:"box-right ss-flex-col ss-row-between",style:a([{width:m.titleWidth?m.titleWidth+"rpx":""}])},{default:l((()=>[m.title?(t(),e(g,{key:0,class:"title-text ss-line-2"},{default:l((()=>[c(d(m.title),1)])),_:1})):p("",!0),i(x)?(t(),e(g,{key:1,class:"spec-text ss-m-t-8 ss-m-b-12"},{default:l((()=>[c(d(i(x)),1)])),_:1})):p("",!0),o(g,{class:"groupon-box"},{default:l((()=>[r(s.$slots,"groupon",{},void 0,!0)])),_:3}),o(g,{class:"ss-flex"},{default:l((()=>[o(g,{class:"ss-flex ss-col-center"},{default:l((()=>[m.price&&Number(m.price)>0?(t(),e(g,{key:0,class:"price-text ss-flex ss-col-center",style:a([{color:m.priceColor}])},{default:l((()=>[c(" ￥"+d(m.price),1)])),_:1},8,["style"])):p("",!0),m.score&&Number(m.price)>0?(t(),e(g,{key:1},{default:l((()=>[c("+")])),_:1})):p("",!0),m.score?(t(),e(g,{key:2,class:"price-text ss-flex ss-col-center"},{default:l((()=>[o(y,{src:i(u).$url.static("/assets/addons/shopro/uniapp/goods/score1.svg"),class:"score-img"},null,8,["src"]),o(g,null,{default:l((()=>[c(d(m.score),1)])),_:1})])),_:1})):p("",!0),m.num?(t(),e(g,{key:3,class:"total-text ss-flex ss-col-center"},{default:l((()=>[c("x "+d(m.num),1)])),_:1})):p("",!0),r(s.$slots,"priceSuffix",{},void 0,!0)])),_:3})])),_:3}),o(g,{class:"tool-box"},{default:l((()=>[r(s.$slots,"tool",{},void 0,!0)])),_:3}),o(g,null,{default:l((()=>[r(s.$slots,"rightBottom",{},void 0,!0)])),_:3})])),_:3},8,["style"])])),_:3},8,["style"])])),_:3})}}},[["__scopeId","data-v-c5bc0a0d"]]);export{_};
