import{a as f}from"./index.2cc74cc5.js";import{a as m}from"./diy.a6ea004c.js";import{d as x,a6 as h,r as v,b6 as E,e as l,f as u,g as t,m as g,t as c,F as b,j as w,R as A,S as F,_ as j}from"./index.0308b213.js";const r=i=>(A("data-v-f0b4c6b7"),i=i(),F(),i),y={class:"recommend"},I={class:"titleBox"},T={class:"text"},q=r(()=>t("view",{class:"line"},null,-1)),z=r(()=>t("view",{class:"line line2"},null,-1)),S={class:"content"},C={class:"left"},L={class:"top"},V={class:"center"},G={class:"bottom"},B=r(()=>t("text",null,"\xA5",-1)),M={class:"right"},O=["src"],X=x({props:{agentId:null,uniacid:null,config:null},setup(i){const a=i,{OpPlatform:p}=h(),n=v([{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"}]),d=async()=>{p.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 E(()=>{a.agentId&&d()}),(s,e)=>(l(),u("view",y,[t("view",I,[t("view",T,[q,g(c(a.config.title),1),z])]),t("view",S,[(l(!0),u(b,null,w(n.value,(o,_)=>(l(),u("view",{class:"col",key:`special-good-${_}`},[t("view",C,[t("view",L,c(o.title),1),t("view",V,c(o.tag),1),t("view",G,[B,g(c(o.price),1)])]),t("view",M,[t("img",{class:"foodIcon",src:o.image},null,8,O)])]))),128))])]))}});const P=j(X,[["__scopeId","data-v-f0b4c6b7"]]);export{P as default};
