import{d as M,u as q,k as C,l,r as _,_ as k,a as y,c as v,e as s,f as L,t as $,p as w,h as b,o as u}from"./index-C6Ampb56.js";import{_ as B}from"./banner.vue_vue_type_style_index_0_lang-CQMv34b5.js";import{_ as D,a as N}from"./close-CCyVJcEQ.js";const S=M({setup(){const t=q(),c=C(),e=l(d(t.state.recomMendation));function d(o){var n;let i=[];for(let a=0;a<o.length;a++)o[a].id!=((n=c.query)==null?void 0:n.id)&&i.push(o[a]);return i}return{store:t,recomMendationList:e}},components:{banner:B,recomMendation:D},asyncData({store:t,route:c}){var d;let e=_({});return(d=c.value.query)!=null&&d.categoryid?e=c.value:e=t.state.route,t.dispatch("getMenuList").then(()=>{var p,m,h,f,g;const o=_(t.state.menuList);let i=l(""),n=l(),a=_({});e.path.indexOf("_")&&(i.value=e.path.split("_")[0]);for(let r=0;r<o.length;r++)(e.path==o[r].path||i.value==o[r].path)&&(p=e.query)!=null&&p.categoryid&&!o[r].sname&&(n.value=r);return(m=e.query)!=null&&m.categoryid&&!e.query.dup&&(a={params:{categoryid:(h=e.query)==null?void 0:h.categoryid,pageNum:1,pageSize:1,order:"sortindex",articleid:(f=e.query)==null?void 0:f.id,id:(g=e.query)==null?void 0:g.id,details:!0},index:e.path,sub:n.value}),t.dispatch("getPageData",a)})}}),V={class:"pageContain"},j={class:"common-bradcrumb-section"},x={class:"product-content-section pt-60"},H={key:0,class:"container"},T={class:"row"},z={class:"col-lg-12 col-md-12 content"},E={class:"read_content mb-60"},F={class:"section-title text-left both-border mb-60 d-flex justify-content-between"},O={class:"title-tag2"},P=s("a",{href:"javascript:history.back(-1)"},[s("img",{src:N,alt:""})],-1),R={class:"row"},A={class:"col-lg-5 col-md-6"},G=["src"],I={class:"col-lg-7 col-md-6"},J=["innerHTML"];function K(t,c,e,d,o,i){const n=y("banner"),a=y("recomMendation");return u(),v("div",V,[s("section",j,[L(n)]),s("section",x,[t.store.state.pageContent.length>0?(u(),v("div",H,[s("div",T,[s("div",z,[s("div",E,[s("div",F,[s("span",O,$(t.store.state.pageContent[0].title),1),P]),s("div",R,[s("div",A,[s("img",{src:t.store.state.pageContent[0].image,alt:"",style:{width:"90%"}},null,8,G)]),s("div",I,[s("div",{innerHTML:t.store.state.pageContent[0].content},null,8,J)])])]),t.recomMendationList.length>0?(u(),w(a,{key:0,data:t.recomMendationList},null,8,["data"])):b("",!0)])])])):b("",!0)])])}const X=k(S,[["render",K]]);export{X as default};
