12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <wxs src="../../utils/filter.wxs" module="filters" />
- <navigationBar></navigationBar>
- <import src="./index.skeleton" />
- <view class="messagePage">
- <view class="messageList">
- <view class="fixed">
- <view class="inletBox">
- <view class="authority" bindtap="jump" data-url='friend'>
- <image src="/static/concern.png" class="avatar" />
- <view class="unread" wx:if="{{authorityMsg.newFansCount>0}}">{{authorityMsg.newFansCount}}</view>
- </view>
- <view class="authority" bindtap="jump" data-url='like'>
- <image src="/static/zan.png" class="avatar" />
- <view class="unread" wx:if="{{authorityMsg.likeCount>0}}">{{authorityMsg.likeCount}}</view>
- </view>
- <view class="authority" bindtap="jump" data-url='comment'>
- <image src="/static/message3.png" class="avatar" />
- <view class="unread" wx:if="{{authorityMsg.postsCount>0}}">{{authorityMsg.postsCount}}</view>
- </view>
- <view class="authority" bindtap="jump" data-url='notice'>
- <image src="/static/notice.png" class="avatar" />
- <view class="unread" wx:if="{{authorityMsg.messageCount>0}}">{{authorityMsg.messageCount}}</view>
- </view>
- </view>
- <view class="searchBox" bindtap="setSearch">
- 查找朋友(昵称/学号/手机号)
- <image src="/static/search-3.png" class="search-icon" />
- </view>
- </view>
- <view class="skeleton" wx:if="{{loading}}">
- <template is='skeleton'></template>
- </view>
- <block wx:else>
- <view class="base user" wx:for="{{authorityMsg.topList}}" wx:key="index" data-item='{{item}}'
- data-top="{{true}}" bind:longpress="onLongPress" hover-class='pressHover' bindtap="jumpChat">
- <image src="{{item.user.avatar}}" class="avatar" />
- <view class="infoBox">
- <view class="body">
- <view class="name textOver">{{item.user.nickName||item.user.eid}}</view>
- <view class="info textOver">
- {{item.content}}
- </view>
- </view>
- <view class="right">
- <view class="date">{{filters.formatDate(item.gmtModified,5)}}</view>
- <view class="unread" wx:if="{{item.unReadCount>0}}">{{item.unReadCount}}</view>
- </view>
- </view>
- </view>
- <view class="base user" wx:for="{{list}}" wx:key="index" data-item='{{item}}' data-top="{{false}}"
- bind:longpress="onLongPress" hover-class='pressHover' bindtap="jumpChat">
- <image src="{{item.user.avatar}}" class="avatar" />
- <view class="infoBox">
- <view class="body">
- <view class="name textOver">{{item.user.nickName||item.user.eid}}</view>
- <view class="info textOver">
- {{item.content}}
- </view>
- </view>
- <view class="right">
- <view class="date">{{filters.formatDate(item.gmtModified,5)}}</view>
- <view class="unread" wx:if="{{item.unReadCount>0}}">{{item.unReadCount}}</view>
- </view>
- </view>
- </view>
- </block>
- </view>
- <view class="menuBg" bind:touchstart="cancelMenu" wx:if="{{menu.show}}"></view>
- <view class="menu" style="display: {{menu.show?'block':'none'}}; top:{{menu.top}}px;left:{{menu.left}}px">
- <view class="menu-one" bindtap="msgTopping">
- <image src="/static/istop.png" class="icon" />{{isTop?'取消置顶':'置顶该聊天'}}
- </view>
- <!-- <view bindtap="delMessage">
- <image src="/static/del.png" class="icon" />
- 删除该聊天
- </view> -->
- </view>
- </view>
|