From 24558c609dd2f88a4f3664c3004dfda3426e2191 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Tue, 14 Nov 2023 13:13:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/seekadvicefrom/seekadvicefrom.vue | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/pages/seekadvicefrom/seekadvicefrom.vue b/pages/seekadvicefrom/seekadvicefrom.vue index a773c5a..09b832d 100644 --- a/pages/seekadvicefrom/seekadvicefrom.vue +++ b/pages/seekadvicefrom/seekadvicefrom.vue @@ -429,7 +429,6 @@ let query = uni.createSelectorQuery().in(this); //需要给黄色区域设置一个id标识,在这里是demo query.select('.input-box').boundingClientRect(data => { - console.log(data) this.inputboxtop = data.height //赋值,待会要用 setTimeout(() => { this.scrollTop = this.scrollTop + 1; @@ -437,11 +436,6 @@ }).exec(); }, 300) res.tempFilePaths.forEach(e => { - that.newsList.push({ - imgurl: e, - messageType: 2, - senderName: that.currentItem.doctorName, - }) uni.uploadFile({ url: baseurl + '/nurseApplet/consultationInfo/uploadConsultationFile', @@ -449,7 +443,6 @@ name: 'file', timeout: 5000, success(resp) { - console.log(resp) var fileurls = JSON.parse(resp.data) let obj = { consultationId: that.currentItem.id, @@ -461,9 +454,12 @@ sendTime: new Date(), content: fileurls.fileUrl } - sendMessage(obj).then(respp => { - console.log(respp) + that.newsList.push({ + imgurl: fileurls.fileUrl, + messageType: 2, + senderName: that.currentItem.doctorName, }) + sendMessage(obj).then(respp => {}) } }) }) @@ -574,6 +570,7 @@ display: inline-block; position: fixed; top: 0; + z-index: 99999; image { margin: 0 4% 0 4%;