index.wxml 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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>
  8. <view class="messageList">
  9. <view class="fixed">
  10. <view class="authority" bindtap="jump" data-url='like'>
  11. <image src="/static/zan.png" class="avatar" />
  12. <view class="name">赞</view>
  13. <view class="unread" wx:if="{{authorityMsg.likeCount>0}}">{{authorityMsg.likeCount}}</view>
  14. </view>
  15. <view class="authority" bindtap="jump" data-url='comment'>
  16. <image src="/static/message3.png" class="avatar" />
  17. <view class="name">评论</view>
  18. <view class="unread" wx:if="{{authorityMsg.postsCount>0}}">{{authorityMsg.postsCount}}</view>
  19. </view>
  20. <view class="authority" bindtap="jump" data-url='notice'>
  21. <image src="/static/notice.png" class="avatar" />
  22. <view class="name">通知</view>
  23. <view class="unread" wx:if="{{authorityMsg.messageCount>0}}">{{authorityMsg.messageCount}}</view>
  24. </view>
  25. </view>
  26. <view class="base user" wx:for="{{authorityMsg.topList}}" wx:key="index" data-item='{{item}}' data-top="{{true}}"
  27. bind:longpress="onLongPress" hover-class='pressHover' bindtap="jumpChat">
  28. <image src="{{item.user.avatar}}" class="avatar" />
  29. <view class="body">
  30. <view class="name textOver">{{item.user.nickName||item.user.eid}}</view>
  31. <view class="info textOver">
  32. {{item.content}}
  33. </view>
  34. </view>
  35. <view class="right">
  36. <view class="date">{{filters.formatDate(item.gmtModified,5)}}</view>
  37. <view class="unread" wx:if="{{item.unReadCount>0}}">{{item.unReadCount}}</view>
  38. </view>
  39. </view>
  40. <view class="skeleton" wx:if="{{loading}}">
  41. <template is='skeleton'></template>
  42. </view>
  43. <block wx:else>
  44. <view class="base user" wx:for="{{list}}" wx:key="index" data-item='{{item}}' data-top="{{false}}"
  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. </block>
  59. </view>
  60. <view class="menuBg" bind:touchstart="cancelMenu" wx:if="{{menu.show}}"></view>
  61. <view class="menu" style="display: {{menu.show?'block':'none'}}; top:{{menu.top}}px;left:{{menu.left}}px">
  62. <view class="menu-one" bindtap="msgTopping">
  63. <image src="/static/istop.png" class="icon" />{{isTop?'取消置顶':'置顶该聊天'}}
  64. </view>
  65. <!-- <view bindtap="delMessage">
  66. <image src="/static/del.png" class="icon" />
  67. 删除该聊天
  68. </view> -->
  69. </view>
  70. </view>