index.47189143.js 1.7 KB

1
  1. import{d as l,y as n,j as s,A as o,C as r,$ as c}from"./ResizeObserver.es.f28023e0.js";import{C as m}from"./index.3b2e70c8.js";import{I as u}from"./index.7a1af785.js";import{L as d}from"./index.79f59946.js";import{s as h}from"./icon_student.c3c58354.js";import{C as p}from"./index.bd375ca9.js";import"./use-tab-status.653933d8.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 y(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},y(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};