index.wxml 1.2 KB

123456789101112131415161718192021222324252627282930
  1. <view class="searchFriend">
  2. <view class="searchBox">
  3. <input class="input" placeholder="查找昵称/学号/手机号" bindblur="setSearch" />
  4. <view class="searchBtn" catchtap="search">
  5. <image src="/static/search-2.png" class="img" />
  6. </view>
  7. </view>
  8. <view class="follow" wx:for="{{list}}" wx:key="index">
  9. <view class="userInfo" bindtap="jumpUserInfo" data-uid='{{item.user.uid}}'>
  10. <view class='avatar'>
  11. <image class='avatar-image' src="{{ item.user.avatar }}" />
  12. <view class="user-profession">{{item.user.profession}}</view>
  13. </view>
  14. <view class="infoBox">
  15. <view class="nickName">
  16. {{item.user.nickName||item.user.eid}}
  17. </view>
  18. <view class="gmtCreated">{{filters.formatDate(item.fans.gmtCreated,4)}}</view>
  19. </view>
  20. </view>
  21. <view class="state" data-uid='{{item.user.uid}}' data-isEachOther="{{item.isEachOther}}" bindtap="setFans">
  22. <view class="stateText already" wx:if="{{currentType==1}}">
  23. {{item.isEachOther?'互相关注':'已关注'}}
  24. </view>
  25. <view class="stateText {{item.isEachOther?'already':'yet'}}" wx:else>
  26. {{item.isEachOther?'互相关注':'回关'}}
  27. </view>
  28. </view>
  29. </view>
  30. </view>