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%;