import{_ as S,b as I,g as N,c as F}from"./arctile-dc3d5f88.js";import{e as L,r as p,aj as A,G as B,o as P,P as n,Q as i,f as h,a7 as e,F as f,aa as D,a5 as V,ab as l,I as b,af as j,ac as q,ad as E}from"./vue-bf422dc1.js";import{j as _,_ as H}from"./index-c2dd6a24.js";import{f as w}from"./date-20546ee0.js";import T from"./Footer-da7b66f5.js";import Y from"./Header-e7807600.js";import"./ui-ba7aaa7e.js";import"./icons-a8498fb6.js";import"./libs-51817cd7.js";import"./plugins-ca970193.js";import"./others-9f318174.js";import"./echarts-bf9d612c.js";const z=r=>(q("data-v-78ca6aa0"),r=r(),E(),r),G={id:"index",class:"index-wrapper"},Q=j('<div class="container" data-v-78ca6aa0><div class="help-banner" data-v-78ca6aa0><div class="box" data-v-78ca6aa0><div class="bgimg1" data-v-78ca6aa0><img src="'+S+'" alt="" data-v-78ca6aa0></div><div class="bgimg2" data-v-78ca6aa0><img src="'+I+'" alt="" data-v-78ca6aa0></div><h1 data-v-78ca6aa0>帮助中心</h1><p class="d-none d-lg-block" data-v-78ca6aa0>新闻动态、公告通知、资讯您在这里就能看到</p></div></div></div>',1),R={class:"help"},J={class:"container"},K={class:"nav-tabs"},O=["onClick"],U={class:"help-box"},W={class:"container tab-content"},X={id:"help4",class:"tab-pane active"},Z={class:"question"},aa={class:"date"},ta={class:"txt"},ea=["onClick"],sa=["onClick"],oa=z(()=>e("ul",{class:"pagination"},null,-1)),ca=L({__name:"list",setup(r){const u=p([]),k=async()=>{const a=await N();if(a.code===1){const{data:s}=a;u.value=s}},c=p(""),C=A();B(()=>{const{alias:a}=C.params;a?c.value=a:(c.value="notice",_.push({name:"news_cate",params:{alias:"notice"}}))});const v=p([]),m=async a=>{const t=await F({alias:a,page:1,limit:10});if(t.code===1){const{data:o}=t;v.value=o.list}};m(c.value);const $=(a,s)=>{c.value=s.alias,m(c.value),_.push({name:a,params:{alias:s.alias}})},g=a=>{_.push({name:"article",params:{id:a.id}})},x=a=>{const s=Date.parse(a),t=new Date(s);return`${t.getDate()<10?`0${t.getDate()}`:t.getDate()}`},y=a=>{const s=Date.parse(a),t=new Date(s),o=`${t.getFullYear()}`;return`${`${t.getMonth()+1<10?`0${t.getMonth()+1}`:t.getMonth()+1}`}/${o}`},M=a=>{a=a.replace(/&amp;/g,"&"),a=a.replace(/&lt;/g,"<"),a=a.replace(/&gt;/g,">"),a=a.replace(/&quot;/g,'"'),a=a.replace(/&#039;/g,"'");const s=/<[^>]+>/g;return a.replace(s,"").substring(0,100)};return P(()=>{k()}),(a,s)=>(n(),i("div",G,[h(Y),Q,e("div",R,[e("div",J,[e("ul",K,[(n(!0),i(f,null,D(u.value,(t,o)=>(n(),i("li",{key:o,class:"nav-item",onClick:d=>$("news_cate",t)},[e("a",{class:V(["nav-link",c.value==t.alias?"active":""])},l(t.label),3)],8,O))),128))])]),e("div",U,[e("div",W,[e("div",X,[e("div",Z,[(n(!0),i(f,null,D(v.value,(t,o)=>(n(),i("div",{key:o,class:"notice-item"},[e("dl",aa,[e("dt",null,l(x(b(w)(t.create_at))),1),e("dd",null,l(y(b(w)(t.create_at))),1)]),e("dl",ta,[e("dt",null,[e("a",{onClick:d=>g(t)},l(t.title),9,ea)]),e("dd",null,l(M(t.content)),1)]),e("a",{class:"arrow",onClick:d=>g(t)},null,8,sa)]))),128)),oa])])])])]),h(T)]))}});const fa=H(ca,[["__scopeId","data-v-78ca6aa0"]]);export{fa as default};
