|
@@ -19,9 +19,11 @@ class CourseScene extends scene {
|
|
|
this.id = 1;
|
|
|
this.isFirst = true;
|
|
|
this.marquee = null;
|
|
|
- //course name
|
|
|
- this.title = '';
|
|
|
- this.isBought = false;
|
|
|
+ //course name
|
|
|
+ this.title = '';
|
|
|
+ this.isBought = false;
|
|
|
+ //scene name
|
|
|
+ this.sceneName = '';
|
|
|
}
|
|
|
|
|
|
generateCourseDetailTitle(itemTitle, secondTitle){
|
|
@@ -291,6 +293,7 @@ class CourseScene extends scene {
|
|
|
onCreate(data) {
|
|
|
this.setContentView(require('../../../res/tpl/CourseScene.tpl'), {}, 'CourseScene', {}, () => {
|
|
|
this.id = data.id;
|
|
|
+ this.sceneName = data.sceneName;
|
|
|
NotificationCenter.add('course_detail', this.detailObserver.bind(this));
|
|
|
NotificationCenter.add('course_status', this.courseStatusObserver.bind(this));
|
|
|
// check course is blank
|
|
@@ -336,7 +339,7 @@ class CourseScene extends scene {
|
|
|
|
|
|
//检查对课权限
|
|
|
isAuthorized(lessonSeq) {
|
|
|
- if (this.isBought) {
|
|
|
+ if (this.sceneName === 'guidance' || this.isBought) {
|
|
|
//is bought
|
|
|
return true;
|
|
|
} else if (0 === lessonSeq) {
|