1 |
- import{d as r,c as e,R as m,a as i,k as u,K as d,J as p}from"./vendor.9f3c6e4d.js";import{_ as g,a as f,b as h,c as b,d as x,e as v,f as E,g as I,h as k,i as y,j as B,k as C,l as V,m as w,n as F,o as j}from"./music_default.211e2c2b.js";import{_ as R}from"./icon_timer.ca726814.js";import{_ as A,a as $}from"./icon_vip_default.803a2c38.js";import{q as S,d as q}from"./index.1f84bfe1.js";import{O as D}from"./index.4d60d9e9.js";const M="_menuItem_1a8q1_1",L="_icon1_1a8q1_5",O="_icon2_1a8q1_9",P="_icon3_1a8q1_13",U="_icon4_1a8q1_17",N="_icon5_1a8q1_21",T="_active_1a8q1_25";var l={menuItem:M,icon1:L,icon2:O,icon3:P,icon4:U,icon5:N,active:T};const _="userInfo";var z=r({name:"user-menu",data(){return{}},computed:{activeRoute(){return this.$route.name},acitveMenuRoute(){return this.$route.meta.activeMenu},menuList(){if(!this.$router.hasRoute(_))return;const a=this.$router.getRoutes().find(o=>o.name===_),c=[];return a==null||a.children.forEach(o=>{o.meta.hidden||c.push(o)}),c}},render(){return e("div",{class:"bg-white rounded-[6px] text-center pt-6 flex items-center flex-col"},[this.menuList.map(s=>e(m,{to:s.path,class:["py-4 px-6 flex items-center text-lg font-semibold text-[#666] w-full last:mb-0 cursor-pointer",l.menuItem,(s.name===this.activeRoute||s.name===this.acitveMenuRoute)&&l.active]},{default:()=>[e("i",{class:["w-6 h-6 mr-[22px]",l["icon"+s.meta.index]]},null),s.meta.title]}))])}});const Y="_users_42v9b_1";var H={users:Y};const t=s=>{const n=`../../images/${s}`;return{"../../images/course_bg.png":g,"../../images/entry_active.png":f,"../../images/entry_default.png":h,"../../images/icon_cert.png":b,"../../images/icon_cert_default.png":x,"../../images/icon_king.png":v,"../../images/icon_live.png":E,"../../images/icon_live_default.png":I,"../../images/icon_member.png":k,"../../images/icon_member_default.png":y,"../../images/icon_music.png":B,"../../images/icon_music_default.png":C,"../../images/icon_timer.png":R,"../../images/icon_video.png":V,"../../images/icon_video_default.png":w,"../../images/icon_vip.png":A,"../../images/icon_vip_default.png":$,"../../images/music_active.png":F,"../../images/music_default.png":j}[n].default};var J=r({name:"users",computed:{userInfo(){return S.user.data}},data(){return{memberStatus:!1}},methods:{onDetail(s){s==="entry"?this.$router.push({path:"/teacherAuth"}):s==="music"&&this.$router.push({path:"/musicAuth"})},checkBadge(s){let n=!1;const{userInfo:a}=this;switch(s){case"STYLE":case"VIDEO":case"LIVE":case"MUSIC":a.tag&&(n=a.tag.indexOf(s)>-1);break;case"VIP":n=a.isVip>0;break;default:n=!1;break}return n}},render(){return e("div",{class:["text-center pb-8 relative overflow-hidden",H.users]},[e("div",{class:"bg-[#CFF2FF] absolute left-6 top-0 text-[#0089B9] text-xs py-0.5 px-2 rounded-[10px]"},[i("\u8001\u5E08")]),e("img",{src:this.userInfo.heardUrl||q,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.checkBadge("VIP")?t("icon_vip.png"):t("icon_vip_default.png"),class:"h-[26px]"},null)]),e("div",{class:"flex items-center justify-center pt-2 pb-10"},[e("span",{class:"text-base text-[#999]"},[i("\u52CB\u7AE0")]),e("img",{src:this.checkBadge("VIP")?t("icon_member.png"):t("icon_member_default.png"),class:"h-[26px] px-1"},null),e("img",{src:this.checkBadge("STYLE")?t("icon_cert.png"):t("icon_cert_default.png"),class:"h-[26px] px-1"},null),e("img",{src:this.checkBadge("VIDEO")?t("icon_video.png"):t("icon_video_default.png"),class:"h-[26px] px-1"},null),e("img",{src:this.checkBadge("LIVE")?t("icon_live.png"):t("icon_live_default.png"),class:"h-[26px] px-1"},null),e("img",{src:this.checkBadge("MUSIC")?t("icon_music.png"):t("icon_music_default.png"),class:"h-[26px] px-1"},null)]),e("div",{class:this.userInfo.entryFlag!==1||!this.checkBadge("VIP")?"mb-9":""},[this.userInfo.entryFlag!==1&&e(u,{round:!0,type:"primary",size:"large",plain:!0,class:"!px-4 !bg-white hover:!bg-[#2DC7AA]",onClick:()=>{this.onDetail("entry")}},{default:()=>[i("\u8FBE\u4EBA\u8BA4\u8BC1")]}),!this.checkBadge("VIP")&&e(u,{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] 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 border-r border-solid border-[#E7E6E6]",onClick:()=>{this.$router.push("/userInfo/myFans")}},[e("b",{class:"text-[#333333] text-[28px] pl-1 pb-1"},[this.userInfo.fansNum||0]),i("\u7C89\u4E1D")]),e("span",{class:"pl-3 flex items-center flex-col justify-center leading-6 cursor-pointer flex-1",onClick:()=>{this.$router.push("/userInfo/musicClass")}},[e("b",{class:"text-[#333333] text-[28px] pl-1 pb-1"},[this.userInfo.musicSheetNum||0]),i("\u4E50\u8C31")])]),e(d,{modelValue:this.memberStatus,"onUpdate:modelValue":s=>this.memberStatus=s,closeOnClickModal:!1,closeOnPressEscape:!1},{default:()=>[e(D,null,null)]})])}}),ee=r({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-10 min-h-full m-auto text-[#333] flex"},[e("div",{class:"w-[264px] "},[e(J,null,null),e(z,null,null)]),e("div",{class:"w-[737px] border-l border-l-[#E7E6E6]"},[e(p,null,null)])])])}});export{ee as default};
|