import{r as g}from"./index.2cc74cc5.js";import{r as _}from"./diy.a6ea004c.js";import{d as p,a6 as h,r as f,b6 as C,e as n,f as d,g as t,t as a,F as B,j as v,R as S,S as E,m as j,_ as x}from"./index.0308b213.js";const q=i=>(S("data-v-3cfb3602"),i=i(),E(),i),F={class:"optimization"},b={class:"header"},y={class:"header__left"},A={class:"title"},I={class:"desc"},X=q(()=>t("div",{class:"header__right"},[t("div",{class:"more"},[j("\u66F4\u591A"),t("i",{class:"tn-icon-right"})])],-1)),O={class:"content"},w={class:"image"},z=["src"],T={class:"title"},K={class:"desc"},M=p({props:{agentId:null,uniacid:null,config:null},setup(i){const o=i,{OpPlatform:l}=h(),c=f([{title:"\u998B\u5634\u9C7C",desc:"\u946B\u9F0E\u5C1A\u998B\u5634\u9C7C\u5728\u6C42\u5B9E\u5B66\u9662",image:"http://qny.wdsp666.com/images/1/2020/09/qx1K1oE1j6sTjfXWFd07eoO061XqZS.jpg?imageMogr2/thumbnail/750x"},{title:"\u998B\u5634\u9C7C",desc:"\u946B\u9F0E\u5C1A\u998B\u5634\u9C7C\u5728\u6C42\u5B9E\u5B66\u9662",image:"http://qny.wdsp666.com/images/1/2020/09/qx1K1oE1j6sTjfXWFd07eoO061XqZS.jpg?imageMogr2/thumbnail/750x"},{title:"\u998B\u5634\u9C7C",desc:"\u946B\u9F0E\u5C1A\u998B\u5634\u9C7C\u5728\u6C42\u5B9E\u5B66\u9662",image:"http://qny.wdsp666.com/images/1/2020/09/qx1K1oE1j6sTjfXWFd07eoO061XqZS.jpg?imageMogr2/thumbnail/750x"},{title:"\u998B\u5634\u9C7C",desc:"\u946B\u9F0E\u5C1A\u998B\u5634\u9C7C\u5728\u6C42\u5B9E\u5B66\u9662",image:"http://qny.wdsp666.com/images/1/2020/09/qx1K1oE1j6sTjfXWFd07eoO061XqZS.jpg?imageMogr2/thumbnail/750x"}]),r=async()=>{l.value==="agent"?_({agentid:o.agentId,uniacid:o.uniacid}).then(s=>{s.recommendStores&&s.recommendStores.length>0&&(c.value=s.recommendStores.map(e=>({id:e.id,title:e.title,logo:e.logo,image:e.thumb,desc:e.content})))}):g({agentid:o.agentId,uniacid:o.uniacid}).then(s=>{s.recommendStores&&s.recommendStores.length>0&&(c.value=s.recommendStores.map(e=>({id:e.id,title:e.title,logo:e.logo,image:e.thumb,desc:e.content})))})};return C(()=>{o.agentId&&r()}),(s,e)=>(n(),d("div",F,[t("div",b,[t("div",y,[t("div",A,a(o.config.title),1),t("div",I,a(o.config.desc),1)]),X]),t("div",O,[(n(!0),d(B,null,v(c.value,(u,m)=>(n(),d("div",{key:`optimization-${m}`,class:"item"},[t("div",w,[t("img",{class:"img",src:u.image},null,8,z)]),t("div",T,a(u.title),1),t("div",K,a(u.desc),1)]))),128))])]))}});const D=x(M,[["__scopeId","data-v-3cfb3602"]]);export{D as default};
