index.wxml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <wxs src="../../utils/filter.wxs" module="filters" />
  2. <view class="followBox">
  3. <view class="screening">
  4. <view class="type {{currentType==1?'currentType':''}}" data-type="1" bindtap="setType">我的关注({{c1}})</view>
  5. <view class="type {{currentType==2?'currentType':''}}" data-type="2" bindtap="setType">我的粉丝({{c2}}) <view
  6. class="noticeTips" wx:if="{{userInfo.newFansCount>0}}">{{userInfo.newFansCount}}</view>
  7. </view>
  8. <view class="searchFriend" bindtap="searchFriend">
  9. <image src="/static/search.png" />
  10. 找朋友
  11. </view>
  12. </view>
  13. <view class="box">
  14. <view class="userBox" wx:for="{{list}}" wx:key="index" bindtap="jumpUserInfo" data-uid='{{item.user.uid}}'>
  15. <view class="identity">
  16. <image class='avatar' src='{{ item.user.avatar}}'></image>
  17. <view class="identityText">{{item.user.profession}}</view>
  18. </view>
  19. <view class="userRight">
  20. <view class="topBox">
  21. <view class="row">
  22. <view class="nickName textOver">{{item.user.nickName||item.user.eid }}</view>
  23. <view class="gradeText textOver" data-eid="{{item.user.eid}}" catchtap="clipboar">学号:{{item.user.eid}}
  24. <image src="/static/copy.png" class="copy" />
  25. </view>
  26. </view>
  27. <view class="row">
  28. <view class="count">
  29. 粉丝<text class="countNum textOver">{{filters.numFilter(item.fansAmount)|| '0'}}</text>
  30. </view>
  31. <view class="count">
  32. 作品<text class="countNum textOver">{{filters.numFilter(item.readAmount)|| 0}}</text>
  33. </view>
  34. <view class="count countEnd">
  35. 播放<text class="countNum textOver">{{filters.numFilter(item.playAmount) || 0}}</text>
  36. </view>
  37. </view>
  38. </view>
  39. <view class="btmBox">
  40. <view class="state" data-uid='{{item.user.uid}}' data-isEachOther="{{item.isEachOther}}" catchtap="setFans">
  41. <view class="stateText already" wx:if="{{currentType==1}}">
  42. <image src="/static/follow_2.png" class="character" wx:if="{{item.isEachOther}}" />
  43. {{item.isEachOther?'互相关注':'已关注'}}
  44. </view>
  45. <view class="stateText {{item.isEachOther?'already':'yet'}}" wx:else>
  46. <image src="/static/follow_2.png" class="character" wx:if="{{item.isEachOther}}" />
  47. {{item.isEachOther?'互相关注':'回关'}}
  48. </view>
  49. </view>
  50. <view class="follow isFans" data-user="{{item.user}}" catchtap="sendMsg">
  51. <image src="/static/sx.png" class="character" />
  52. <text>发私信</text>
  53. </view>
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. <emptyBg wx:if="{{nullList}}" message='快去寻找小伙伴吧!' />
  59. </view>