|
@@ -1,19 +1,19 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view>
|
|
<view>
|
|
|
- <view>
|
|
|
|
|
|
|
+ <!-- <view>
|
|
|
<view class="search" v-if="search_btn">
|
|
<view class="search" v-if="search_btn">
|
|
|
<view @tap="openSearch">
|
|
<view @tap="openSearch">
|
|
|
<icon type="search" size="12"></icon>
|
|
<icon type="search" size="12"></icon>
|
|
|
<text>搜索</text>
|
|
<text>搜索</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- </view>
|
|
|
|
|
|
|
+ </view> -->
|
|
|
|
|
|
|
|
<!-- <view class="chat_list_wraper" > -->
|
|
<!-- <view class="chat_list_wraper" > -->
|
|
|
<scroll-view scroll-y="true" :class="
|
|
<scroll-view scroll-y="true" :class="
|
|
|
'chat_list_wraper ' + (gotop ? (isIPX ? 'goTopX' : 'goTop') : 'goback')
|
|
'chat_list_wraper ' + (gotop ? (isIPX ? 'goTopX' : 'goTop') : 'goback')
|
|
|
" :style="'padding-bottom: ' + (isIPX ? '270rpx' : '226rpx')">
|
|
" :style="'padding-bottom: ' + (isIPX ? '270rpx' : '226rpx')">
|
|
|
- <view class="search_input" v-if="search_chats">
|
|
|
|
|
|
|
+ <!-- <view class="search_input" v-if="search_chats">
|
|
|
<view>
|
|
<view>
|
|
|
<icon type="search" size="12"></icon>
|
|
<icon type="search" size="12"></icon>
|
|
|
<input placeholder="搜索" placeholder-style="color:#9B9B9B;line-height:21px;font-size:15px;"
|
|
<input placeholder="搜索" placeholder-style="color:#9B9B9B;line-height:21px;font-size:15px;"
|
|
@@ -22,7 +22,7 @@
|
|
|
<icon type="clear" size="12" @tap.stop="clearInput" v-if="show_clear"></icon>
|
|
<icon type="clear" size="12" @tap.stop="clearInput" v-if="show_clear"></icon>
|
|
|
</view>
|
|
</view>
|
|
|
<text @tap="cancel">取消</text>
|
|
<text @tap="cancel">取消</text>
|
|
|
- </view>
|
|
|
|
|
|
|
+ </view> -->
|
|
|
<view v-for="(item, index) in conversationList" :key="index" class="chat_list" :data-item="item"
|
|
<view v-for="(item, index) in conversationList" :key="index" class="chat_list" :data-item="item"
|
|
|
@tap.stop="del_chat" @longpress="longpress">
|
|
@tap.stop="del_chat" @longpress="longpress">
|
|
|
<swipe-delete>
|
|
<swipe-delete>
|
|
@@ -50,8 +50,33 @@
|
|
|
</view> -->
|
|
</view> -->
|
|
|
|
|
|
|
|
<view class="tap_mask" @tap.stop="into_chatRoom" :data-item="JSON.stringify(item)">
|
|
<view class="tap_mask" @tap.stop="into_chatRoom" :data-item="JSON.stringify(item)">
|
|
|
- <!-- 消息列表 -->
|
|
|
|
|
- <view class="list_box">
|
|
|
|
|
|
|
+ <!-- 消息列表 -->
|
|
|
|
|
+ <view class="list_box ddflex">
|
|
|
|
|
+ <view class="list-left fflex ddflex">
|
|
|
|
|
+ <view class="list_pic">
|
|
|
|
|
+ <view class="em-msgNum" v-if="item.unReadCount > 0 && !pushConfigData.includes(item.chatType === 'chat' ? item.username : item.info.to)">{{ item.unReadCount > 99 ? '99+':item.unReadCount}}</view>
|
|
|
|
|
+ <image :src="showConversationAvatar(item)"></image>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="list_texts fflex">
|
|
|
|
|
+ <view class="ddflex">
|
|
|
|
|
+ <text class="list_users fflex">{{ showConversationName(item) }}</text>
|
|
|
|
|
+ <view class="list_rights">
|
|
|
|
|
+ <text :data-username="item.username">{{ handleTime(item) }}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view>
|
|
|
|
|
+ <text class="list_words" v-if="item.msg.data[0].data">
|
|
|
|
|
+ {{item.msg.data[0].data}}
|
|
|
|
|
+ </text>
|
|
|
|
|
+ <text class="list_words" v-else-if="item.msg.type == 'img'">[图片]</text>
|
|
|
|
|
+ <text class="list_words" v-else-if="item.msg.type == 'audio'">[语音]</text>
|
|
|
|
|
+ <text class="list_words" v-else-if="item.msg.type == 'file'">[附件]</text>
|
|
|
|
|
+ <text class="list_words" v-else="item.msg.type == 'video'">[视频]</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <!-- <view class="list_box">
|
|
|
<view class="list_left" :data-username="item.username">
|
|
<view class="list_left" :data-username="item.username">
|
|
|
<view class="list_pic">
|
|
<view class="list_pic">
|
|
|
<view class="em-msgNum"
|
|
<view class="em-msgNum"
|
|
@@ -75,7 +100,7 @@
|
|
|
<view class="list_right">
|
|
<view class="list_right">
|
|
|
<text :data-username="item.username">{{ handleTime(item) }}</text>
|
|
<text :data-username="item.username">{{ handleTime(item) }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
- </view>
|
|
|
|
|
|
|
+ </view> -->
|
|
|
</view>
|
|
</view>
|
|
|
</swipe-delete>
|
|
</swipe-delete>
|
|
|
</view>
|
|
</view>
|
|
@@ -113,7 +138,24 @@
|
|
|
unReadNoticeNum: 0,
|
|
unReadNoticeNum: 0,
|
|
|
messageNum: 0,
|
|
messageNum: 0,
|
|
|
unReadTotalNotNum: 0,
|
|
unReadTotalNotNum: 0,
|
|
|
- conversationList: [],
|
|
|
|
|
|
|
+ conversationList: [
|
|
|
|
|
+ {
|
|
|
|
|
+ unReadCount: 5,
|
|
|
|
|
+ chatType: 'chat',
|
|
|
|
|
+ username: 'Lancy',
|
|
|
|
|
+ info: {
|
|
|
|
|
+ to: 'Bin'
|
|
|
|
|
+ },
|
|
|
|
|
+ msg: {
|
|
|
|
|
+ type: 'img',
|
|
|
|
|
+ data: [
|
|
|
|
|
+ {
|
|
|
|
|
+ data: '666'
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ ],
|
|
|
show_clear: false,
|
|
show_clear: false,
|
|
|
member: "",
|
|
member: "",
|
|
|
isIPX: false,
|
|
isIPX: false,
|