diff --git a/pagesB/imagetextConsultation/imagetextConsultation.vue b/pagesB/imagetextConsultation/imagetextConsultation.vue index 0636d80..7496f29 100644 --- a/pagesB/imagetextConsultation/imagetextConsultation.vue +++ b/pagesB/imagetextConsultation/imagetextConsultation.vue @@ -22,7 +22,7 @@ {{item.doctorName?item.doctorName:''}} - {{item.content?item.content:''}} + {{Number(item.messageType==1)?item.content?item.content:'':'[图片]'}} {{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; } } - + \ No newline at end of file diff --git a/pagesC/seekadvicefrom/seekadvicefrom.vue b/pagesC/seekadvicefrom/seekadvicefrom.vue index 427187b..9b64921 100644 --- a/pagesC/seekadvicefrom/seekadvicefrom.vue +++ b/pagesC/seekadvicefrom/seekadvicefrom.vue @@ -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; } } - + \ No newline at end of file