index.wxml 3.7 KB

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