|
|
-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 f,n as i,u as _,j as d,A as m,x as p}from"./index-d3a1e3c2.js";import{_ as b}from"./u-notice-bar.57fe320a.js";import{_ as v,o as y,a as j,b as x,r as C}from"./u-icon.78edcd83.js";import{_ as g}from"./u-parse.4f4c9fd9.js";/* empty css */const k=v({__name:"notice",setup(v){let k=t(""),A=t("");y((()=>{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"),b),l=C(p("u-parse"),g);return n(),u(s,{class:""},{default:r((()=>[f(s,{class:"sort"},{default:r((()=>[f(s,{class:"sortItem",style:i({color:1==_(F)?"#A5CF49":"#333333"}),onClick:a[0]||(a[0]=t=>_(I)(1))},{default:r((()=>[f(e,null,{default:r((()=>[d("平台资讯")])),_:1})])),_:1},8,["style"]),f(s,{class:"sortItem",onClick:a[1]||(a[1]=t=>_(I)(2)),style:i({color:2==_(F)?"#A5CF49":"#333333"})},{default:r((()=>[f(e,null,{default:r((()=>[d("平台规则")])),_:1})])),_:1},8,["style"])])),_:1}),f(s,{class:"notice"},{default:r((()=>[f(o,{text:_(h),color:"#fff",bgColor:"#A5CF49",fontSize:"16"},null,8,["text"])])),_:1}),f(s,{class:"content"},{default:r((()=>[1==_(F)?(n(),u(l,{key:0,content:_(k)},null,8,["content"])):(n(),u(l,{key:1,content:_(A)},null,8,["content"]))])),_:1})])),_:1})}}},[["__scopeId","data-v-7808cb32"]]);export{k as default};
|