no message

This commit is contained in:
wangdongbo 2026-01-30 14:47:52 +08:00
parent a83f92023e
commit e26785bf4b
2 changed files with 4 additions and 6 deletions

View File

@ -323,19 +323,17 @@ const sendArticle = async (article) => {
imgUrl: article.cover || "", imgUrl: article.cover || "",
desc: "点击查看详情", desc: "点击查看详情",
}); });
if (result.success) { if (result.success) {
// //
try { try {
await api("addArticleSendRecord", { await api("addCustomerArticleSendRecord", {
articleId: article._id, articleId: article._id,
doctorId: doctorInfo.userId, doctorId: doctorInfo.userid,
customerId: pageParams.value.patientId, customerId: pageParams.value.patientId,
corpId: corpId, corpId: corpId,
}); });
} catch (recordError) { } catch (recordError) {
console.error("记录文章发送失败:", recordError); console.error("记录文章发送失败:", recordError);
//
} }
uni.navigateBack(); uni.navigateBack();
@ -363,7 +361,7 @@ onLoad((options) => {
if (options.groupId) { if (options.groupId) {
pageParams.value.groupId = options.groupId; pageParams.value.groupId = options.groupId;
} }
if (options.userId) { if (options.patientId) {
pageParams.value.patientId = options.patientId; pageParams.value.patientId = options.patientId;
} }
if (options.corpId) { if (options.corpId) {

View File

@ -47,7 +47,7 @@ const urlsConfig = {
getArticleCateList: 'getArticleCateList', getArticleCateList: 'getArticleCateList',
getArticleList: 'getArticleList', getArticleList: 'getArticleList',
getArticle: 'getArticle', getArticle: 'getArticle',
addArticleSendRecord: 'addArticleSendRecord' addCustomerArticleSendRecord: 'addCustomerArticleSendRecord'
}, },
survery: { survery: {