import{d as l,w as n,j as s,z as o,C as r,Z as c}from"./index.394decd7.js";import{C as m}from"./index.9e0d46e4.js";import{I as u}from"./index.ae2dd816.js";import{L as d}from"./index.dc786267.js";import{s as h}from"./icon_student.c3c58354.js";import{C as p}from"./index.e6e212d8.js";import"./use-tab-status.723110ee.js";const f="_piNameSubject_6kbkl_1",g="_subject_6kbkl_6",b="_myFans_6kbkl_18",_="_userName_6kbkl_22",N="_userImg_6kbkl_28";var a={piNameSubject:f,subject:g,myFans:b,userName:_,userImg:N};function S(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!c(t)}var C=l({name:"my-fans",data(){return{list:[],dataShow:!0,loading:!1,finished:!1,params:{page:1,rows:20}}},mounted(){},methods:{async getList(){try{const t=this.params,e=await n.post("/api-teacher/teacher/queryMyFans",{data:{...t}});this.loading=!1;const i=e.data||{};if(this.list.length>0&&i.pageNo===1)return;this.list=this.list.concat(i.rows||[]),this.finished=i.pageNo>=i.totalPage,this.params.page=i.pageNo+1,this.dataShow=this.list.length>0}catch{this.dataShow=!1,this.finished=!0}}},render(){let t;return s("div",null,[s(p,null,null),this.dataShow?s(d,{loading:this.loading,"onUpdate:loading":e=>this.loading=e,finished:this.finished,finishedText:" ",class:[a.liveList,"mb12"],onLoad:this.getList},S(t=this.list.map(e=>s(m,{class:a.myFans,titleStyle:{paddingLeft:"8px"}},{icon:()=>s(u,{class:a.userImg,src:e.avatar||h,fit:"cover"},null),title:()=>s("div",{class:a.userInfo},[s("div",{class:a.userName},[o(" "),e.userName,o(" ")]),s("div",{class:a.piNameSubject},[s("span",{class:a.subject},[e.subjectName])])])})))?t:{default:()=>[t]}):s(r,{btnStatus:!1,classImgSize:"SMALL",tips:"\u6682\u65E0\u7C89\u4E1D"},null)])}});export{C as default};