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);
//iddemo
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%;