index.wxml 3.6 KB

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