谢杰标 2 rokov pred
rodič
commit
03270e8a63

+ 2 - 2
components/course/courseSection.vue

@@ -559,7 +559,7 @@ export default {
           // buyCourse 是否购买课程:1是 0否,type=vod是回放
           let encode = encodeURIComponent(
             this.config.hostLive +
-              "pages/live/index?token=" +
+              "/pages/live/index?token=" +
               uni.getStorageSync("token") +
               "&userInfo=" +
               JSON.stringify(this.userInfo) +
@@ -686,7 +686,7 @@ export default {
         // buyCourse 是否购买课程:1是 0否
         let encode = encodeURIComponent(
           this.config.hostLive +
-            "pages/live/index?token=" +
+            "/pages/live/index?token=" +
             uni.getStorageSync("token") +
             "&userInfo=" +
             JSON.stringify(this.userInfo) +

+ 9 - 17
pages3/polyv/detail.vue

@@ -954,14 +954,7 @@ export default {
       }
     },
   },
-  async onLoad(option) {
-    if (option.skipPort) {
-      await this.$method.skipLogin(option.skipPort);
-    }
-    if (this.$method.isGoLogin()) {
-      // 从公众号消息进来的没登录需要跳到登录页,登录后返回
-      return;
-    }
+  onLoad(option) {
     if (option.isOther) {
       this.showMark = true;
       return;
@@ -974,16 +967,15 @@ export default {
     this.option = option;
     // 公众号模板消息的数据埋点
     option.informId && this.clickOfficial(option.informId);
-    this.courseCourseList();
   },
   async onShow() {
-    // if (this.option.skipPort) {
-    //   await this.$method.skipLogin(this.option.skipPort);
-    // }
-    // if (this.$method.isGoLogin()) {
-    //   return;
-    // }
-    // this.courseCourseList();
+    if (this.option.skipPort) {
+      await this.$method.skipLogin(this.option.skipPort);
+    }
+    if (this.$method.isGoLogin()) {
+      return;
+    }
+    this.courseCourseList();
   },
   onUnload() {
     console.log("onUnloadonUnloadonUnloadonUnload");
@@ -1846,7 +1838,7 @@ export default {
       // buyCourse 是否购买课程:1是 0否
       let encode = encodeURIComponent(
         this.config.hostLive +
-          "pages/live/index?token=" +
+          "/pages/live/index?token=" +
           uni.getStorageSync("token") +
           "&userInfo=" +
           JSON.stringify(this.userInfo) +

+ 1 - 1
pages5/examList/index.vue

@@ -445,7 +445,7 @@ export default {
       // buyCourse 是否购买课程:1是 0否
       let encode = encodeURIComponent(
         this.config.hostLive +
-          "pages/live/index?token=" +
+          "/pages/live/index?token=" +
           uni.getStorageSync("token") +
           "&userInfo=" +
           JSON.stringify(this.userInfo) +

+ 1 - 1
pages5/examReport/index.vue

@@ -540,7 +540,7 @@ export default {
       // buyCourse 是否购买课程:1是 0否
       let encode = encodeURIComponent(
         this.config.hostLive +
-          "pages/live/index?token=" +
+          "/pages/live/index?token=" +
           uni.getStorageSync("token") +
           "&userInfo=" +
           JSON.stringify(this.userInfo) +