|
@@ -334,14 +334,14 @@ const disableVideo = (index = course.value.key) => {
|
|
|
return true
|
|
return true
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- // if (localStorage.getItem('userName') === 'aiDemo') {
|
|
|
|
|
- // let dis = Number(index.substring(index.indexOf("-") + 1));
|
|
|
|
|
- // if (dis > 4) {
|
|
|
|
|
- // //提示禁用
|
|
|
|
|
- // Message().notifyWarning('您的账号并未开放此课程!', true)
|
|
|
|
|
- // return true
|
|
|
|
|
- // }
|
|
|
|
|
- // }
|
|
|
|
|
|
|
+ if (localStorage.getItem('userName') === 'zdxyz') {
|
|
|
|
|
+ let dis = Number(index.substring(index.indexOf("-") + 1));
|
|
|
|
|
+ if (dis > 2) {
|
|
|
|
|
+ //提示禁用
|
|
|
|
|
+ Message().notifyWarning('您的账号并未开放此课程!', true)
|
|
|
|
|
+ return true
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|