1 |
- import{d as l,e as n,i as s,A as o,C as r,$ as c}from"./index.7994470a.js";import{C as m}from"./index.777f4790.js";import{I as d}from"./index.2fbdc579.js";import{L as u}from"./index.ec643df3.js";import{i as h}from"./icon_student.bbb32387.js";import"./use-tab-status.00d7316c.js";const p="_piNameSubject_6kbkl_1",f="_subject_6kbkl_6",g="_myFans_6kbkl_18",b="_userName_6kbkl_22",_="_userImg_6kbkl_28";var a={piNameSubject:p,subject:f,myFans:g,userName:b,userImg:_};function N(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!c(t)}var I=l({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 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,[this.dataShow?s(u,{loading:this.loading,"onUpdate:loading":e=>this.loading=e,finished:this.finished,finishedText:" ",class:[a.liveList,"mb12"],onLoad:this.getList},N(t=this.list.map(e=>s(m,{class:a.myFans,titleStyle:{paddingLeft:"8px"}},{icon:()=>s(d,{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{I as default};
|