|
@@ -2,70 +2,78 @@
|
|
|
<navigationBar></navigationBar>
|
|
|
<import src="./index.skeleton" />
|
|
|
<view class="messagePage">
|
|
|
- <view class="input" bindtap="setSearch">
|
|
|
- 查找昵称/学号/手机号
|
|
|
- </view>
|
|
|
- <view class="messageList">
|
|
|
- <view class="fixed">
|
|
|
- <view class="authority" bindtap="jump" data-url='like'>
|
|
|
- <image src="/static/zan.png" class="avatar" />
|
|
|
- <view class="name">赞</view>
|
|
|
- <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="name">评论</view>
|
|
|
- <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="name">通知</view>
|
|
|
- <view class="unread" wx:if="{{authorityMsg.messageCount>0}}">{{authorityMsg.messageCount}}</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <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="body">
|
|
|
- <view class="name textOver">{{item.user.nickName||item.user.eid}}</view>
|
|
|
- <view class="info textOver">
|
|
|
- {{item.content}}
|
|
|
+ <view class="input" bindtap="setSearch">
|
|
|
+ 查找朋友(昵称/学号/手机号)
|
|
|
+ <view class="searchBtn">
|
|
|
+ <image src="/static/search-2.png" class="img" />
|
|
|
</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 class="skeleton" wx:if="{{loading}}">
|
|
|
- <template is='skeleton'></template>
|
|
|
</view>
|
|
|
- <block wx:else>
|
|
|
- <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="body">
|
|
|
- <view class="name textOver">{{item.user.nickName||item.user.eid}}</view>
|
|
|
- <view class="info textOver">
|
|
|
- {{item.content}}
|
|
|
- </view>
|
|
|
+ <view class="messageList">
|
|
|
+ <view class="fixed">
|
|
|
+ <view class="authority" bindtap="jump" data-url='friend'>
|
|
|
+ <image src="/static/concern.png" class="avatar" />
|
|
|
+ <view class="name">朋友</view>
|
|
|
+ <view class="unread" wx:if="{{authorityMsg.likeCount>0}}">{{authorityMsg.likeCount}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="authority" bindtap="jump" data-url='like'>
|
|
|
+ <image src="/static/zan.png" class="avatar" />
|
|
|
+ <view class="name">赞</view>
|
|
|
+ <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="name">评论</view>
|
|
|
+ <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="name">通知</view>
|
|
|
+ <view class="unread" wx:if="{{authorityMsg.messageCount>0}}">{{authorityMsg.messageCount}}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <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="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 class="right">
|
|
|
- <view class="date">{{filters.formatDate(item.gmtModified,5)}}</view>
|
|
|
- <view class="unread" wx:if="{{item.unReadCount>0}}">{{item.unReadCount}}</view>
|
|
|
+ <view class="skeleton" wx:if="{{loading}}">
|
|
|
+ <template is='skeleton'></template>
|
|
|
</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?'取消置顶':'置顶该聊天'}}
|
|
|
+ <block wx:else>
|
|
|
+ <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="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>
|
|
|
+ </block>
|
|
|
</view>
|
|
|
- <!-- <view bindtap="delMessage">
|
|
|
+ <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>
|
|
|
|
|
|
</view>
|