Browse Source

unless modyfy

sophieChenyx 6 năm trước cách đây
mục cha
commit
18533a8d7a
2 tập tin đã thay đổi với 9 bổ sung11 xóa
  1. 8 11
      src/stage/index/scene/CLScene.js
  2. 1 0
      src/stage/index/scene/IndexScene.js

+ 8 - 11
src/stage/index/scene/CLScene.js

@@ -145,6 +145,7 @@ class CLScene extends scene {
       });
     }
 
+    //当前无意义
     loadPeripheryList(tagId, index) {
       APIClient.getProductListByTagId(tagId, index, (isTrue, res) => {
         if (!isTrue) { return; }
@@ -156,14 +157,12 @@ class CLScene extends scene {
         this.rightScrollEvent.releaseEventLock();
       });
     }
-
     loadTagList() {
         let type = {
             periphery: 'PERIPHERY',
             resource: 'RESOURCE',
             training: 'TRAINING',
         }[this.sceneType] || 'RESOURCE';
-
         APIClient.getTagListByGroupCode(type, (isTrue, res) => {
             if (!isTrue) { return; }
             if (!res.success) {
@@ -192,7 +191,7 @@ class CLScene extends scene {
             }
         });
     }
-
+    //收藏
     collectionObserver() {
         if (this.sceneType == 'collection') {
             this.loadCourseList(this.selectedTagId, 1);
@@ -201,15 +200,13 @@ class CLScene extends scene {
 
     onCreate(data) {
         this.setContentView(require('../../../res/tpl/CLScene.tpl'), {}, 'CLScene', {}, () => {
-            // 页面渲染完成异步回调
             this.sceneType = data.type;
-            this.loadTagList();
-            this.initLeftTabOnFocus();
-
-            this.rightScrollEvent.bind(this.moye.root.getWidgetById('cl-right-content-scroll'));
-            ShopCartState.getCount();
-
-            NotificationCenter.add('collection_refresh', this.collectionObserver.bind(this));
+          console.log( 'currentTime sceneType',data)
+          this.loadTagList();
+          this.initLeftTabOnFocus();
+          this.rightScrollEvent.bind(this.moye.root.getWidgetById('cl-right-content-scroll'));
+          ShopCartState.getCount();
+          NotificationCenter.add('collection_refresh', this.collectionObserver.bind(this));
         });
     }
 

+ 1 - 0
src/stage/index/scene/IndexScene.js

@@ -148,6 +148,7 @@ class IndexScene extends scene {
 			if (type == 'download') {
 				this.showScene(require('./DownloadManagerScene.js'), {});
 			} else {
+				//点击CLScene 是否为师训
 				this.showScene(require('./CLScene.js'), { type });
 			}
 		} else if (e.target.con.classList.contains('user-info')) {