This commit is contained in:
辉 2023-12-11 17:10:10 +08:00
parent 40be007929
commit 213fdd197f
2 changed files with 12 additions and 8 deletions

View File

@ -212,6 +212,7 @@
if (uni.getStorageSync("status") == 1) { if (uni.getStorageSync("status") == 1) {
uni.closeSocket(); uni.closeSocket();
} }
uni.closeSocket();
uni.clearStorageSync(); uni.clearStorageSync();
that.$refs.uToast.show({ that.$refs.uToast.show({
title: '退出账号成功', title: '退出账号成功',
@ -388,11 +389,13 @@
// background: url(../../static/time.png) no-repeat center center fixed; // background: url(../../static/time.png) no-repeat center center fixed;
// background-size: contain; // background-size: contain;
margin-bottom: 50rpx; margin-bottom: 50rpx;
.imagelist{
.imagelist {
width: 100%; width: 100%;
height: 130rpx; height: 130rpx;
} }
.two { .two {
width: 168rpx; width: 168rpx;
height: 54rpx; height: 54rpx;

View File

@ -302,13 +302,13 @@
sendTime: new Date(), sendTime: new Date(),
content: this.formData.content content: this.formData.content
} }
that.newsList.push({
senderName: that.currentItem.doctorName,
content: that.formData.content,
messageType: 1,
})
that.formData.content = '' //清空输入框的文本
sendMessage(obj).then(res => { sendMessage(obj).then(res => {
that.newsList.push({
senderName: that.currentItem.doctorName,
content: that.formData.content,
messageType: 1,
})
that.formData.content = '' //清空输入框的文本
setTimeout(() => { setTimeout(() => {
that.scrollTop = that.scrollTop + 1; that.scrollTop = that.scrollTop + 1;
}, 100) }, 100)
@ -625,6 +625,7 @@
.content { .content {
position: relative; position: relative;
.input-box { .input-box {
position: fixed; position: fixed;
bottom: 0; bottom: 0;