index.wxml 1.5 KB

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