Ver Fonte

studyrecordgetUserStudyLast

xuqiaoying há 2 anos atrás
pai
commit
904c52edbd
1 ficheiros alterados com 6 adições e 5 exclusões
  1. 6 5
      src/pages/person-center/my-course/index.vue

+ 6 - 5
src/pages/person-center/my-course/index.vue

@@ -985,8 +985,8 @@ export default {
      * 获取学习记录
      */
     getRecord(item) {
-      this.$request.studyrecordgetUserWatchLast().then(async (res) => {
-        if (res.data && res.data.sectionId) {
+      this.$request.studyrecordgetUserStudyLast().then(async (res) => {
+        // if (res.data && res.data.sectionId) {
           await this.getGoodsData(res);
           var stop = false;
           for (let y = 0; y < this.goodsTeacher.length; y++) {
@@ -1115,9 +1115,10 @@ export default {
               }
             }
           }
-        } else {
-          this.resultCourseGoodsList();
-        }
+          
+        // } else {
+        //   this.resultCourseGoodsList();
+        // }
       });
     },
     resultCourseGoodsList() {