index.wxml 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <wxs src="../../utils/filter.wxs" module="filters" />
  2. <view class="searchFriend">
  3. <view class="searchBox">
  4. <input class="input" confirm-type='send' bindfocus='cleanPlaceholder' bindblur='setPlaceholder' placeholder="{{placeholderText}}" bindinput="setSearch"
  5. bindconfirm='searchUser' maxlength='20' value="{{text}}" />
  6. <view class="searchBtn" catchtap="searchUser">
  7. <image src="/static/search-2.png" class="img" />
  8. </view>
  9. </view>
  10. <view class="historyList" wx:if="{{text==''&&list.length==0}}">
  11. <view class="notes" wx:for="{{historySearch}}" wx:key="index" data-text="{{item}}" bindtap="searchUser">
  12. <view class="left">
  13. <image src="/static/clock.png" class="clock" />
  14. {{item}}
  15. </view>
  16. <view class="delete" data-text="{{item}}" catchtap="deleteHistory">
  17. ×
  18. </view>
  19. </view>
  20. <view class="clearHistory" bindtap="clearHistory" wx:if="{{historySearch.length>0}}">
  21. 清除搜索记录
  22. </view>
  23. </view>
  24. <view class="box">
  25. <view class="userBox" wx:for="{{list}}" wx:key="index" bindtap="jumpUserInfo" data-uid='{{item.uid}}'>
  26. <view class="identity">
  27. <image class='avatar' src='{{ item.avatar}}'></image>
  28. <view class="identityText">{{item.profession}}</view>
  29. </view>
  30. <view class="userRight">
  31. <view class="topBox">
  32. <view class="row">
  33. <view class="nickName textOver">{{item.nickName||item.eid }}</view>
  34. <view class="gradeText textOver" data-eid="{{item.eid}}" catchtap="clipboar">学号:{{item.eid}}
  35. <image src="/static/copy.png" class="copy" />
  36. </view>
  37. </view>
  38. <view class="row">
  39. <view class="count">
  40. 粉丝<text class="countNum textOver">{{filters.numFilter(item.fansAmount)|| '0'}}</text>
  41. </view>
  42. <view class="count">
  43. 作品<text class="countNum textOver">{{filters.numFilter(item.readAmount)|| 0}}</text>
  44. </view>
  45. <view class="count countEnd">
  46. 播放<text class="countNum textOver">{{filters.numFilter(item.playAmount) || 0}}</text>
  47. </view>
  48. </view>
  49. </view>
  50. <view class="btmBox">
  51. <view class="state" data-uid='{{item.uid}}' data-isEachOther="{{item.isEachOther}}"
  52. catchtap="setFans">
  53. <view class="stateText {{item.isEachOther||item.isFansOther?'already':'yet'}}">
  54. <image src="/static/follow_2.png" class="character" wx:if="{{item.isEachOther||item.isFansOther}}" />
  55. {{item.isEachOther?'互相关注':item.isFans?'回关':item.isFansOther?'已关注':'关注'}}
  56. </view>
  57. </view>
  58. <view class="follow isFans" data-user="{{item}}" catchtap="sendMsg">
  59. <image src="/static/sx.png" class="character" />
  60. <text>发私信</text>
  61. </view>
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. <emptyBg wx:if="{{nullList}}" message='没有找到小伙伴哦~' />
  67. </view>