import{a as f}from"./index.2cc74cc5.js";import{a as m}from"./diy.a6ea004c.js";import{d as h,a6 as v,r as E,b6 as w,c as A,e as l,f as u,g as t,m as d,t as c,h as b,i as F,F as j,j as C,R as I,S as q,_ as y}from"./index.0308b213.js";const r=i=>(I("data-v-8068d1bf"),i=i(),q(),i),T={class:"recommend"},z={class:"titleBox"},S={class:"text"},V=r(()=>t("view",{class:"line"},null,-1)),B=r(()=>t("view",{class:"line line2"},null,-1)),L={class:"content tsContent"},G={class:"title"},M={class:"foodIconBox"},O=["src"],X={class:"qg"},k={class:"priceBox"},D={class:"price"},N=r(()=>t("text",null,"\xA5",-1)),P=h({props:{agentId:null,uniacid:null,config:null},setup(i){const a=i,{OpPlatform:g}=v(),n=E([{title:"\u7EF4\u591A\u5229\u4E9A\u9752",orignal_price:16.9,price:15.9,image:"http://qny.wdsp666.com/images/1/2022/05/V00f0qj60xxxTTxvjFvzLm0xXxfssz.jpeg?imageMogr2/thumbnail/750x",tag:"\u4ECA\u65E5\u4EF7"},{title:"\u7EF4\u591A\u5229\u4E9A\u9752",orignal_price:16.9,price:15.9,image:"http://qny.wdsp666.com/images/1/2022/05/V00f0qj60xxxTTxvjFvzLm0xXxfssz.jpeg?imageMogr2/thumbnail/750x",tag:"\u4ECA\u65E5\u4EF7"},{title:"\u7EF4\u591A\u5229\u4E9A\u9752",orignal_price:16.9,price:15.9,image:"http://qny.wdsp666.com/images/1/2022/05/V00f0qj60xxxTTxvjFvzLm0xXxfssz.jpeg?imageMogr2/thumbnail/750x",tag:"\u4ECA\u65E5\u4EF7"},{title:"\u7EF4\u591A\u5229\u4E9A\u9752",orignal_price:16.9,price:15.9,image:"http://qny.wdsp666.com/images/1/2022/05/V00f0qj60xxxTTxvjFvzLm0xXxfssz.jpeg?imageMogr2/thumbnail/750x",tag:"\u4ECA\u65E5\u4EF7"}]),p=async()=>{g.value==="agent"?m({agentid:a.agentId,uniacid:a.uniacid}).then(s=>{s.bargains&&s.bargains.length>0&&(n.value=s.bargains.map(e=>({id:e.goods_id,tag:"\u4ECA\u65E5\u4EF7",title:e.title,image:e.thumb,price:e.discount_price,orignal_price:e.price})))}):f({agentid:a.agentId,uniacid:a.uniacid}).then(s=>{s.bargains&&s.bargains.length>0&&(n.value=s.bargains.map(e=>({id:e.goods_id,tag:"\u4ECA\u65E5\u4EF7",title:e.title,image:e.thumb,price:e.discount_price,orignal_price:e.price})))})};return w(()=>{a.agentId&&p()}),(s,e)=>{const _=A("scroll-view");return l(),u("view",T,[t("view",z,[t("view",S,[V,d(c(a.config.title),1),B])]),b(_,{class:"scroll-view_H","scroll-x":"true"},{default:F(()=>[t("view",L,[(l(!0),u(j,null,C(n.value,(o,x)=>(l(),u("view",{class:"col",key:`special-good-${x}`},[t("view",G,c(o.title||""),1),t("view",M,[t("img",{class:"foodIcon",src:o.image},null,8,O),t("view",X,c(o.tag),1),t("view",k,[t("view",D,[N,d(c(o.price),1)])])])]))),128))])]),_:1})])}}});const J=y(P,[["__scopeId","data-v-8068d1bf"]]);export{J as default};
