no message
This commit is contained in:
parent
a83f92023e
commit
e26785bf4b
@ -323,19 +323,17 @@ const sendArticle = async (article) => {
|
||||
imgUrl: article.cover || "",
|
||||
desc: "点击查看详情",
|
||||
});
|
||||
|
||||
if (result.success) {
|
||||
// 记录文章发送记录
|
||||
try {
|
||||
await api("addArticleSendRecord", {
|
||||
await api("addCustomerArticleSendRecord", {
|
||||
articleId: article._id,
|
||||
doctorId: doctorInfo.userId,
|
||||
doctorId: doctorInfo.userid,
|
||||
customerId: pageParams.value.patientId,
|
||||
corpId: corpId,
|
||||
});
|
||||
} catch (recordError) {
|
||||
console.error("记录文章发送失败:", recordError);
|
||||
// 记录失败不影响发送流程
|
||||
}
|
||||
|
||||
uni.navigateBack();
|
||||
@ -363,7 +361,7 @@ onLoad((options) => {
|
||||
if (options.groupId) {
|
||||
pageParams.value.groupId = options.groupId;
|
||||
}
|
||||
if (options.userId) {
|
||||
if (options.patientId) {
|
||||
pageParams.value.patientId = options.patientId;
|
||||
}
|
||||
if (options.corpId) {
|
||||
|
||||
@ -47,7 +47,7 @@ const urlsConfig = {
|
||||
getArticleCateList: 'getArticleCateList',
|
||||
getArticleList: 'getArticleList',
|
||||
getArticle: 'getArticle',
|
||||
addArticleSendRecord: 'addArticleSendRecord'
|
||||
addCustomerArticleSendRecord: 'addCustomerArticleSendRecord'
|
||||
},
|
||||
|
||||
survery: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user