import{d as f,c as w,o,B as k,w as u,b as e,D as d,ar as l,a as n,e as h,f as $,F as y,m as j,t as i,G as a,p as r,L as B,x as C}from"./index-CGub03FT.js";import{_ as F}from"./goods_image-Pc1dvvDz.js";import{_ as N}from"./widget-root.vue_vue_type_script_setup_true_lang-BlCzJxTV.js";const S={class:"goods-group"},V={class:"goods-item"},z={class:"text-[#59b870] font-medium"},A={class:"flex price-btn items-center justify-between"},_={class:"flex-1 flex items-baseline"},D={key:0,class:"text-tx-secondary text-xs"},E={class:"text-[#59b870] font-medium"},I={class:"flex justify-between items-center mt-3"},L={class:"line-clamp-2"},O={key:0,class:"flex justify-between items-center mt-2"},P={key:0,class:"text-tx-secondary text-xs"},G=f({__name:"content",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(t){const x=t,g=w(()=>{const{style:m,show_num:s}=x.content;if(m==1)return[...Array(s).keys()].map(()=>({}))});return(m,s)=>{const b=B;return o(),k(N,{styles:t.styles},{default:u(()=>[e("div",S,[e("div",{class:d(["goods-lists gap-y-2",{larger:t.content.goods_type==4,perline:t.content.goods_type==2,swiper:t.content.goods_type==3,lists:t.content.goods_type==1}]),style:l({"row-gap":`${t.styles.goods_vertical}px`,"column-gap":`${t.styles.goods_horizontal}px`})},[(o(!0),n(y,null,h($(g),(c,v)=>(o(),n("div",{class:"goods-wrap",key:v,style:l({background:t.styles.component_bg_color,"border-radius":`${t.styles.border_top_radius}px ${t.styles.border_top_radius}px ${t.styles.border_bottom_radius}px ${t.styles.border_bottom_radius}px`})},[e("div",V,[e("div",{class:"goods-image flex-none",style:l({"--img-radius":`${t.styles.image_radius}px`})},[j(b,{src:c==null?void 0:c.image,fit:"cover"},{error:u(()=>s[0]||(s[0]=[e("img",{class:"image-error",src:F,alt:""},null,-1)])),_:2},1032,["src"])],4),e("div",{class:d(["goods-info w-full",{"p-3":t.content.goods_type===1,"mt-2":t.content.goods_type===2}])},[t.content.goods_type!==4?(o(),n(y,{key:0},[t.content.show_title?(o(),n("div",{key:0,class:"mb-1 name",style:l({color:t.styles.title_color})},[e("div",{class:d(t.content.style==3?"line-clamp-2":"line-clamp-1")},i(c.name||"这里是商品标题中式推拿,泰式按摩"),3)],4)):a("",!0),t.content.show_server?(o(),n("div",{key:1,class:d(["text-xs mb-1",{"mt-4":t.content.goods_type===1}]),style:l({color:t.styles.server_color})},[s[1]||(s[1]=r(" 服务时间:")),e("span",z,i(c.server_time||"60"),1),s[2]||(s[2]=r("分钟 "))],6)):a("",!0)],64)):a("",!0),e("div",A,[e("div",_,[t.content.show_price?(o(),n("div",{key:0,class:"price font-medium mr-1",style:l({color:t.styles.price_color})},[s[3]||(s[3]=e("span",{class:"xs"},"¥",-1)),r(i(parseFloat(c.sell_price)||"0"),1)],4)):a("",!0),t.content.show_scribing_price?(o(),n("div",{key:1,class:"line-through text-xs",style:l({color:t.styles.scribing_price_color})}," ¥"+i(parseFloat(c.lineation_price)||"0"),5)):a("",!0)]),t.content.show_sales?(o(),n("div",D,"已售200")):a("",!0)]),t.content.goods_type===4?(o(),n(y,{key:1},[t.content.show_server?(o(),n("div",{key:0,class:"text-xs mt-3",style:l({color:t.styles.server_color})},[s[4]||(s[4]=r(" 服务时间:")),e("span",E,i(c.server_time||"60"),1),s[5]||(s[5]=r("分钟 "))],4)):a("",!0),e("div",I,[t.content.show_title?(o(),n("div",{key:0,class:"mb-1 name",style:l([{width:"250px"},{color:t.styles.title_color}])},[e("div",L,i(c.name||"这里是商品标题中式推拿,泰式按摩SPA, SPA"),1)],4)):a("",!0),e("div",{class:"buy-btn text-xs",style:l({"border-radius":`${t.styles.btn_radius}px`})},i(t.content.btn_text),5)])],64)):a("",!0)],2)]),t.content.goods_type==1?(o(),n("div",O,[t.content.show_sales?(o(),n("div",P," 超20人选择 ")):a("",!0),e("div",{class:"buy-btn text-xs",style:l({"border-radius":`${t.styles.btn_radius/2}px`})},i(t.content.btn_text),5)])):a("",!0)],4))),128))],6)])]),_:1},8,["styles"])}}}),J=C(G,[["__scopeId","data-v-49ac4be5"]]);export{J as default};