fix: 修复患者就诊历史

This commit is contained in:
2025-12-23 16:37:30 +08:00
parent 8e64675fdd
commit 0af3c649fa

View File

@@ -207,12 +207,13 @@
// 2. 获取患者ID
const patientId = that.currentUserId.replace('user-', '');
// 3. 创建或获取聊天房间
// 3. 创建或获取聊天房间 (type=3 表示在线复诊/购药)
const roomRes = await request('/xkApi/online-consultation/get-or-create-chat-room', {
method: 'POST',
data: {
doctor_id: doctorId,
patient_id: patientId
patient_id: patientId,
type: 3
}
}, 1);
@@ -298,8 +299,10 @@
console.log(checkDev('open-im') && that.registList.register_type === 1, 'sssssssssssss')
if (checkDev('open-im') && (that.registList.register_type === 1 || that.registList.register_type === 2)) {
// 传递type参数根据挂号类型创建对应类型的房间
createRoomByDoctorIdApi({
doctor_id: that.currentDoctorId
doctor_id: that.currentDoctorId,
type: that.registList.register_type // 1=在线咨询2=复诊
}).then(result => {
sendToUserApi({
room_id: result.data.result.room_id,