Kaynağa Gözat

unless modify

sophieChenyx 6 yıl önce
ebeveyn
işleme
822764afb1

Dosya farkı çok büyük olduğundan ihmal edildi
+ 2 - 0
src/lib/js/core.min.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 3 - 0
src/lib/js/hls.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 2 - 0
src/lib/js/md5.min.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 2 - 0
src/lib/js/sha1.min.js


+ 5 - 5
src/stage/index/index.html

@@ -47,15 +47,15 @@
 			eid.dispatchEvent(evt);
 		}
 	</script>
-	<!-- <script src="http://g.alicdn.com/de/alitv-debug/1.1.10/index.min.js"></script> -->
-	<script src="https://cdn.bootcss.com/crypto-js/3.1.9/core.min.js"></script>
-	<script src="https://cdn.bootcss.com/crypto-js/3.1.9/sha1.min.js"></script>
-	<script src="https://cdn.bootcss.com/crypto-js/3.1.9/md5.min.js"></script>
-	<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
+	<!-- <script src="../../lib/js/alitv-debug.min.js"></script> -->
 	<script src="../../lib/js/FocusEngine.min.js"></script>
 	<script src="../../lib/js/blitz.js"></script>
 	<script src="../../lib/js/moye.min.js"></script>
 	<script src="../../lib/js/TVUtil.min.js"></script>
+	<script src="../../lib/js/core.min.js"></script>
+	<script src="../../lib/js/sha1.min.js"></script>
+	<script src="../../lib/js/md5.min.js"></script>
+	<script src="../../lib/js/hls.js"></script>
 	<script src="../../lib/js/swiper.min.js"></script>
 	<script>
 		var ts = '201807071350';

+ 1 - 1
src/stage/index/scene/CLScene.js

@@ -306,7 +306,7 @@ class CLScene extends scene {
             return;
         }
         // 进入课程详情场景
-        this.showScene(require(`./CourseScene.js`), { id });
+        this.showScene(require(`./CourseScene.js`), { id, sceneName: this.sceneType });
     }
 
     onBack() {

+ 7 - 4
src/stage/index/scene/CourseScene.js

@@ -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) {

+ 8 - 13
src/stage/index/scene/WaterFallIndexScene.js

@@ -78,19 +78,14 @@ class WaterfallIndexScene extends scene {
         let container = document.getElementById('advert-carousel');
         container.innerHTML = swiperHTML;
         // 创建swiper对象
-        if (!this.advertSwiper) {
-            this.advertSwiper = new Swiper('.swiper-container-advert', {
-                direction: 'horizontal',
-                autoplay: true,
-                pagination: {
-                    el: '.swiper-pagination-advert',
-                    bulletElement: 'li',
-                },
-            });
-        // 更新swiper对象
-        } else {
-            this.advertSwiper.updateSlides();
-        }
+        this.advertSwiper = new Swiper('.swiper-container-advert', {
+            direction: 'horizontal',
+            autoplay: true,
+            pagination: {
+                el: '.swiper-pagination-advert',
+                bulletElement: 'li',
+            },
+        });
         this.moye.root.reRender();
     }