|
|
@@ -211,6 +211,8 @@ const gradeId = ref('')
|
|
|
const typeId = ref('')
|
|
|
// 课程小节id
|
|
|
const courseId = ref('')
|
|
|
+// 课程排序
|
|
|
+const typeSort = ref('')
|
|
|
|
|
|
|
|
|
//课程小节字典
|
|
|
@@ -334,12 +336,15 @@ const disableVideo = (index = course.value.key) => {
|
|
|
return true
|
|
|
}
|
|
|
}
|
|
|
- if (localStorage.getItem('userName') === 'zdxyz') {
|
|
|
- let dis = Number(index.substring(index.indexOf("-") + 1));
|
|
|
- if (dis > 2) {
|
|
|
- //提示禁用
|
|
|
- Message().notifyWarning('您的账号并未开放此课程!', true)
|
|
|
- return true
|
|
|
+
|
|
|
+ if (localStorage.getItem('userName') === "zdxyz") {
|
|
|
+ if (localStorage.getItem('selectedGradeId') !== "1" || typeSort.value !== "02") {
|
|
|
+ let dis = Number(index.substring(index.indexOf("-") + 1));
|
|
|
+ if (dis > 2) {
|
|
|
+ //提示禁用
|
|
|
+ Message().notifyWarning('您的账号并未开放此课程!', true)
|
|
|
+ return true
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -535,6 +540,7 @@ onMounted(async () => {
|
|
|
boxIconTitle.value = String(title)
|
|
|
}
|
|
|
|
|
|
+ typeSort.value = router.currentRoute.value.query.typeSort
|
|
|
// 初始化年级ID
|
|
|
gradeId.value = globalState.initGradeId()
|
|
|
})
|