index.wxml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. <view class="searchFriend" bindtap="searchFriend">
  7. <image src="/static/search.png" />
  8. 找朋友
  9. </view>
  10. </view>
  11. <view class="box">
  12. <view class="follow" wx:for="{{list}}" wx:key="index">
  13. <view class="userInfo" bindtap="jumpUserInfo" data-uid='{{item.user.uid}}'>
  14. <view class='avatar'>
  15. <image class='avatar-image' src="{{ item.user.avatar }}" />
  16. <view class="user-profession">{{item.user.profession}}</view>
  17. </view>
  18. <view class="infoBox">
  19. <view class="nickName">
  20. {{item.user.nickName||item.user.eid}}
  21. </view>
  22. <view class="gmtCreated">{{filters.formatDate(item.fans.gmtCreated,4)}}</view>
  23. </view>
  24. </view>
  25. <view class="state" data-uid='{{item.user.uid}}' data-isEachOther="{{item.isEachOther}}" bindtap="setFans">
  26. <view class="stateText already" wx:if="{{currentType==1}}">
  27. {{item.isEachOther?'互相关注':'已关注'}}
  28. </view>
  29. <view class="stateText {{item.isEachOther?'already':'yet'}}" wx:else>
  30. {{item.isEachOther?'互相关注':'回关'}}
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. <emptyBg wx:if="{{nullList}}" message='快去寻找小伙伴吧!' />
  36. </view>