import{C as o}from"./index.83a2d91c.js";import{P as n}from"./index.1ced1a36.js";import{b as r,r as d}from"./index.2553a511.js";import{d as s,c as e,S as p,a3 as m,k as u,a as l,F as c,ag as f,ah as i}from"./vendor.925c905e.js";function g(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!m(t)}var h=s({name:"item",props:{item:{type:Object,default:{}}},computed:{subjects(){const{subjectName:t}=this.item;return t.split(",")}},render(){const t=this.item;return e("div",{class:["py-3 pl-3 pr-5 flex justify-between bg-white rounded-md  hover:drop-shadow-lg transition-all"]},[e("div",{class:"flex items-center"},[e("img",{src:r,class:"w-[54px] h-[54px] rounded-full"},null),e("div",{class:"pl-5"},[e("div",{class:"flex items-center"},[e("span",{class:"text-base pr-1 text-[#333]"},[t.userName])]),e("div",{class:"pt-1"},[this.subjects.map(a=>e(p,{effect:"dark",size:"small",color:"#FFF1DE",style:{borderColor:"#FFF1DE",color:"#FF8C00",marginRight:"5px"}},g(a)?a:{default:()=>[a]}))])])]),e("div",{class:"flex items-center"},[e(u,{type:"primary",plain:!0,size:"small",disabled:!0,class:"!bg-white hover:!text-[#2DC7AA] !border-[#2DC7AA]"},{default:()=>[l("\u5DF2\u5173\u6CE8")]})])])}}),x=s({name:"list",data(){return{pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},list:[],loading:!1,dataShow:!1}},mounted(){this.getList()},methods:{async getList(){this.loading=!0;try{const{data:t}=await d.post("/api-website/student/queryMyFollow",{requestType:"json",data:{page:this.pageInfo.page,rows:this.pageInfo.limit}});this.list=t.rows||[],this.pageInfo.total=t.total,t.total<=0&&(this.dataShow=!0)}catch{}this.dataShow?this.loading=!1:setTimeout(()=>{this.loading=!1},200)}},render(){return e(c,null,[e("div",{class:"px-3 pt-5"},[e(f,{loading:this.loading,animated:!0,class:" w-full m-auto flex flex-wrap",count:2},{default:()=>[e("div",{class:"flex flex-wrap"},[this.list.map(t=>e("div",{class:"basis-1/2"},[e(h,{class:"mb-4 mx-2",item:t},null)]))])],template:()=>e("div",{class:"basis-1/2"},[e("div",{class:" rounded-md bg-white py-4 px-[14px] mb-4 mx-2 flex items-center"},[e(i,{variant:"circle",style:{width:"54px",height:"54px"}},null),e("div",{class:"flex w-32 flex-col pl-2.5"},[e(i,{variant:"h3"},null),e(i,{variant:"p",style:{width:"60%",marginTop:"6px"}},null)])])])})]),this.dataShow&&e(o,null,null),e(n,{total:this.pageInfo.total,page:this.pageInfo.page,"onUpdate:page":t=>this.pageInfo.page=t,limit:this.pageInfo.limit,"onUpdate:limit":t=>this.pageInfo.limit=t,pageSizes:this.pageInfo.page_size,pagination:this.getList},null)])}}),F=s({name:"my-follow",data(){return{active:"MYFOLLOW"}},render(){return e("div",{class:"h-full bg-[#FAFAFA] rounded-md overflow-hidden"},[e("div",{class:"text-sm text-[#333] bg-white leading-none px-6 py-5 border-b border-b-[#E5E5E5]"},[l("\u5173\u6CE8\u7684\u8001\u5E08")]),e(x,null,null)])}});export{F as default};
