Commit d297548c by 胡悦

feat(HomeFrame): 添加学习中心权限限制检查逻辑

在路由拦截时增加学习中心权限限制检查,当检测到限制时显示权限弹窗并阻止导航
1 parent 4f0c3eaf
...@@ -216,6 +216,7 @@ ...@@ -216,6 +216,7 @@
style="overflow: hidden;" style="overflow: hidden;"
> >
<StudyCenterPermissionPopup <StudyCenterPermissionPopup
:lockReason="lockReason"
@confirm="handleStudyPermissionConfirm" @confirm="handleStudyPermissionConfirm"
/> />
</StudyPopup> </StudyPopup>
...@@ -301,7 +302,8 @@ export default { ...@@ -301,7 +302,8 @@ export default {
showStudyPermissionPopup: false, showStudyPermissionPopup: false,
courseInfo: { courseInfo: {
title: '' title: ''
} },
lockReason: 0
} }
}, },
created() { created() {
...@@ -645,6 +647,10 @@ export default { ...@@ -645,6 +647,10 @@ export default {
if (!noInterceptPage.includes(item.name)) { if (!noInterceptPage.includes(item.name)) {
if (sceneType != 7) { if (sceneType != 7) {
if (await this.inspectionOfProhibitionBill()) return if (await this.inspectionOfProhibitionBill()) return
if (await this.getLimitRecord()) {
this.showStudyPermissionPopup = true
return
}
} }
if (await this.checkDailyReport(sceneType != 7)) return if (await this.checkDailyReport(sceneType != 7)) return
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!