|
|
-import{r as t,g as a,s as e,a as s,L as o,e as l,o as n,f as u,w as r,i as c,h as i,n as _,u as f,j as d,A as m,x as p}from"./index-8f185d2b.js";import{_ as v}from"./u-notice-bar.ee3f2e0f.js";import{_ as y,o as b,a as j,b as x,r as C}from"./u-icon.098e319a.js";import{_ as g}from"./u-parse.d965ba50.js";/* empty css */const k=y({__name:"notice",setup(y){let k=t(""),A=t("");b((()=>{a().then((t=>{e({title:t.data.name})})),s().then((t=>{k.value=t.data.platform_information,A.value=t.data.platform_rules})),h.value=o().globalData.config.infomation_notice})),j((()=>{}));let h=t(""),F=t(1),I=t=>{F.value!=t&&(F.value=t)};return x((()=>{setTimeout((function(){l()}),1e3)})),(t,a)=>{const e=m,s=c,o=C(p("u-notice-bar"),v),l=C(p("u-parse"),g);return n(),u(s,{class:""},{default:r((()=>[i(s,{class:"sort"},{default:r((()=>[i(s,{class:"sortItem",style:_({color:1==f(F)?"#A5CF49":"#333333"}),onClick:a[0]||(a[0]=t=>f(I)(1))},{default:r((()=>[i(e,null,{default:r((()=>[d("平台资讯")])),_:1})])),_:1},8,["style"]),i(s,{class:"sortItem",onClick:a[1]||(a[1]=t=>f(I)(2)),style:_({color:2==f(F)?"#A5CF49":"#333333"})},{default:r((()=>[i(e,null,{default:r((()=>[d("平台规则")])),_:1})])),_:1},8,["style"])])),_:1}),i(s,{class:"notice"},{default:r((()=>[i(o,{text:f(h),color:"#fff",bgColor:"#A5CF49",fontSize:"16"},null,8,["text"])])),_:1}),i(s,{class:"content"},{default:r((()=>[1==f(F)?(n(),u(l,{key:0,content:f(k)},null,8,["content"])):(n(),u(l,{key:1,content:f(A)},null,8,["content"]))])),_:1})])),_:1})}}},[["__scopeId","data-v-7808cb32"]]);export{k as default};
|