From 213fdd197f6702a57a384fb94e21e338d96a1dc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Mon, 11 Dec 2023 17:10:10 +0800 Subject: [PATCH] xg --- pages/myinformation/myinformation.vue | 7 +++++-- pages/seekadvicefrom/seekadvicefrom.vue | 13 +++++++------ 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/pages/myinformation/myinformation.vue b/pages/myinformation/myinformation.vue index 108c6a8..ed9d24a 100644 --- a/pages/myinformation/myinformation.vue +++ b/pages/myinformation/myinformation.vue @@ -212,6 +212,7 @@ if (uni.getStorageSync("status") == 1) { uni.closeSocket(); } + uni.closeSocket(); uni.clearStorageSync(); that.$refs.uToast.show({ title: '退出账号成功', @@ -388,11 +389,13 @@ // background: url(../../static/time.png) no-repeat center center fixed; // background-size: contain; margin-bottom: 50rpx; - .imagelist{ + + .imagelist { width: 100%; height: 130rpx; - + } + .two { width: 168rpx; height: 54rpx; diff --git a/pages/seekadvicefrom/seekadvicefrom.vue b/pages/seekadvicefrom/seekadvicefrom.vue index 4dfcb71..95d48ed 100644 --- a/pages/seekadvicefrom/seekadvicefrom.vue +++ b/pages/seekadvicefrom/seekadvicefrom.vue @@ -302,13 +302,13 @@ sendTime: new Date(), content: this.formData.content } + that.newsList.push({ + senderName: that.currentItem.doctorName, + content: that.formData.content, + messageType: 1, + }) + that.formData.content = '' //清空输入框的文本 sendMessage(obj).then(res => { - that.newsList.push({ - senderName: that.currentItem.doctorName, - content: that.formData.content, - messageType: 1, - }) - that.formData.content = '' //清空输入框的文本 setTimeout(() => { that.scrollTop = that.scrollTop + 1; }, 100) @@ -625,6 +625,7 @@ .content { position: relative; + .input-box { position: fixed; bottom: 0;