|
@@ -363,8 +363,6 @@ const handleVideoEnded = () => {
|
|
|
// 禁用视频
|
|
// 禁用视频
|
|
|
const disableVideo = (index = course.value.key) => {
|
|
const disableVideo = (index = course.value.key) => {
|
|
|
|
|
|
|
|
- console.log("******:",courseDataScope.value,videoPathMap.value[index].id)
|
|
|
|
|
-
|
|
|
|
|
isDisabled.value = !courseDataScope.value.some(item => Number(item) === videoPathMap.value[index].id)
|
|
isDisabled.value = !courseDataScope.value.some(item => Number(item) === videoPathMap.value[index].id)
|
|
|
if (isDisabled.value) {
|
|
if (isDisabled.value) {
|
|
|
Message().notifyWarning('您的账号并未开放此课程!', true)
|
|
Message().notifyWarning('您的账号并未开放此课程!', true)
|
|
@@ -372,28 +370,6 @@ const disableVideo = (index = course.value.key) => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return isDisabled.value;
|
|
return isDisabled.value;
|
|
|
-
|
|
|
|
|
- // if (localStorage.getItem('userName') === 'aiTest' && gradeId.value === "1") {
|
|
|
|
|
- // let dis = Number(index.substring(index.indexOf("-") + 1));
|
|
|
|
|
- // if (dis > 5) {
|
|
|
|
|
- // //提示禁用
|
|
|
|
|
- // 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
|
|
|
|
|
- // }
|
|
|
|
|
- // }
|
|
|
|
|
- // }
|
|
|
|
|
- //
|
|
|
|
|
- // return false
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 处理视频时间更新事件
|
|
// 处理视频时间更新事件
|