Compare commits
No commits in common. "a83f92023efa1b34a0b96874688d6dc1178f5d02" and "38553df8612a799d3d940278e6fc3b61252eeab2" have entirely different histories.
a83f92023e
...
38553df861
@ -120,7 +120,7 @@ const corpId = env.MP_CORP_ID;
|
|||||||
// 从页面参数获取群组信息
|
// 从页面参数获取群组信息
|
||||||
const pageParams = ref({
|
const pageParams = ref({
|
||||||
groupId: "",
|
groupId: "",
|
||||||
patientId: "",
|
userId: "",
|
||||||
corpId: "",
|
corpId: "",
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -325,19 +325,6 @@ const sendArticle = async (article) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (result.success) {
|
if (result.success) {
|
||||||
// 记录文章发送记录
|
|
||||||
try {
|
|
||||||
await api("addArticleSendRecord", {
|
|
||||||
articleId: article._id,
|
|
||||||
doctorId: doctorInfo.userId,
|
|
||||||
customerId: pageParams.value.patientId,
|
|
||||||
corpId: corpId,
|
|
||||||
});
|
|
||||||
} catch (recordError) {
|
|
||||||
console.error("记录文章发送失败:", recordError);
|
|
||||||
// 记录失败不影响发送流程
|
|
||||||
}
|
|
||||||
|
|
||||||
uni.navigateBack();
|
uni.navigateBack();
|
||||||
} else {
|
} else {
|
||||||
throw new Error(result.message || "发送失败");
|
throw new Error(result.message || "发送失败");
|
||||||
@ -364,7 +351,7 @@ onLoad((options) => {
|
|||||||
pageParams.value.groupId = options.groupId;
|
pageParams.value.groupId = options.groupId;
|
||||||
}
|
}
|
||||||
if (options.userId) {
|
if (options.userId) {
|
||||||
pageParams.value.patientId = options.patientId;
|
pageParams.value.userId = options.userId;
|
||||||
}
|
}
|
||||||
if (options.corpId) {
|
if (options.corpId) {
|
||||||
pageParams.value.corpId = options.corpId;
|
pageParams.value.corpId = options.corpId;
|
||||||
|
|||||||
@ -75,7 +75,6 @@ const props = defineProps({
|
|||||||
formatTime: { type: Function, required: true },
|
formatTime: { type: Function, required: true },
|
||||||
groupId: { type: String, default: '' },
|
groupId: { type: String, default: '' },
|
||||||
userId: { type: String, default: '' },
|
userId: { type: String, default: '' },
|
||||||
patientId: { type: String, default: '' },
|
|
||||||
corpId: { type: String, default: '' },
|
corpId: { type: String, default: '' },
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -386,7 +385,7 @@ const goToCommonPhrases = () => {
|
|||||||
// 跳转到宣教文章页面
|
// 跳转到宣教文章页面
|
||||||
const goToArticleList = () => {
|
const goToArticleList = () => {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/message/article-list?groupId=${props.groupId}&patientId=${props.patientId}&corpId=${props.corpId}`
|
url: `/pages/message/article-list?groupId=${props.groupId}&userId=${props.userId}&corpId=${props.corpId}`
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -164,7 +164,6 @@
|
|||||||
: ''
|
: ''
|
||||||
"
|
"
|
||||||
:userId="openid"
|
:userId="openid"
|
||||||
:patientId="patientId"
|
|
||||||
:corpId="corpId"
|
:corpId="corpId"
|
||||||
@scrollToBottom="() => scrollToBottom(true)"
|
@scrollToBottom="() => scrollToBottom(true)"
|
||||||
@messageSent="() => scrollToBottom(true)"
|
@messageSent="() => scrollToBottom(true)"
|
||||||
@ -248,9 +247,6 @@ const patientInfo = ref({
|
|||||||
mobile: "",
|
mobile: "",
|
||||||
});
|
});
|
||||||
|
|
||||||
// 患者ID
|
|
||||||
const patientId = ref("");
|
|
||||||
|
|
||||||
// 计算弹框显示状态 - 只有 pending 状态才显示接受问诊组件
|
// 计算弹框显示状态 - 只有 pending 状态才显示接受问诊组件
|
||||||
const showConsultAccept = computed(() => orderStatus.value === "pending");
|
const showConsultAccept = computed(() => orderStatus.value === "pending");
|
||||||
|
|
||||||
@ -324,10 +320,6 @@ const fetchGroupOrderStatus = async () => {
|
|||||||
mobile: result.data.patient.mobile || "",
|
mobile: result.data.patient.mobile || "",
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
// 更新患者ID
|
|
||||||
if (result.data.patientId) {
|
|
||||||
patientId.value = result.data.patientId.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
console.log("获取群组订单状态:", {
|
console.log("获取群组订单状态:", {
|
||||||
orderStatus: orderStatus.value,
|
orderStatus: orderStatus.value,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user