index.wxml 1.4 KB

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