import{_ as w,u as y,r as S,a as k,w as I,b as m,o as l,c,d,e as g,f as e,n as i,g as t,F as P,h as V,t as E,i as x,j as C,k as N,E as O,p as j,l as D,m as F,q as H,s as R}from"./index.699f1124.js";import{g as T}from"./index.efab2b32.js";const b=u=>(j("data-v-9daf0d6e"),u=u(),D(),u),W={class:"webHead"},q=b(()=>e("img",{src:F,class:"logo"},null,-1)),z={class:"menu"},M={class:"menu-item1"},U={class:"menu-item1 solution"},A={class:"show_box"},G=["onClick"],J={class:"menu-item1"},K={class:"menu-item1"},Q={class:"menu-item1"},X={class:"menu-item1 profile-menu-group",style:{display:"flex"}},Y={key:1,class:"avatar-wrapper"},Z=["src"],ee=b(()=>e("i",{class:"el-icon-caret-bottom"},null,-1)),te={__name:"index",setup(u){const _=y();S({});let s=k("");const p=C(),f=N(),v=k([]);(async()=>{const{data:a}=await T();v.value=a})(),I(()=>p.path,(a,o)=>{s.value=a}),s.value=p.path;function $(){const a=f.resolve({path:"/identity/index"});window.open(a.href,"_blank")}function r(a){s.value=a,window.open(a,"_blank")}function B(){O.confirm("\u786E\u5B9A\u6CE8\u9500\u5E76\u9000\u51FA\u7CFB\u7EDF\u5417\uFF1F","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{y().logOut().then(()=>{location.href="/"})}).catch(()=>{})}return(a,o)=>{const h=m("el-col"),L=m("el-row");return l(),c("div",W,[d(L,null,{default:g(()=>[d(h,{span:5},{default:g(()=>[q]),_:1}),d(h,{span:16},{default:g(()=>[e("ul",z,[e("li",M,[e("div",{class:i(["menu-item-tit",t(s)=="/"?"active":""]),onClick:o[0]||(o[0]=n=>r("/"))}," \u9996\u9875 ",2)]),e("li",U,[e("div",{class:i(["menu-item-tit",t(s).indexOf("/solution/")!=-1?"active":""])}," \u89E3\u51B3\u65B9\u6848 ",2),e("div",A,[(l(!0),c(P,null,V(v.value,n=>(l(),c("div",{class:i(["pointer",t(s)==`/solution/${n.id}`?"x_blue _active":""]),onClick:ce=>r(`/solution/${n.id}?name=${n.name}`)},E(n.name),11,G))),256))])]),e("li",J,[e("div",{class:i(["menu-item-tit",t(s)=="/innovate"?"active":""]),onClick:o[1]||(o[1]=n=>r("/innovate"))}," \u521B\u65B0\u670D\u52A1 ",2)]),e("li",K,[e("div",{class:i(["menu-item-tit",t(s)=="/activity"?"active":""]),onClick:o[2]||(o[2]=n=>r("/activity"))}," \u6D3B\u52A8\u62A5\u540D ",2)]),e("li",Q,[e("div",{class:i(["menu-item-tit",t(s)=="/about"?"active":""]),onClick:o[3]||(o[3]=n=>r("/about"))}," \u5173\u4E8E\u6211\u4EEC ",2)]),e("li",X,[t(_).avatar?(l(),c("div",Y,[e("img",{src:t(_).avatar,class:"user-avatar"},null,8,Z),ee])):(l(),c("div",{key:0,class:i(["menu-item-tit",t(s)=="/login"?"active":""]),onClick:o[4]||(o[4]=n=>r("/login"))}," \u767B\u5F55\u6CE8\u518C ",2)),t(_).avatar?(l(),c("div",{key:2,class:i(["menu-item-tit",t(s)=="/login"?"active":""]),onClick:$}," \u4E2A\u4EBA\u4E2D\u5FC3 ",2)):x("",!0),t(_).avatar?(l(),c("div",{key:3,class:i(["menu-item-tit",t(s)=="/login"?"active":""]),onClick:B}," \u9000\u51FA\u767B\u5F55 ",2)):x("",!0)])])]),_:1})]),_:1})])}}};var se=w(te,[["__scopeId","data-v-9daf0d6e"]]);const oe={class:"index"},ae={class:"content"},ne=H({name:"WebsiteLayout"}),ie=Object.assign(ne,{setup(u){const _=C();return(s,p)=>{const f=m("router-view"),v=m("el-backtop");return l(),c("div",oe,[d(t(se)),e("div",ae,[(l(),R(f,{key:t(_).fullPath}))]),d(v)])}}});var ue=w(ie,[["__scopeId","data-v-698ef14a"]]);export{ue as default};
