no message
This commit is contained in:
parent
a83f92023e
commit
e26785bf4b
@ -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) {
|
||||||
|
|||||||
@ -47,7 +47,7 @@ const urlsConfig = {
|
|||||||
getArticleCateList: 'getArticleCateList',
|
getArticleCateList: 'getArticleCateList',
|
||||||
getArticleList: 'getArticleList',
|
getArticleList: 'getArticleList',
|
||||||
getArticle: 'getArticle',
|
getArticle: 'getArticle',
|
||||||
addArticleSendRecord: 'addArticleSendRecord'
|
addCustomerArticleSendRecord: 'addCustomerArticleSendRecord'
|
||||||
},
|
},
|
||||||
|
|
||||||
survery: {
|
survery: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user