index.wxml 3.7 KB

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