1 |
- import{c as t,e,f as s,w as l,j as r,a9 as a,A as o,v as i,s as u,t as c,u as d,g as p,k as f,F as n,i as m,x}from"./index-b48a414d.js";import{_}from"./points.c381a8e1.js";import{d as y,f as g}from"./s-layout.d6dcdc81.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=x;return e(),s(k,null,{default:l((()=>[r(k,null,{default:l((()=>[a(t.$slots,"top",{},void 0,!0)])),_:3}),r(k,{class:"ss-order-card-warp ss-flex ss-col-stretch ss-row-between bg-white",style:o([{borderRadius:b.radius+"rpx",marginBottom:b.marginBottom+"rpx"}])},{default:l((()=>[r(k,{class:"img-box ss-m-r-24"},{default:l((()=>[r(S,{class:"order-img",src:i(u).$url.cdn(b.img),mode:"aspectFill"},null,8,["src"])])),_:1}),r(k,{class:"box-right ss-flex-col ss-row-between",style:o([{width:b.titleWidth?b.titleWidth+"rpx":""}])},{default:l((()=>[b.title?(e(),s(k,{key:0,class:"title-text ss-line-2"},{default:l((()=>[c(d(b.title),1)])),_:1})):p("",!0),v.value?(e(),s(k,{key:1,class:"spec-text ss-m-t-8 ss-m-b-12"},{default:l((()=>[c(d(v.value),1)])),_:1})):p("",!0),r(k,{class:"groupon-box"},{default:l((()=>[a(t.$slots,"groupon",{},void 0,!0)])),_:3}),r(k,{class:"ss-flex"},{default:l((()=>[r(k,{class:"ss-flex ss-col-center"},{default:l((()=>[b.price&&Number(b.price)>0?(e(),s(k,{key:0,class:"price-text ss-flex ss-col-center",style:o([{color:b.priceColor}])},{default:l((()=>[b.virtualPirce?(e(),f(n,{key:0},[r(S,{src:_,style:{width:"30rpx",height:"30rpx"}}),c(" "+d(i(y)(b.price)),1)],64)):(e(),f(n,{key:1},[c("¥"+d(i(g)(b.price)),1)],64))])),_:1},8,["style"])):p("",!0),b.num?(e(),s(k,{key:1,class:"total-text ss-flex ss-col-center"},{default:l((()=>[c("x "+d(b.num),1)])),_:1})):p("",!0),a(t.$slots,"priceSuffix",{},void 0,!0)])),_:3})])),_:3}),r(k,{class:"tool-box"},{default:l((()=>[a(t.$slots,"tool",{},void 0,!0)])),_:3}),r(k,null,{default:l((()=>[a(t.$slots,"rightBottom",{},void 0,!0)])),_:3})])),_:3},8,["style"])])),_:3},8,["style"])])),_:3})}}},[["__scopeId","data-v-61cee7c8"]]);export{h as _};
|