index.d284a443.js 4.1 KB

1
  1. import{d as o,c as e,R as c,a as i,k as m,K as d,J as f}from"./vendor.f5bf56e4.js";import{_ as p,a as g,b,c as x,d as h,e as v,f as w,g as y,h as R,i as E,j as I,k as j,l as F,m as V,n as k,o as q}from"./music_default.211e2c2b.js";import{_ as C}from"./icon_timer.ca726814.js";import{_ as $,a as A}from"./icon_vip_default.803a2c38.js";import{c as M,f as O}from"./index.ebd578f0.js";import{O as S}from"./index.190a00e5.js";const U="_menuItem_1a8q1_1",B="_icon1_1a8q1_5",L="_icon2_1a8q1_9",N="_icon3_1a8q1_13",T="_icon4_1a8q1_17",z="_icon5_1a8q1_21",D="_active_1a8q1_25";var a={menuItem:U,icon1:B,icon2:L,icon3:N,icon4:T,icon5:z,active:D};const l="studentInfo";var H=o({name:"user-menu",data(){return{}},computed:{activeRoute(){return this.$route.name},acitveMenuRoute(){return this.$route.meta.activeMenu},menuList(){if(!this.$router.hasRoute(l))return;const t=this.$router.getRoutes().find(n=>n.name===l),u=[];return t==null||t.children.forEach(n=>{n.meta.hidden||u.push(n)}),u}},render(){return e("div",{class:"bg-white rounded-[6px] text-center pt-6 flex items-center flex-col"},[this.menuList.map(s=>e(c,{to:s.path,class:["py-4 px-6 flex items-center text-lg font-semibold text-[#666] w-full last:mb-0 cursor-pointer",a.menuItem,(s.name===this.activeRoute||s.name===this.acitveMenuRoute)&&a.active]},{default:()=>[e("i",{class:["w-6 h-6 mr-[22px]",a["icon"+s.meta.index]]},null),s.meta.title]}))])}});const J="_users_9pz0x_1";var K={users:J};const _=s=>{const r=`../../../user-info/images/${s}`;return{"../../../user-info/images/course_bg.png":p,"../../../user-info/images/entry_active.png":g,"../../../user-info/images/entry_default.png":b,"../../../user-info/images/icon_cert.png":x,"../../../user-info/images/icon_cert_default.png":h,"../../../user-info/images/icon_king.png":v,"../../../user-info/images/icon_live.png":w,"../../../user-info/images/icon_live_default.png":y,"../../../user-info/images/icon_member.png":R,"../../../user-info/images/icon_member_default.png":E,"../../../user-info/images/icon_music.png":I,"../../../user-info/images/icon_music_default.png":j,"../../../user-info/images/icon_timer.png":C,"../../../user-info/images/icon_video.png":F,"../../../user-info/images/icon_video_default.png":V,"../../../user-info/images/icon_vip.png":$,"../../../user-info/images/icon_vip_default.png":A,"../../../user-info/images/music_active.png":k,"../../../user-info/images/music_default.png":q}[r].default};var P=o({name:"users",computed:{userInfo(){return M.user.data}},data(){return{memberStatus:!1}},render(){return e("div",{class:["text-center pb-8 relative overflow-hidden",K.users]},[e("div",{class:"bg-[#FFE7CF] absolute left-6 top-0 text-[#AB5400] text-xs py-0.5 px-2 rounded-[10px]"},[i("\u5B66\u751F")]),e("img",{src:this.userInfo.heardUrl||O,class:"w-[68px] h-[68px] rounded-full border-2 border-[#2DC7AA] border-solid mt-6 mx-auto object-cover"},null),e("p",{class:"text-[#333] text-lg font-semibold pt-4 flex items-center justify-center"},[this.userInfo.username,e("img",{src:this.userInfo.isVip?_("icon_vip.png"):_("icon_vip_default.png"),class:"h-[26px]"},null)]),e("div",{class:this.userInfo.isVip!==1?"mt-5":""},[this.userInfo.isVip!==1&&e(m,{round:!0,type:"primary",size:"large",class:"!px-4",onClick:()=>{this.memberStatus=!0}},{default:()=>[i("\u5F00\u901A\u4F1A\u5458")]})]),e("div",{class:"text-base text-[#999] mx-[25px] mt-9 flex items-center justify-center pt-10 border-t border-solid border-[#E7E6E6]"},[e("span",{class:"flex items-center justify-center flex-col leading-6 cursor-pointer flex-1",onClick:()=>{this.$router.push("/studentInfo/myFollow")}},[e("b",{class:"text-[#333333] text-[28px] pl-1 pb-1"},[this.userInfo.starTeacherNum||0]),i("\u5173\u6CE8")])]),e(d,{modelValue:this.memberStatus,"onUpdate:modelValue":s=>this.memberStatus=s,closeOnClickModal:!1,closeOnPressEscape:!1},{default:()=>[e(S,null,null)]})])}}),ee=o({name:"user-info",render(){return e("div",{class:"bg-[#F6F7F8] overflow-hidden"},[e("div",{class:"w-[1002px] mt-[86px] rounded-[10px] bg-white py-5 overflow-hidden mb-14 min-h-full m-auto text-[#333] flex"},[e("div",{class:"w-[264px] "},[e(P,null,null),e(H,null,null)]),e("div",{class:"w-[737px] border-l border-l-[#E7E6E6]"},[e(f,null,null)])])])}});export{ee as default};