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