index.wxml 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <wxs src="../../utils/filter.wxs" module="filters" />
  2. <navigationBar></navigationBar>
  3. <import src="./index.skeleton" />
  4. <view class="messagePage">
  5. <view class="input" bindtap="setSearch">
  6. 查找朋友(昵称/学号/手机号)
  7. <view class="searchBtn">
  8. <image src="/static/search-2.png" class="img" />
  9. </view>
  10. </view>
  11. <view class="messageList">
  12. <view class="fixed">
  13. <view class="authority" bindtap="jump" data-url='friend'>
  14. <image src="/static/concern.png" class="avatar" />
  15. <view class="name">朋友</view>
  16. <view class="unread" wx:if="{{authorityMsg.newFansCount>0}}">{{authorityMsg.newFansCount}}</view>
  17. </view>
  18. <view class="authority" bindtap="jump" data-url='like'>
  19. <image src="/static/zan.png" class="avatar" />
  20. <view class="name">赞</view>
  21. <view class="unread" wx:if="{{authorityMsg.likeCount>0}}">{{authorityMsg.likeCount}}</view>
  22. </view>
  23. <view class="authority" bindtap="jump" data-url='comment'>
  24. <image src="/static/message3.png" class="avatar" />
  25. <view class="name">评论</view>
  26. <view class="unread" wx:if="{{authorityMsg.postsCount>0}}">{{authorityMsg.postsCount}}</view>
  27. </view>
  28. <view class="authority" bindtap="jump" data-url='notice'>
  29. <image src="/static/notice.png" class="avatar" />
  30. <view class="name">通知</view>
  31. <view class="unread" wx:if="{{authorityMsg.messageCount>0}}">{{authorityMsg.messageCount}}</view>
  32. </view>
  33. </view>
  34. <view class="base user" wx:for="{{authorityMsg.topList}}" wx:key="index" data-item='{{item}}'
  35. data-top="{{true}}" bind:longpress="onLongPress" hover-class='pressHover' bindtap="jumpChat">
  36. <image src="{{item.user.avatar}}" class="avatar" />
  37. <view class="body">
  38. <view class="name textOver">{{item.user.nickName||item.user.eid}}</view>
  39. <view class="info textOver">
  40. {{item.content}}
  41. </view>
  42. </view>
  43. <view class="right">
  44. <view class="date">{{filters.formatDate(item.gmtModified,5)}}</view>
  45. <view class="unread" wx:if="{{item.unReadCount>0}}">{{item.unReadCount}}</view>
  46. </view>
  47. </view>
  48. <view class="skeleton" wx:if="{{loading}}">
  49. <template is='skeleton'></template>
  50. </view>
  51. <block wx:else>
  52. <view class="base user" wx:for="{{list}}" wx:key="index" data-item='{{item}}' data-top="{{false}}"
  53. bind:longpress="onLongPress" hover-class='pressHover' bindtap="jumpChat">
  54. <image src="{{item.user.avatar}}" class="avatar" />
  55. <view class="body">
  56. <view class="name textOver">{{item.user.nickName||item.user.eid}}</view>
  57. <view class="info textOver">
  58. {{item.content}}
  59. </view>
  60. </view>
  61. <view class="right">
  62. <view class="date">{{filters.formatDate(item.gmtModified,5)}}</view>
  63. <view class="unread" wx:if="{{item.unReadCount>0}}">{{item.unReadCount}}</view>
  64. </view>
  65. </view>
  66. </block>
  67. </view>
  68. <view class="menuBg" bind:touchstart="cancelMenu" wx:if="{{menu.show}}"></view>
  69. <view class="menu" style="display: {{menu.show?'block':'none'}}; top:{{menu.top}}px;left:{{menu.left}}px">
  70. <view class="menu-one" bindtap="msgTopping">
  71. <image src="/static/istop.png" class="icon" />{{isTop?'取消置顶':'置顶该聊天'}}
  72. </view>
  73. <!-- <view bindtap="delMessage">
  74. <image src="/static/del.png" class="icon" />
  75. 删除该聊天
  76. </view> -->
  77. </view>
  78. </view>