index.wxml 1.1 KB

1234567891011121314151617181920212223
  1. <view class="followBox">
  2. <view class="screening">
  3. <view class="type {{currentType==3?'currentType':''}}" data-type="3" bindtap="setType">相互关注</view>
  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">
  9. <view class='avatar'>
  10. <image class='avatar-image' src="{{ item.user.avatar }}" bindtap="jumpUserInfo" data-uid='{{item.user.uid}}' />
  11. <view class="user-profession">{{item.user.profession}}</view>
  12. </view>
  13. <view class="nickName">
  14. {{item.user.nickName||item.user.eid}}
  15. </view>
  16. </view>
  17. <view class="state">
  18. <image class='stateImg' src="{{item.isEachOther?'/static/concernback.png':'/static/concerned.png'}}" />
  19. <view class="stateText">{{ item.isEachOther?'互相关注':'已关注' }}</view>
  20. </view>
  21. </view>
  22. <!-- <emptyBg wx:if="{{list.length==0}}" message='您还没有关注哦'></emptyBg> -->
  23. </view>