|
@@ -16,7 +16,7 @@
|
|
|
<view class="scroll-item" v-for="(conversation, key) in conversations" :key="key">
|
|
|
<view class="item-head">
|
|
|
<!-- <image :src="conversation.data.avatar" class="head-icon"></image> -->
|
|
|
- <image src="/static/img/touxiang.png" class="head-icon"></image>
|
|
|
+ <image src="/static/img/yonghu.png" class="head-icon"></image>
|
|
|
<view class="item-head_unread" v-if="conversation.unread">{{ conversation.unread }}</view>
|
|
|
</view>
|
|
|
<view class="scroll-item_info" @click="chat(conversation)">
|
|
@@ -92,6 +92,7 @@
|
|
|
this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
|
|
|
},
|
|
|
onShow() {
|
|
|
+
|
|
|
this.loginInfo=uni.getStorageSync('loginInfo');
|
|
|
/* uni.setNavigationBarTitle({
|
|
|
title:this.loginInfo.supplierName
|
|
@@ -103,10 +104,11 @@
|
|
|
uni.navigateTo({ url: './login' });
|
|
|
return;
|
|
|
}
|
|
|
- if (GoEasy.getConnectionStatus() === 'disconnected') {
|
|
|
+ console.log("onShowconversations")
|
|
|
+ // if (GoEasy.getConnectionStatus() === 'disconnected') {
|
|
|
this.connectGoEasy(); //连接goeasy
|
|
|
this.subscribeGroup(); //建立连接后,就应该订阅群聊消息,避免漏掉
|
|
|
- }
|
|
|
+ // }
|
|
|
this.loadConversations(); //加载会话列表
|
|
|
this.initGoEasyListeners();
|
|
|
},
|
|
@@ -334,8 +336,8 @@
|
|
|
|
|
|
.conversations .scroll-item_info .item-info-top {
|
|
|
padding-top: 20rpx;
|
|
|
- /* height: 60rpx;
|
|
|
- line-height: 60rpx; */
|
|
|
+ height: 60rpx;
|
|
|
+ line-height: 60rpx;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: space-between;
|
|
@@ -345,6 +347,10 @@
|
|
|
.conversations .item-info-top_name {
|
|
|
font-size: 30rpx;
|
|
|
color: #262628;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ width: 370rpx;
|
|
|
+ white-space: nowrap;
|
|
|
}
|
|
|
|
|
|
.conversations .item-info-top_time {
|