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