修改
This commit is contained in:
parent
339f7bbd5a
commit
24558c609d
@ -429,7 +429,6 @@
|
|||||||
let query = uni.createSelectorQuery().in(this);
|
let query = uni.createSelectorQuery().in(this);
|
||||||
//需要给黄色区域设置一个id标识,在这里是demo
|
//需要给黄色区域设置一个id标识,在这里是demo
|
||||||
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%;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user