import{a as f}from"./index.2cc74cc5.js";import{a as h}from"./diy.a6ea004c.js";import{d as m,a6 as x,r as v,b6 as A,e as d,f as r,g as s,t,F as E,j as b,m as l,R as j,S as F,_ as y}from"./index.0308b213.js";const g=c=>(j("data-v-9fec2aca"),c=c(),F(),c),T={class:"special-offer"},q={class:"header"},z={class:"header__left"},I={class:"title"},S={class:"desc"},w={class:"style"},L=g(()=>s("div",{class:"header__right"},[s("div",{class:"more"},[l("\u66F4\u591A"),s("i",{class:"tn-icon-right"})])],-1)),V={class:"content"},G={class:"image"},M=["src"],O={class:"title"},X={class:"price"},k={class:"current"},B=g(()=>s("span",{class:"unit"},"\xA5",-1)),C={class:"orignal"},D=g(()=>s("span",{class:"unit"},"\xA5",-1)),N=m({props:{agentId:null,uniacid:null,config:null},setup(c){const a=c,{OpPlatform:p}=x(),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"},{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"},{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"},{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"}]),_=async()=>{p.value==="agent"?h({agentid:a.agentId,uniacid:a.uniacid}).then(i=>{i.bargains&&i.bargains.length>0&&(n.value=i.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(i=>{i.bargains&&i.bargains.length>0&&(n.value=i.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 A(()=>{a.agentId&&_()}),(i,e)=>(d(),r("div",T,[s("div",q,[s("div",z,[s("div",I,t(a.config.title),1),s("div",S,t(a.config.desc),1),s("div",w,t(a.config.style),1)]),L]),s("div",V,[(d(!0),r(E,null,b(n.value,(o,u)=>(d(),r("div",{key:`special-good-${u}`,class:"item"},[s("div",G,[s("img",{class:"img",src:o.image},null,8,M)]),s("div",O,t(o.title),1),s("div",X,[s("span",k,[B,l(t(o.price),1)]),s("span",C,[D,l(t(o.orignal_price),1)])])]))),128))])]))}});const H=y(N,[["__scopeId","data-v-9fec2aca"]]);export{H as default};
