index.wxml 4.1 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="messageList">
  6. <view class="fixed">
  7. <view class="inletBox">
  8. <view class="authority" bindtap="jump" data-url='friend'>
  9. <image src="/static/concern.png" class="avatar" />
  10. <view class="unread" wx:if="{{authorityMsg.newFansCount>0}}">{{authorityMsg.newFansCount}}</view>
  11. </view>
  12. <view class="authority" bindtap="jump" data-url='like'>
  13. <image src="/static/zan.png" class="avatar" />
  14. <view class="unread" wx:if="{{authorityMsg.likeCount>0}}">{{authorityMsg.likeCount}}</view>
  15. </view>
  16. <view class="authority" bindtap="jump" data-url='comment'>
  17. <image src="/static/message3.png" class="avatar" />
  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="unread" wx:if="{{authorityMsg.messageCount>0}}">{{authorityMsg.messageCount}}</view>
  23. </view>
  24. </view>
  25. <view class="searchBox" bindtap="setSearch">
  26. 查找朋友(昵称/学号/手机号)
  27. <image src="/static/search-3.png" class="search-icon" />
  28. </view>
  29. </view>
  30. <view class="skeleton" wx:if="{{loading}}">
  31. <template is='skeleton'></template>
  32. </view>
  33. <block wx:else>
  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="infoBox">
  38. <view class="body">
  39. <view class="name textOver">{{item.user.nickName||item.user.eid}}</view>
  40. <view class="info textOver">
  41. {{item.content}}
  42. </view>
  43. </view>
  44. <view class="right">
  45. <view class="date">{{filters.formatDate(item.gmtModified,5)}}</view>
  46. <view class="unread" wx:if="{{item.unReadCount>0}}">{{item.unReadCount}}</view>
  47. </view>
  48. </view>
  49. </view>
  50. <view class="base user" wx:for="{{list}}" wx:key="index" data-item='{{item}}' data-top="{{false}}"
  51. bind:longpress="onLongPress" hover-class='pressHover' bindtap="jumpChat">
  52. <image src="{{item.user.avatar}}" class="avatar" />
  53. <view class="infoBox">
  54. <view class="body">
  55. <view class="name textOver">{{item.user.nickName||item.user.eid}}</view>
  56. <view class="info textOver">
  57. {{item.content}}
  58. </view>
  59. </view>
  60. <view class="right">
  61. <view class="date">{{filters.formatDate(item.gmtModified,5)}}</view>
  62. <view class="unread" wx:if="{{item.unReadCount>0}}">{{item.unReadCount}}</view>
  63. </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>