Эх сурвалжийг харах

公众号进来后请求接口的顺序

xuqiaoying 2 жил өмнө
parent
commit
17f70ed2c5

+ 1 - 0
pages2/dailyPractice/index.vue

@@ -177,6 +177,7 @@ export default {
 			}).then((res) => {
 			}).then((res) => {
                 if (res.data.code == 200) {
                 if (res.data.code == 200) {
                     this.dayExamDetail = res.data && res.data.data || {}
                     this.dayExamDetail = res.data && res.data.data || {}
+                    console.log('dayExamDetail:', this.dayExamDetail);
                 }
                 }
             })
             })
         },
         },

+ 3 - 2
pages2/wd/course.vue

@@ -80,9 +80,9 @@ export default {
     this.gradeId = Number(option.gid);
     this.gradeId = Number(option.gid);
     this.orderGoodsId = Number(option.orderGoodsId);
     this.orderGoodsId = Number(option.orderGoodsId);
     // 公众号模板消息的数据埋点
     // 公众号模板消息的数据埋点
-    if (option.informId) { // 从公众号消息点击进来上报一次,其他地方进来和没登录需要跳到登录页,登录后返回的不需要上报
+    if (option.informId) {
       this.informId = option.informId
       this.informId = option.informId
-      this.clickOfficial()
+      // this.clickOfficial()
     }
     }
     
     
     this.$store.getters.dictObj;
     this.$store.getters.dictObj;
@@ -92,6 +92,7 @@ export default {
       return;
       return;
     }
     }
     this.courseCourseList();
     this.courseCourseList();
+    this.informId && this.clickOfficial() // 从公众号消息点击进来上报一次
     if (this.itemIndex !== "") {
     if (this.itemIndex !== "") {
       this.refreshByIndex();
       this.refreshByIndex();
     }
     }

+ 1 - 0
pages3/polyv/detail.vue

@@ -819,6 +819,7 @@ export default {
         data: { informId: this.informId }
         data: { informId: this.informId }
       }).then((res) => {
       }).then((res) => {
         if (res.data.code == 200) {
         if (res.data.code == 200) {
+          console.log('上报埋点');
         }
         }
       })
       })
     },
     },

+ 3 - 2
pages5/liveDetail/course.vue

@@ -73,9 +73,9 @@ export default {
     this.gradeId = Number(option.goodsId);
     this.gradeId = Number(option.goodsId);
     this.orderGoodsId = Number(option.orderGoodsId);
     this.orderGoodsId = Number(option.orderGoodsId);
     // 公众号模板消息的数据埋点
     // 公众号模板消息的数据埋点
-    if (option.informId) { // 从公众号消息点击进来上报一次,其他地方进来和没登录需要跳到登录页,登录后返回的不需要上报
+    if (option.informId) {
       this.informId = option.informId
       this.informId = option.informId
-      this.clickOfficial()
+      // this.clickOfficial()
     }
     }
     this.$store.getters.dictObj;
     this.$store.getters.dictObj;
   },
   },
@@ -84,6 +84,7 @@ export default {
       return;
       return;
     }
     }
     this.courseCourseList();
     this.courseCourseList();
+    this.informId && this.clickOfficial() // 从公众号消息点击进来上报一次
     if (this.itemIndex !== "") {
     if (this.itemIndex !== "") {
       this.refreshByIndex();
       this.refreshByIndex();
     }
     }