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

View File

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