This commit is contained in:
2023-11-14 13:13:45 +08:00
parent 339f7bbd5a
commit 24558c609d

View File

@ -429,7 +429,6 @@
let query = uni.createSelectorQuery().in(this); let query = uni.createSelectorQuery().in(this);
//iddemo //iddemo
query.select('.input-box').boundingClientRect(data => { query.select('.input-box').boundingClientRect(data => {
console.log(data)
this.inputboxtop = data.height // this.inputboxtop = data.height //
setTimeout(() => { setTimeout(() => {
this.scrollTop = this.scrollTop + 1; this.scrollTop = this.scrollTop + 1;
@ -437,11 +436,6 @@
}).exec(); }).exec();
}, 300) }, 300)
res.tempFilePaths.forEach(e => { res.tempFilePaths.forEach(e => {
that.newsList.push({
imgurl: e,
messageType: 2,
senderName: that.currentItem.doctorName,
})
uni.uploadFile({ uni.uploadFile({
url: baseurl + url: baseurl +
'/nurseApplet/consultationInfo/uploadConsultationFile', '/nurseApplet/consultationInfo/uploadConsultationFile',
@ -449,7 +443,6 @@
name: 'file', name: 'file',
timeout: 5000, timeout: 5000,
success(resp) { success(resp) {
console.log(resp)
var fileurls = JSON.parse(resp.data) var fileurls = JSON.parse(resp.data)
let obj = { let obj = {
consultationId: that.currentItem.id, consultationId: that.currentItem.id,
@ -461,9 +454,12 @@
sendTime: new Date(), sendTime: new Date(),
content: fileurls.fileUrl content: fileurls.fileUrl
} }
sendMessage(obj).then(respp => { that.newsList.push({
console.log(respp) imgurl: fileurls.fileUrl,
messageType: 2,
senderName: that.currentItem.doctorName,
}) })
sendMessage(obj).then(respp => {})
} }
}) })
}) })
@ -574,6 +570,7 @@
display: inline-block; display: inline-block;
position: fixed; position: fixed;
top: 0; top: 0;
z-index: 99999;
image { image {
margin: 0 4% 0 4%; margin: 0 4% 0 4%;