import{d as r,c as e,R as u,a as l,I as p}from"./vendor.925c905e.js";import{e as m,b as x,g as a}from"./index.2553a511.js";const d="_menuItem_rilpv_1",f="_icon1_rilpv_1",h="_icon2_rilpv_5",v="_icon3_rilpv_9",_="_icon4_rilpv_13",b="_icon5_rilpv_17",w="_active_rilpv_21";var o={menuItem:d,icon1:f,icon2:h,icon3:v,icon4:_,icon5:b,active:w};const c="studentInfo";var R=r({name:"user-menu",data(){return{}},computed:{activeRoute(){return this.$route.name},acitveMenuRoute(){return this.$route.meta.activeMenu},menuList(){if(!this.$router.hasRoute(c))return;const n=this.$router.getRoutes().find(s=>s.name===c),i=[];return n==null||n.children.forEach(s=>{s.meta.hidden||i.push(s)}),i}},render(){return e("div",{class:"bg-white rounded-[6px] text-center py-6 px-[18px] flex items-center flex-col"},[this.menuList.map(t=>e(u,{to:t.path,class:["py-2 px-6 mb-1.5 flex items-center text-base text-[#666] w-full last:mb-0 cursor-pointer",o.menuItem,(t.name===this.activeRoute||t.name===this.acitveMenuRoute)&&o.active]},{default:()=>[e("i",{class:["w-7 h-7 mr-3.5",o["icon"+t.meta.index]]},null),t.meta.title]}))])}}),I=r({name:"users",computed:{userInfo(){return m.user.data}},render(){return e("div",{class:"bg-white rounded-[6px] text-center pt-[30px] pb-8 flex items-center flex-col"},[e("img",{src:x,class:"w-[68px] h-[68px] rounded-full"},null),e("p",{class:"text-[#1A1A1A] text-lg pt-4"},[this.userInfo.username]),e("div",{class:"text-[14px] text-[#666] flex items-center justify-center"},[e("span",{class:["flex items-center justify-center leading-6",a()==="STUDENT"&&"cursor-pointer"],onClick:()=>{a()==="STUDENT"&&this.$router.push("/studentInfo/myFollow")}},[l("\u5173\u6CE8"),a()==="TEACHER"?e("b",{class:"text-black text-xl pl-1 pb-[2px]"},[this.userInfo.fansNum||0]):e("b",{class:"text-black text-xl pl-1 pb-[2px]"},[this.userInfo.starTeacherNum||0])])])])}}),E=r({name:"user-info",render(){return e("div",{class:"w-[1200px] mt-[100px] mb-14 min-h-full m-auto text-[#333] flex"},[e("div",{class:"w-56 mr-4"},[e(I,{class:"mb-3 user-shadow"},null),e(R,{class:"user-shadow"},null)]),e("div",{class:"w-[960px] bg-white rounded-[6px] user-shadow"},[e(p,null,null)])])}});export{E as default};
