import{d as C,u as x,j as T,k as D,l as f,r as h,_ as w,a as z,b as F,c,e as s,f as $,F as _,g as m,o as l,m as b,n as y,t as g,w as k}from"./index-C6Ampb56.js";import{_ as M}from"./banner.vue_vue_type_style_index_0_lang-CQMv34b5.js";const N=C({setup(){const e=x(),p=T();D();const r=f({});let n=h({}),i=f();function d(o){o.id!=i.value&&(r.value=o,n={params:{categoryid:o.id,pageNum:1,pageSize:100,order:"sortindex"},index:e.state.currentPagePath,sub:e.state.sub},i.value=o.id,e.dispatch("getPageData",n))}function a(o){let t={path:"/cases_Read",query:{categoryid:o.categoryid,id:o.id,isUrlId:1}};e.commit("setRoute",t),p.push(t)}return{store:e,facilityClick:d,details:a}},components:{banner:M},asyncData({store:e,route:p}){let r=h(p.value);return e.dispatch("getMenuList").then(()=>{var d;const n=h(e.state.menuList);let i=h({params:{categoryid:0,pageNum:1,pageSize:100,order:"sortindex"},index:"",sub:0});for(let a=0;a<n.length;a++)if(!n[a].sname&&r.path==n[a].path)return i={params:{categoryid:n[a].id,pageNum:1,pageSize:100,order:"sortindex"},index:r.path,sub:a},(d=r.query)!=null&&d.categoryid?i.params.categoryid=r.query.categoryid:i.params.categoryid=n[a].children[0].id,e.dispatch("getPageData",i).then(()=>{e.commit("setColumnTypes",e.state.menuList[e.state.sub].children)})})}}),P={class:"pageContain"},I={class:"common-bradcrumb-section"},L={style:{background:"#F4F8FD"},class:"solutionType"},S={class:"container pc",style:{"text-align":"center"}},q=["onMouseover"],R={style:{width:"40px",height:"40px",overflow:"hidden",margin:"0 auto"}},B=["src"],H={class:"container mobile",style:{"text-align":"center"}},O=["onMouseover"],V={style:{width:"40px",height:"40px",overflow:"hidden",margin:"0 auto"}},j={class:"img",alt:""},E={class:"solution-section lazyContainer"},U={class:"container"},A=["onClick"],G={class:"solutionTitle text-left"},J={class:"row solutionInner"},K={class:"col-md-7"},Q=["innerHTML"],W={class:"pt-40 mb-20 text-left"},X={class:"col-md-5 text-center"},Y=["data-src"];function Z(e,p,r,n,i,d){const a=z("banner"),o=F("lazy");return l(),c("div",P,[s("section",I,[$(a)]),s("section",L,[s("div",S,[(l(!0),c(_,null,m(e.store.state.columnTypes,(t,u)=>(l(),c("div",{class:b(["solutionTypeOne",t.id==e.store.state.acitveId?"active":""]),onMouseover:v=>e.facilityClick(t),style:y({width:1/e.store.state.columnTypes.length*100+"%"}),key:u},[s("div",R,[s("img",{class:"img",src:t.imagePath,alt:""},null,8,B)]),s("p",null,g(t.categoryName),1)],46,q))),128))]),s("div",H,[(l(!0),c(_,null,m(e.store.state.columnTypes,(t,u)=>(l(),c("div",{class:b(["solutionTypeOne",t.id==e.store.state.acitveId?"active":""]),onMouseover:v=>e.facilityClick(t),style:y({width:1.5/e.store.state.columnTypes.length*100+"%"}),key:u},[s("div",V,[k(s("img",j,null,512),[[o,t.imagePath]])]),s("p",null,g(t.categoryName),1)],46,O))),128))])]),s("section",E,[(l(!0),c(_,null,m(e.store.state.pageContent,(t,u)=>(l(),c("div",{key:t.id,style:y([{background:u%2==1?"#F4F8FD":"#fff"},{padding:"40px 0"}])},[s("div",U,[s("div",{class:"solutionItem",onClick:v=>e.details(t)},[s("div",G,g(t.title),1),s("div",J,[s("div",K,[s("p",{innerHTML:t.lmtitle,class:"text-left"},null,8,Q),s("div",W,g(t.zhaiyao),1)]),s("div",X,[k(s("img",{alt:"","data-src":t.image},null,8,Y),[[o,t.image]])])])],8,A)])],4))),128))])])}const se=w(N,[["render",Z]]);export{se as default};
