import{_ as G}from"./header.vue.d164657a.js";/* empty css                   */import{_ as z,a as C}from"./scroll-big-img.vue.c860f525.js";import{j as $,r as T,b as S,o as l,e as a,l as t,f as e,w as n,c4 as v,c5 as y,a5 as D,c as I,bT as p,u as m,b2 as j,bI as f,i as N,a4 as X,bJ as O,bM as Q,G as M,aK as Y,cc as Z,z as V,cd as J,ce as W,h as P,T as tt,c6 as et,a as st}from"./entry.5131710f.js";import{_ as E}from"./nuxt-link.70da972e.js";import{_ as ot}from"./QTooltip.b647fc93.js";import{u as k}from"./fetch.e31721f5.js";import{d as L}from"./date.e3014a19.js";import{_ as U}from"./_plugin-vue_export-helper.c27b6911.js";import{_ as nt}from"./QImg.12aee8a6.js";import{_ as it}from"./footer.65bcb465.js";import"./use-panel.3a368380.js";import"./touch.5ab90751.js";import"./position-engine.3cd7a5a0.js";import"./use-cache.e4206936.js";import"./use-fullscreen.df433772.js";import"./asyncData.78a6ebde.js";import"./qr-code.6bcd7842.js";/* empty css                   */const lt={class:"gt-sm full-width q-px-lg q-py-md bg-grey-1"},at={class:"row items-center justify-between q-px-lg"},ct={class:"row q-gutter-x-xl"},rt=t("h6",{class:"text-primary q-my-none column reverse"},[t("span",{class:"text-h5"},"学术活动"),t("span",{class:"text-weight-light text-subtitle1 text-grey"},"Academic Events")],-1),dt=t("a",{class:"text-secondary"},null,-1),_t={class:"q-mt-md overflow-hidden"},mt={class:"q-py-md row no-wrap q-gutter-x-md academic-events"},ut={class:"text-subtitle1 ellipsis-2-lines q-mb-md"},pt={class:"text-body2 text-grey"},ht={class:"ellipsis"},ft={class:"ellipsis"},wt={class:"ellipsis"},vt={class:"lt-md full-width"},xt={class:"q-px-md"},gt={class:"text-h6 text-primary text-bold q-mb-md row justify-between"},yt=["onClick"],bt={class:"q-pt-md"},qt={class:"text-body2 ellipsis-2-lines q-mb-md"},$t={class:"text-sm text-grey"},kt={class:"ellipsis"},Tt={class:"ellipsis"},Lt={class:"ellipsis"},Mt={__name:"academic-events",async setup(b){let i,h;const{data:w}=([i,h]=$(()=>k("/api/front/academic-event",{query:{action:"list",fetchCount:10,sortBy:"seq",descending:!1}},"$QgcwtDupvF")),i=await i,h(),i),u=T(w.value[0].id);function x(d){const c=Array.from(document.styleSheets).filter(r=>!r.href||r.href.startsWith(window.location.origin));for(let r=0;r<c.length;++r)for(let s=0;s<c[r].cssRules.length;++s)if(c[r].cssRules[s].type===window.CSSRule.KEYFRAMES_RULE&&c[r].cssRules[s].name===d)return c[r];return null}return S(()=>{const d=x("academic-events-scroll");d.deleteRule(0),d.deleteRule(0),d.insertRule(`.academic-events-calc {
                        animation: academic-events-scroll-calc ${15+w.value.length*3}s linear infinite alternate both;
                }`),d.insertRule(`@keyframes academic-events-scroll-calc {
            from {
              transform: translateX(100px);
            }
            to {
              transform: translateX(calc(90vw - 400px * ${w.value.length}));
            }
        }`);const c=document.querySelector(".academic-events");c.classList.remove("academic-events"),c.classList.add("academic-events-calc")}),(d,c)=>{const r=E,s=X,q=nt,g=O,o=Q,B=M,A=z,F=C,H=Y;return l(),a(v,null,[t("div",lt,[t("div",at,[t("div",ct,[e(r,{href:"/academic-event"},{default:n(()=>[rt]),_:1}),e(s,{vertical:"",inset:"",color:"primary",size:"5px"})]),dt]),t("div",_t,[t("div",mt,[(l(!0),a(v,null,y(m(w),_=>D((l(),I(o,{key:_._path,class:"shadow-5 cursor-pointer",style:{"flex-shrink":"0",width:"400px"},onClick:K=>("navigateTo"in d?d.navigateTo:m(j))({path:`/academic-event/post/${_.id}`})},{default:n(()=>[e(q,{src:_.cover},null,8,["src"]),e(g,null,{default:n(()=>[t("div",ut,p(_.topic),1),t("div",pt,[t("div",ht,"嘉宾: "+p(_.reporter),1),t("div",ft,"时间: "+p(_.time),1),t("div",wt,"地点: "+p(_.address),1)])]),_:2},1024)]),_:2},1032,["onClick"])),[[H]])),128))])])]),t("div",vt,[t("div",xt,[e(r,{href:"/academic-event"},{default:n(()=>[t("div",gt,[f("学术活动 "),e(B,{name:"more_horiz"})])]),_:1})]),e(F,{modelValue:m(u),"onUpdate:modelValue":c[0]||(c[0]=_=>N(u)?u.value=_:null),autoplay:!0,swipeable:"",infinite:"",animated:""},{default:n(()=>[(l(!0),a(v,null,y(m(w),_=>(l(),I(A,{key:_.id,name:_.id,class:"column no-wrap flex-center"},{default:n(()=>[D((l(),a("div",{class:"full-width q-mt-md",onClick:K=>("navigateTo"in d?d.navigateTo:m(j))({path:`/academic-event/post/${_.id}`})},[e(q,{src:_.cover,fit:"cover"},null,8,["src"]),t("div",bt,[t("div",qt,p(_.topic),1),t("div",$t,[t("div",kt,"嘉宾: "+p(_.reporter),1),t("div",Tt,"时间: "+p(_.time),1),t("div",Lt,"地点: "+p(_.address),1)])])],8,yt)),[[H]])]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"])])],64)}}},Rt=""+new URL("pku.e87e9238.webp",import.meta.url).href,Ht=""+new URL("tsinghua.f1c539f1.webp",import.meta.url).href,Dt=""+new URL("nankai.1933aa75.webp",import.meta.url).href,It=""+new URL("ynu.ae664556.webp",import.meta.url).href,jt=""+new URL("kmust.fb94bd08.jpg",import.meta.url).href,zt=""+new URL("ynnu.15d6b683.webp",import.meta.url).href,Ct={},St={class:"full-width row link-list items-center justify-around"},Nt=Z('<li class="col-md-2 col-4" data-v-e6954b15><a target="_blank" href="https://www.pku.edu.cn/" data-v-e6954b15><img src="'+Rt+'" alt="北京大学" data-v-e6954b15></a></li><li class="col-md-2 col-4" data-v-e6954b15><a target="_blank" href="https://www.tsinghua.edu.cn/" data-v-e6954b15><img src="'+Ht+'" alt="清华大学" data-v-e6954b15></a></li><li class="col-md-2 col-4" data-v-e6954b15><a target="_blank" href="https://www.nankai.edu.cn/" data-v-e6954b15><img src="'+Dt+'" alt="南开大学" data-v-e6954b15></a></li><li class="col-md-2 col-4" data-v-e6954b15><a target="_blank" href="https://www.ynu.edu.cn/" data-v-e6954b15><img src="'+It+'" alt="云南大学" data-v-e6954b15></a></li><li class="col-md-2 col-4" data-v-e6954b15><a target="_blank" href="https://www.kmust.edu.cn/" data-v-e6954b15><img src="'+jt+'" alt="昆明理工大学" data-v-e6954b15></a></li><li class="col-md-2 col-4" data-v-e6954b15><a target="_blank" href="https://www.ynnu.edu.cn" data-v-e6954b15><img src="'+zt+'" alt="云南师范大学" data-v-e6954b15></a></li>',6),Vt=[Nt];function Et(b,i){return l(),a("ul",St,Vt)}const Ut=U(Ct,[["render",Et],["__scopeId","data-v-e6954b15"]]),R=b=>(J("data-v-c11d0312"),b=b(),W(),b),Bt={class:"gt-sm row items-stretch full-width q-col-gutter-x-lg"},At={class:"col-4"},Ft=R(()=>t("h6",{class:"text-primary q-my-none"},[f(" 新闻动态 "),t("span",{class:"text-weight-light q-ml-sm text-subtitle1 text-grey"},"News")],-1)),Kt={class:"post-title"},Gt=["innerHTML"],Xt={class:"col-4"},Ot=R(()=>t("h6",{class:"text-primary q-my-none"},[f(" 科研动态 "),t("span",{class:"text-weight-light q-ml-sm text-subtitle1 text-grey"},"Research")],-1)),Qt={class:"row items-center q-my-md text-pink"},Yt={class:"post-title"},Zt=["innerHTML"],Jt={class:"col-4"},Wt=R(()=>t("h6",{class:"text-primary q-my-none"},[f(" 通知公告 "),t("span",{class:"text-weight-light q-ml-sm text-subtitle1 text-grey"},"Notice")],-1)),Pt={class:"post-title"},te=["innerHTML"],ee={class:"lt-md full-width q-mt-md"},se={class:"q-px-md"},oe={class:"text-h6 text-primary text-bold q-mb-md row justify-between"},ne={class:"text-body1 q-pl-sm"},ie={class:"q-py-xs"},le=["innerHTML"],ae={class:"col-1 text-grey-5"},ce={class:"q-mt-lg bg-grey-1 q-pa-md"},re={class:"text-h6 text-primary text-bold q-mb-md row justify-between"},de={class:"row items-center q-my-md text-pink"},_e={class:"text-body1 q-pl-sm"},me={class:"q-py-xs"},ue=["innerHTML"],pe={class:"col-1 text-grey-5"},he={class:"q-mt-lg bg-grey-1 q-pa-md"},fe={class:"text-h6 text-primary text-bold q-mb-md row justify-between"},we={class:"text-body1 q-pl-sm"},ve={class:"q-py-xs"},xe=["innerHTML"],ge={class:"col-1 text-grey-5"},ye={__name:"news-notice",async setup(b){let i,h;const w=T(0),{data:u}=([i,h]=$(()=>k("/api/front/news",{query:{action:"list",fetchCount:6,priority:!0}},"$DZOwZHxGO5")),i=await i,h(),i),{data:x}=([i,h]=$(()=>k("/api/front/news",{query:{action:"list",category:"notice",fetchCount:6,priority:!0}},"$9lb6KeytsI")),i=await i,h(),i),{data:d}=([i,h]=$(()=>k("/api/front/news",{query:{action:"list",category:"research",fetchCount:5,priority:!0}},"$XjSG6hgTnD")),i=await i,h(),i);return V(()=>{const{value:c}=d;return c&&c.length?c[w.value]:{}}),(c,r)=>{const s=E,q=ot,g=M;return l(),a(v,null,[t("div",Bt,[t("div",At,[e(s,{href:"/news/news"},{default:n(()=>[Ft]),_:1}),t("ul",Kt,[(l(!0),a(v,null,y(m(u),o=>(l(),a("li",null,[e(s,{href:`/news/news/post/${o.id}`,class:"text-body1 full-width ellipsis"},{default:n(()=>[t("span",{innerHTML:o.title},null,8,Gt),e(q,{anchor:"bottom start",self:"top start"},{default:n(()=>[f(p(o.title.replace(/<[^<>]+>/g,"")),1)]),_:2},1024)]),_:2},1032,["href"])]))),256))])]),t("div",Xt,[e(s,{href:"/news/research"},{default:n(()=>[Ot,t("div",Qt,[e(g,{name:"campaign",class:"q-mr-lg",size:"md"}),e(s,{href:"/lecture",class:"text-pink",style:{"font-size":"larger"}},{default:n(()=>[f('"西联讲坛" 汇总   ( 持续更新 )')]),_:1})])]),_:1}),t("ul",Yt,[(l(!0),a(v,null,y(m(d),o=>(l(),a("li",null,[e(s,{href:`/news/research/post/${o.id}`,class:"text-body1 full-width ellipsis"},{default:n(()=>[t("span",{innerHTML:o.title},null,8,Zt),e(q,{anchor:"bottom start",self:"top start"},{default:n(()=>[f(p(o.title.replace(/<[^<>]+>/g,"")),1)]),_:2},1024)]),_:2},1032,["href"])]))),256))])]),t("div",Jt,[e(s,{href:"/news/notice"},{default:n(()=>[Wt]),_:1}),t("ul",Pt,[(l(!0),a(v,null,y(m(x),o=>(l(),a("li",null,[e(s,{href:`/news/notice/post/${o.id}`,class:"text-body1 full-width ellipsis"},{default:n(()=>[t("span",{innerHTML:o.title},null,8,te),e(q,{anchor:"bottom start",self:"top start"},{default:n(()=>[f(p(o.title.replace(/<[^<>]+>/g,"")),1)]),_:2},1024)]),_:2},1032,["href"])]))),256))])])]),t("div",ee,[t("div",se,[e(s,{href:"/news/news"},{default:n(()=>[t("div",oe,[f(" 新闻动态 "),e(g,{name:"more_horiz"})])]),_:1}),t("ul",ne,[(l(!0),a(v,null,y(m(u),o=>(l(),a("li",ie,[e(s,{href:`/news/news/post/${o.id}`,class:"text-sm row justify-between"},{default:n(()=>[t("span",{class:"col ellipsis-2-lines",innerHTML:o.title},null,8,le),t("span",ae,p(m(L).formatDate(o.publishTime,"MM/DD")),1)]),_:2},1032,["href"])]))),256))])]),t("div",ce,[e(s,{href:"/news/research"},{default:n(()=>[t("div",re,[f("科研动态 "),e(g,{name:"more_horiz"})])]),_:1}),t("div",de,[e(g,{name:"campaign",class:"q-mr-lg",size:"md"}),e(s,{href:"/lecture",class:"text-pink",style:{"font-size":"larger"}},{default:n(()=>[f('"西联讲坛" 汇总   ( 持续更新 )')]),_:1})]),t("ul",_e,[(l(!0),a(v,null,y(m(d),o=>(l(),a("li",me,[e(s,{href:`/news/research/post/${o.id}`,class:"text-sm row justify-between"},{default:n(()=>[t("span",{class:"col ellipsis-2-lines",innerHTML:o.title},null,8,ue),t("span",pe,p(m(L).formatDate(o.publishTime,"MM/DD")),1)]),_:2},1032,["href"])]))),256))])]),t("div",he,[e(s,{href:"/news/notice"},{default:n(()=>[t("div",fe,[f("通知公告 "),e(g,{name:"more_horiz"})])]),_:1}),t("ul",we,[(l(!0),a(v,null,y(m(x),o=>(l(),a("li",ve,[e(s,{href:`/news/notice/post/${o.id}`,class:"text-sm row justify-between"},{default:n(()=>[t("span",{class:"col ellipsis-2-lines",innerHTML:o.title},null,8,xe),t("span",ge,p(m(L).formatDate(o.publishTime,"MM/DD")),1)]),_:2},1032,["href"])]))),256))])])])],64)}}},be=U(ye,[["__scopeId","data-v-c11d0312"]]),qe={id:"index-big-slider",class:"full-width"},$e={class:"absolute-bottom custom-caption"},ke={class:"text-h5 text-white text-center q-py-lg"},Te={__name:"scroll-big-img",setup(b){const i=T(0),h=[{title:"习近平总书记考察西南联大旧址",cover:"/static-img/index-img/1.png"},{title:"西南联合研究生院2025年开学典礼",cover:"/static-img/index-img/5.png"},{title:"西南联合研究生院2024年开学典礼",cover:"/static-img/index-img/4.png"},{title:"西南联合研究生院2023年开学典礼",cover:"/static-img/index-img/3.png"},{title:"西南联合研究生院2022级学生合影",cover:"/static-img/index-img/2.png"}];return(w,u)=>{const x=z,d=C,c=M;return l(),a("div",qe,[e(d,{modelValue:m(i),"onUpdate:modelValue":u[0]||(u[0]=r=>N(i)?i.value=r:null),arrows:"",animated:"",infinite:"",autoplay:"","transition-next":"slide-right","transition-prev":"slide-left"},{default:n(()=>[(l(),a(v,null,y(h,(r,s)=>e(x,{name:s,"img-src":r.cover},{default:n(()=>[t("div",$e,[t("div",ke,p(r.title),1)])]),_:2},1032,["name","img-src"])),64))]),_:1},8,["modelValue"]),e(c,{size:"lg",name:"keyboard_double_arrow_down",class:"down-hint gt-md"})])}}};const Le={class:"position-relative"},Me={id:"index-body",class:"column q-mt-xl q-px-lg full-width"},Re={class:"q-mx-auto q-px-md-md column items-center q-gutter-y-xl full-width"},Ye={__name:"index",setup(b){const i=P();st();let h=T(0);const w=V(()=>i.path==="/"&&h.value>0);return tt(w,(u,x)=>{u&&!x&&(document.body.style.overflow="hidden",setTimeout(()=>{document.body.style.overflow="auto"},1e3))}),S(()=>{window.addEventListener("scroll",u=>{document.body.style.overflow==="hidden"&&(u.target.documentElement.scrollTop=1),h.value=u.target.documentElement.scrollTop})}),(u,x)=>{const d=G,c=Te,r=be,s=Mt,q=Ut,g=it;return l(),a("div",{class:et({"plain-header":m(w)})},[e(d),t("div",Le,[e(c),t("div",Me,[t("div",Re,[e(r),e(s),e(q)]),e(g)])])],2)}}};export{Ye as default};
