var c=Object.defineProperty;var n=Object.getOwnPropertySymbols;var d=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var o=(t,s,e)=>s in t?c(t,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[s]=e,l=(t,s)=>{for(var e in s||(s={}))d.call(s,e)&&o(t,e,s[e]);if(n)for(var e of n(s))u.call(s,e)&&o(t,e,s[e]);return t};import{d as m,a,w as h,q as p,I as f,j as r,x as g}from"./vendor.a0144ce9.js";/* empty css               *//* empty css               *//* empty css               */import{i as b}from"./icon_student.bbb32387.js";import{r as j,C as _}from"./index.3d95a92c.js";const N="_piNameSubject_6kbkl_1",S="_subject_6kbkl_6",y="_myFans_6kbkl_18",k="_userName_6kbkl_22",v="_userImg_6kbkl_28";var i={piNameSubject:N,subject:S,myFans:y,userName:k,userImg:v};function x(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!g(t)}var M=m({name:"my-fans",data(){return{list:[],dataShow:!0,loading:!1,finished:!1,params:{page:1,rows:20}}},mounted(){},methods:{async getList(){try{let t=this.params;const s=await j.post("/api-teacher/teacher/queryMyFans",{data:l({},t)});this.loading=!1;const e=s.data||{};if(this.list.length>0&&e.pageNo===1)return;this.list=this.list.concat(e.rows||[]),this.finished=e.pageNo>=e.totalPage,this.params.page=e.pageNo+1,this.dataShow=this.list.length>0}catch{this.dataShow=!1,this.finished=!0}}},render(){let t;return a("div",null,[this.dataShow?a(h,{loading:this.loading,"onUpdate:loading":s=>this.loading=s,finished:this.finished,finishedText:" ",class:[i.liveList,"mb12"],onLoad:this.getList},x(t=this.list.map(s=>a(p,{class:i.myFans,titleStyle:{paddingLeft:"8px"}},{icon:()=>a(f,{class:i.userImg,src:s.avatar||b,fit:"cover"},null),title:()=>a("div",{class:i.userInfo},[a("div",{class:i.userName},[r(" "),s.userName,r(" ")]),a("div",{class:i.piNameSubject},[a("span",{class:i.subject},[s.subjectName])])])})))?t:{default:()=>[t]}):a(_,{btnStatus:!1,classImgSize:"SMALL",tips:"\u6682\u65E0\u7C89\u4E1D"},null)])}});export{M as default};
