Prechádzať zdrojové kódy

fix: 查询视频课程用户最后一次看的信息

xuqiaoying 2 rokov pred
rodič
commit
be331ed70a

+ 8 - 0
src/apis/user.js

@@ -364,6 +364,14 @@ export default {
         params:data,
       })
     },
+    //查询视频课程用户最后一次看的信息
+    studyrecordgetUserStudyLast(data) {
+      return request({
+        url: '/study/record/getUserStudyLast',
+        method: 'get',
+        params:data,
+      })
+    },
     //获取用户最后一次做的题库试卷信息
     examrecordgetUserDoLast(data) {
        return request({

+ 2 - 2
src/axios.js

@@ -4,9 +4,9 @@ import { Message } from 'element-ui'
 // export const BASE_URL = 'https://api.xyyxt.net'   //release
 // export const BASE_URL = 'http://42.192.164.187:19005'    //test
 // export const BASE_URL = 'https://test.xyyxt.net'   //预发布
-export const BASE_URL = 'http://192.168.1.7:5055'    //dev
+// export const BASE_URL = 'http://192.168.1.7:5055'    //dev
 // export const BASE_URL = 'http://192.168.1.24:5055'    //dev
-// export const BASE_URL = 'http://120.79.166.78:19012'    //测试-外网
+export const BASE_URL = 'http://120.79.166.78:19012'    //测试-外网
 // export const BASE_URL = 'http://42.192.164.187:19005'    //test
 // export const BASE_URL = 'http://192.168.1.222:5055'    //测试
 export const tenantId = '867735392558919680'

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

@@ -933,8 +933,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++){
@@ -1048,9 +1048,9 @@ export default {
             }
           }
           }
-        } else {
-          this.resultCourseGoodsList();
-        }
+        // } else {
+        //   this.resultCourseGoodsList();
+        // }
       });
     },
     resultCourseGoodsList() {