This commit is contained in:
2023-11-14 12:00:21 +08:00
parent 1ed2e63c82
commit a56a6c225b
2 changed files with 10 additions and 9 deletions

View File

@ -22,7 +22,7 @@
{{item.doctorName?item.doctorName:''}}
</view>
<view class="text">
{{item.content?item.content:''}}
{{Number(item.messageType==1)?item.content?item.content:'':'[图片]'}}
</view>
<view class="messageCount" v-if="item.messageCount>0">
{{item.messageCount}}
@ -64,7 +64,7 @@
};
},
onShow() {
this.formdata.patientId=uni.getStorageSync('patientId')
this.formdata.patientId = uni.getStorageSync('patientId')
this.info();
},
methods: {
@ -245,4 +245,4 @@
height: 130rpx;
}
}
</style>
</style>

View File

@ -385,11 +385,6 @@
}).exec();
}, 300)
res.tempFilePaths.forEach(e => {
that.newsList.push({
imgurl: e,
messageType: 2,
senderName: that.currentItem.patientName,
})
uni.uploadFile({
url: baseurl +
'/nurseApplet/consultationInfo/uploadConsultationFile',
@ -409,6 +404,12 @@
sendTime: new Date(),
content: fileurls.fileUrl
}
that.newsList.push({
content: fileurls.fileUrl,
messageType: 2,
senderName: that.currentItem.patientName,
})
console.log()
sendMessage(obj).then(respp => {
console.log(respp)
})
@ -767,4 +768,4 @@
bottom: 38rpx;
}
}
</style>
</style>