From a56a6c225b504e749107168fa1e3b61785074bdc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com>
Date: Tue, 14 Nov 2023 12:00:21 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../imagetextConsultation/imagetextConsultation.vue | 6 +++---
pagesC/seekadvicefrom/seekadvicefrom.vue | 13 +++++++------
2 files changed, 10 insertions(+), 9 deletions(-)
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