index.wxml 1.1 KB

1234567891011121314151617181920212223
  1. <view class="followBox">
  2. <view class="screening">
  3. <view class="type {{currentType==1?'currentType':''}}" data-type="1" bindtap="setType">我的关注</view>
  4. <view class="type {{currentType==2?'currentType':''}}" data-type="2" bindtap="setType">我的粉丝</view>
  5. </view>
  6. <view class="follow" wx:for="{{list}}" wx:key="*this" bindtap="jumpUserInfo" data-uid='{{item.user.uid}}'>
  7. <view class="userInfo">
  8. <view class='avatar'>
  9. <image class='avatar-image' src="{{ item.user.avatar }}" />
  10. <view class="user-profession">{{item.user.profession}}</view>
  11. </view>
  12. <view class="nickName">
  13. {{item.user.nickName||item.user.eid}}
  14. </view>
  15. </view>
  16. <view class="state">
  17. <image class='stateImg'
  18. src="{{currentType==1?'/static/concernback.png':item.isEachOther?'/static/concerned.png':'/static/concernRespond.png'}}" />
  19. <view class="stateText">{{ currentType==1?'已关注':item.isEachOther?'互相关注':'回关'}}</view>
  20. </view>
  21. </view>
  22. <emptyBg wx:if="{{nullList}}" message='快去寻找小伙伴吧!' />
  23. </view>