1 |
- import{d as o,c as e,bG as i,aY as l,ax as p,au as r,a as x,bH as m}from"./index.06cf5f04.js";const d="_menuItem_rilpv_1",h="_icon1_rilpv_1",f="_icon2_rilpv_5",v="_icon3_rilpv_9",_="_icon4_rilpv_13",b="_icon5_rilpv_17",w="_active_rilpv_21";var a={menuItem:d,icon1:h,icon2:f,icon3:v,icon4:_,icon5:b,active:w};const c="studentInfo";var R=o({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),u=[];return n==null||n.children.forEach(s=>{s.meta.hidden||u.push(s)}),u}},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(i,{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",a.menuItem,(t.name===this.activeRoute||t.name===this.acitveMenuRoute)&&a.active]},{default:()=>[e("i",{class:["w-7 h-7 mr-3.5",a["icon"+t.meta.index]]},null),t.meta.title]}))])}}),I=o({name:"users",computed:{userInfo(){return l.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:p,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",r()==="STUDENT"&&"cursor-pointer"],onClick:()=>{r()==="STUDENT"&&this.$router.push("/studentInfo/myFollow")}},[x("\u5173\u6CE8"),r()==="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])])])])}}),y=o({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(m,null,null)])])}});export{y as default};
|