فهرست منبع

公众号扫码进来

xuqiaoying 2 سال پیش
والد
کامیت
cf1066264a
4فایلهای تغییر یافته به همراه9 افزوده شده و 10 حذف شده
  1. 2 1
      pages2/dailyPractice/index.vue
  2. 4 3
      pages2/wd/course.vue
  3. 0 3
      pages3/course/detail.vue
  4. 3 3
      pages5/liveDetail/course.vue

+ 2 - 1
pages2/dailyPractice/index.vue

@@ -105,7 +105,7 @@ export default {
             options: {},
         }
     },
-onLoad(option) {
+    onLoad(option) {
         console.log('参数option:', option);
         this.options = option
         this.goodsId = option.goodsId
@@ -116,6 +116,7 @@ onLoad(option) {
         if (this.$method.isGoLogin()) { // 从公众号消息进来的没登录需要跳到登录页,登录后返回
             return
         }
+        console.log('onshow进来了');
         this.initCalendar()
         this.getToDayExam()
     },

+ 4 - 3
pages2/wd/course.vue

@@ -84,13 +84,14 @@ export default {
       this.informId = option.informId
       this.clickOfficial()
     }
+    
+    this.$store.getters.dictObj;
+  },
+  onShow(option) {
     if (this.$method.isGoLogin()) { // 从公众号消息进来的没登录需要跳到登录页,登录后返回
       return;
     }
     this.courseCourseList();
-    this.$store.getters.dictObj;
-  },
-  onShow(option) {
     if (this.itemIndex !== "") {
       this.refreshByIndex();
     }

+ 0 - 3
pages3/course/detail.vue

@@ -290,9 +290,6 @@ export default {
 			this.id = option.id
 			this.goodsType = option.goodsType
 		}
-		// if (this.$method.isGoLogin()) { // 扫二维码进来的没登录需要跳到登录页,登录后返回
-		// 	return;
-		// }
 		this.getDetail()
 		this.goodsCourseList()
 		this.appCommonGoodsCourseModuleFreeExamList();

+ 3 - 3
pages5/liveDetail/course.vue

@@ -77,13 +77,13 @@ export default {
       this.informId = option.informId
       this.clickOfficial()
     }
+    this.$store.getters.dictObj;
+  },
+  onShow() {
     if (this.$method.isGoLogin()) { // 从公众号消息进来的没登录需要跳到登录页,登录后返回
       return;
     }
     this.courseCourseList();
-    this.$store.getters.dictObj;
-  },
-  onShow() {
     if (this.itemIndex !== "") {
       this.refreshByIndex();
     }