import{d as r,c as e,R as o,a as u,I as l}from"./vendor.925c905e.js";import{e as p,b as m}from"./index.2553a511.js";const h="_menuItem_rilpv_1",x="_icon1_rilpv_1",d="_icon2_rilpv_5",f="_icon3_rilpv_9",v="_icon4_rilpv_13",_="_icon5_rilpv_17",b="_active_rilpv_21";var i={menuItem:h,icon1:x,icon2:d,icon3:f,icon4:v,icon5:_,active:b};const a="userInfo";var g=r({name:"user-menu",data(){return{}},computed:{activeRoute(){return this.$route.name},acitveMenuRoute(){return this.$route.meta.activeMenu},menuList(){if(!this.$router.hasRoute(a))return;const n=this.$router.getRoutes().find(s=>s.name===a),c=[];return n==null||n.children.forEach(s=>{s.meta.hidden||c.push(s)}),c}},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(o,{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",i.menuItem,(t.name===this.activeRoute||t.name===this.acitveMenuRoute)&&i.active]},{default:()=>[e("i",{class:["w-7 h-7 mr-3.5",i["icon"+t.meta.index]]},null),t.meta.title]}))])}}),y="./assets/music_default.69ce8641.png",w="./assets/music_active.863ba65e.png",I="./assets/entry_default.7bf16857.png",R="./assets/entry_active.ced74dc8.png",C=r({name:"users",computed:{userInfo(){return p.user.data}},methods:{onDetail(t){t==="entry"?this.$router.push({path:"/teacherAuth"}):t==="music"&&this.$router.push({path:"/musicAuth"})}},render(){return e("div",{class:"bg-white rounded-[6px] text-center pt-[30px] pb-8 flex items-center flex-col"},[e("img",{src:m,class:"w-[68px] h-[68px] rounded-full"},null),e("p",{class:"text-[#1A1A1A] text-lg pt-4"},[this.userInfo.username]),e("div",{class:"pt-3 pb-6 flex"},[this.userInfo.entryFlag===1?e("img",{src:R,class:"h-[26px] cursor-pointer pr-2",onClick:()=>{this.onDetail("entry")}},null):e("img",{src:I,class:"h-[26px] cursor-pointer pr-2",onClick:()=>{this.onDetail("entry")}},null),this.userInfo.musicianFlag===1?e("img",{src:w,class:"h-[26px] cursor-pointer",onClick:()=>{this.onDetail("music")}},null):e("img",{src:y,class:"h-[26px] cursor-pointer",onClick:()=>{this.onDetail("music")}},null)]),e("div",{class:"text-[14px] text-[#666] flex items-center justify-center"},[e("span",{class:"flex items-center justify-center leading-6 cursor-pointer",onClick:()=>{this.$router.push("/userInfo/myFans")}},[u("\u7C89\u4E1D"),e("b",{class:"text-black text-xl pl-1 pb-[2px]"},[this.userInfo.fansNum||0])]),e("span",{class:"pl-3 flex items-center justify-center leading-6 cursor-pointer",onClick:()=>{this.$router.push("/userInfo/musicClass")}},[u("\u4E50\u8C31"),e("b",{class:"text-black text-xl pl-1 pb-[2px]"},[" ",this.userInfo.musicSheetNum||0])])])])}}),A=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(C,{class:"mb-3 user-shadow"},null),e(g,{class:"user-shadow"},null)]),e("div",{class:"w-[960px] bg-white rounded-[6px] user-shadow"},[e(l,null,null)])])}});export{A as default};
