Commit db63403a by Lin

修复(prelearnBridge):更新员工学习状态检查逻辑

- 修改了条件,使 staffLearnStatus 为 1 和 2 时均返回 true。
- 添加了控制台日志,用于调试学习状态查询。
1 parent af084b83
...@@ -745,7 +745,8 @@ export default { ...@@ -745,7 +745,8 @@ export default {
activityProductId: this.goodsInfo.productId || this.prelearnContext.activityProductId, activityProductId: this.goodsInfo.productId || this.prelearnContext.activityProductId,
}) })
console.log('[prelearnBridge] getPrelearnScriptBoardAPI res:', res) console.log('[prelearnBridge] getPrelearnScriptBoardAPI res:', res)
return Number(res?.staffLearnStatus) === 1 const status = Number(res?.staffLearnStatus)
return status === 1 || status === 2
}, },
showMainPushBackTip() { showMainPushBackTip() {
uni.showModal({ uni.showModal({
...@@ -764,6 +765,7 @@ export default { ...@@ -764,6 +765,7 @@ export default {
if (Number(this.isMainPush) === 1) { if (Number(this.isMainPush) === 1) {
try { try {
const learned = await this.checkMainPushStaffLearnStatus() const learned = await this.checkMainPushStaffLearnStatus()
console.log("学习状态查询***", learned);
if (learned) { if (learned) {
this.navigateBack() this.navigateBack()
return return
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!