|
|
@@ -306,11 +306,11 @@
|
|
|
});
|
|
|
// 超时了
|
|
|
uni.$once('timeout', () => {
|
|
|
- uni.showLoading({
|
|
|
- title: '重连中',
|
|
|
- mask: true
|
|
|
+ uni.showLoading({
|
|
|
+ title: '重连中',
|
|
|
+ mask: true
|
|
|
})
|
|
|
- this.chatList = []
|
|
|
+ this.chatList = []
|
|
|
initSocket()
|
|
|
});
|
|
|
// 链接成功
|
|
|
@@ -456,8 +456,11 @@
|
|
|
this.chatList = [...res.data.serviceList, ...this.chatList];
|
|
|
|
|
|
this.$nextTick(() => {
|
|
|
- this.setPageScrollTo(selector);
|
|
|
- this.isScroll = res.data.serviceList.length >= this.limit;
|
|
|
+ if (this.chatList.length) {
|
|
|
+ this.setPageScrollTo(selector);
|
|
|
+ this.isScroll = res.data.serviceList.length >= this.limit;
|
|
|
+ }
|
|
|
+
|
|
|
});
|
|
|
this.$socket.send({
|
|
|
data: {
|
|
|
@@ -921,14 +924,14 @@
|
|
|
font-size: 28rpx;
|
|
|
color: #333333;
|
|
|
height: 85rpx;
|
|
|
- font-weight: 800;
|
|
|
+ font-weight: 800;
|
|
|
line-height: 40rpx;
|
|
|
overflow: hidden;
|
|
|
text-overflow: ellipsis;
|
|
|
display: -webkit-box;
|
|
|
-webkit-line-clamp: 2;
|
|
|
-webkit-box-orient: vertical;
|
|
|
- text-align: left !important;
|
|
|
+ text-align: left !important;
|
|
|
}
|
|
|
|
|
|
.broadcast_details_pic {
|