2 lines
1.8 KiB
JavaScript
2 lines
1.8 KiB
JavaScript
import{B as a,Q as s,g as e,j as t,h as l,l as o,c as i,w as n,i as r,o as c,b as u,a as p,m as d,F as f,e as m,t as _,f as g}from"./index-CZsuXyof.js";import{_ as h}from"./uni-icons.CE6FQOeI.js";import{o as v,r as w}from"./uni-app.es.Cv5-J_i3.js";import{_ as x}from"./_plugin-vue_export-helper.BCo6x5W8.js";/* empty css */const y=x({__name:"newFans",setup(x){const y=a(),b=s((()=>y.state.userinfo)),j=e({data:[],pageNum:1,pageSize:10,total:0});return v((()=>{t.video.getFansList({path:[b.value.id],query:{pageNum:j.pageNum,pageSize:j.pageSize}}).then((a=>{if(console.log(a),200==a.code)return j.pageNum&&(j.data.length=0),j.data.push(...a.rows.map((a=>a))),console.log(j.data),void(j.total=a.total);l.alert({content:a.msg,showCancel:!1})})).finally((()=>{uni.stopPullDownRefresh()}))})),(a,s)=>{const e=g,t=r,v=w(o("uni-icons"),h);return c(),i(t,{class:"appbw"},{default:n((()=>[u(t,{class:"listArea plr30"},{default:n((()=>[(c(!0),p(f,null,d(j.data,((a,s)=>(c(),i(t,{class:"item rows ptb30 c333 f32",key:s,onClick:s=>function(a){uni.navigateTo({url:l.setUrl("/pages/index/videoHome",{userId:a.id})})}(a)},{default:n((()=>[u(t,{class:"avatar fs0"},{default:n((()=>[u(e,{class:"wh100 cir",src:a.avatar,mode:"aspectFill"},null,8,["src"])])),_:2},1024),u(t,{class:"content f1 mlr20"},{default:n((()=>[u(t,{class:"name b"},{default:n((()=>[m(_(a.userNickname),1)])),_:2},1024),u(t,{class:"time mt10 c999 f22"},{default:n((()=>[m(_(a.createTime)+" 关注了你",1)])),_:2},1024)])),_:2},1024),u(t,{class:"fs0"},{default:n((()=>[u(v,{type:"right",color:"#999",size:"32rpx"})])),_:1})])),_:2},1032,["onClick"])))),128))])),_:1}),u(t,{class:"fill",style:{height:"60rpx"}})])),_:1})}}},[["__scopeId","data-v-9b4cf879"]]);export{y as default};
|