Compare commits

..

No commits in common. "a83f92023efa1b34a0b96874688d6dc1178f5d02" and "38553df8612a799d3d940278e6fc3b61252eeab2" have entirely different histories.

3 changed files with 3 additions and 25 deletions

View File

@ -120,7 +120,7 @@ const corpId = env.MP_CORP_ID;
//
const pageParams = ref({
groupId: "",
patientId: "",
userId: "",
corpId: "",
});
@ -325,19 +325,6 @@ const sendArticle = async (article) => {
});
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();
} else {
throw new Error(result.message || "发送失败");
@ -364,7 +351,7 @@ onLoad((options) => {
pageParams.value.groupId = options.groupId;
}
if (options.userId) {
pageParams.value.patientId = options.patientId;
pageParams.value.userId = options.userId;
}
if (options.corpId) {
pageParams.value.corpId = options.corpId;

View File

@ -75,7 +75,6 @@ const props = defineProps({
formatTime: { type: Function, required: true },
groupId: { type: String, default: '' },
userId: { type: String, default: '' },
patientId: { type: String, default: '' },
corpId: { type: String, default: '' },
});
@ -386,7 +385,7 @@ const goToCommonPhrases = () => {
//
const goToArticleList = () => {
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}`
});
};

View File

@ -164,7 +164,6 @@
: ''
"
:userId="openid"
:patientId="patientId"
:corpId="corpId"
@scrollToBottom="() => scrollToBottom(true)"
@messageSent="() => scrollToBottom(true)"
@ -248,9 +247,6 @@ const patientInfo = ref({
mobile: "",
});
// ID
const patientId = ref("");
// - pending
const showConsultAccept = computed(() => orderStatus.value === "pending");
@ -324,10 +320,6 @@ const fetchGroupOrderStatus = async () => {
mobile: result.data.patient.mobile || "",
};
}
// ID
if (result.data.patientId) {
patientId.value = result.data.patientId.toString();
}
console.log("获取群组订单状态:", {
orderStatus: orderStatus.value,