feat: 会员管理、在线复诊优化、新增配送仓库
This commit is contained in:
@@ -2615,6 +2615,11 @@ export default {
|
||||
const doctorId = uni.getStorageSync('doctor_id') || uni.getStorageSync('user_id');
|
||||
if (!doctorId) return;
|
||||
const senderUserId = String(doctorId).startsWith('doctor-') ? String(doctorId) : `doctor-${doctorId}`;
|
||||
// 在线复诊开方后:电子处方卡 + 购药指引 + 用药温馨提示
|
||||
const tipTexts = [
|
||||
'根据您的病情描述,已为您开具电子处方,请点击上方的‘立即支付’,进行购药;如有商品价格和订单等问题请咨询平台客服。',
|
||||
'温馨提示:用药前请详细阅读药品说明书,并严格按照线下医嘱用药。如用药过程中出现病情变化或其它不适症状,请立即停药并及时就医。(请您注意,如果您尚未在医院就诊或未曾使用过本次申请的药品,请暂时不要支付订单。我们建议您在医生的指导下使用药品,以确保用药安全。)',
|
||||
];
|
||||
try {
|
||||
await sendToUserHttpApi({
|
||||
room_id: roomId,
|
||||
@@ -2624,6 +2629,17 @@ export default {
|
||||
message_content: JSON.stringify(inner),
|
||||
duration: 0
|
||||
});
|
||||
for (let i = 0; i < tipTexts.length; i++) {
|
||||
// 温馨提示由小助手发送,处方卡仍由医生发送
|
||||
await sendToUserHttpApi({
|
||||
room_id: roomId,
|
||||
sender_user_id: 'doctor_assistant',
|
||||
receiver_user_id: receiverUserId,
|
||||
message_type: 0,
|
||||
message_content: tipTexts[i],
|
||||
duration: 0
|
||||
});
|
||||
}
|
||||
} catch (e) {
|
||||
console.warn('trySendPrescriptionChatMessage', e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user