Просмотр исходного кода

fix:消息预约考试和多课程数据重复

xuqiaoying 3 лет назад
Родитель
Сommit
4783885291
4 измененных файлов с 18 добавлено и 9 удалено
  1. 6 2
      pages2/appointment/index.vue
  2. 4 3
      pages2/msg/detail.vue
  3. 2 0
      pages3/live/detail.vue
  4. 6 4
      pages3/polyv/detail.vue

+ 6 - 2
pages2/appointment/index.vue

@@ -107,7 +107,7 @@ export default {
     };
   },
   onLoad(option) {
-    this.applyId = option.applyId;
+    this.applyId = option.applyId || '';
     this.goodsId = Number(option.goodsId);
     this.gradeId = Number(option.gradeId);
     this.orderGoodsId = Number(option.orderGoodsId) || "";
@@ -133,7 +133,11 @@ export default {
           goodsId: this.goodsId,
         }
       }).then((res) => {
-        console.log('-----', res)
+        console.log('----listSubscribe-', res)
+        if (res.data.code == 200) {
+          this.applyId = res.data.data.applyId
+          this.getInfo()
+        }
       })
     },
     getInfo() {

+ 4 - 3
pages2/msg/detail.vue

@@ -289,10 +289,11 @@ export default {
 							});
 						}
 						if (res.data.code === 200) {
+							// 725,645,2232
 							this.$navTo.togo('/pages2/appointment/index', {
-								goodsId: 725 || item.goodsId,
-								gradeId: 645 || item.gradeId,
-								orderGoodsId: 2232 || this.orderGoodsId,
+								goodsId: item.goodsId,
+								gradeId: item.gradeId,
+								orderGoodsId: this.orderGoodsId,
 							});
 						}
 					});

+ 2 - 0
pages3/live/detail.vue

@@ -802,6 +802,8 @@ export default {
       })
     },
     courseCourseList() {
+      console.log('ahhhhhhh直播hhhhhh')
+      this.courseList = []
       this.$api.courseCourseList({
         pageNum: 1,
         pageSize: 100,

+ 6 - 4
pages3/polyv/detail.vue

@@ -770,8 +770,9 @@ export default {
       })
     },
     courseCourseList() {
-      console.log('ahhhhhhhhhhhhh')
+      console.log('ahhhhh视频hhhhhhhh')
       // /course/courseList查询商品下的课程列表
+      this.courseList = []
       this.$api.courseCourseList({
         pageNum: 1,
         pageSize: 100,
@@ -927,6 +928,7 @@ export default {
       this.reStart = false
       this.courseId = item.courseId
       this.gradeId = item.gradeId
+      this.toggleCourseShow = false
       // return
       if (index == 0) {
         if (item.rebuild === 0) {
@@ -965,7 +967,7 @@ export default {
                   //   orderGoodsId: this.orderGoodsId,
                   // });
                   this.courseId = item.courseId
-                  this.toggleCourseShow = false
+                  // this.toggleCourseShow = false
                   this.originOnShow()
                   this.originMounted()
                 }
@@ -1017,7 +1019,7 @@ export default {
                       //   orderGoodsId: this.orderGoodsId,
                       // });
                       this.courseId = item.courseId
-                      this.toggleCourseShow = false
+                      // this.toggleCourseShow = false
                       this.originOnShow()
                       this.originMounted()
                     }
@@ -1066,7 +1068,7 @@ export default {
                     //   orderGoodsId: this.orderGoodsId,
                     // });
                     this.courseId = item.courseId
-                    this.toggleCourseShow = false
+                    // this.toggleCourseShow = false
                     this.originOnShow()
                     this.originMounted()
                   }