Explorar el Código

fix:多课程首次进来请求多老师接口

xuqiaoying hace 3 años
padre
commit
39cf4b4369
Se han modificado 2 ficheros con 5 adiciones y 3 borrados
  1. 2 2
      common/request.js
  2. 3 1
      pages3/polyv/detail.vue

+ 2 - 2
common/request.js

@@ -6,10 +6,10 @@ var num = 1
 //接口api   
 // export const BASE_URL = 'https://api.xyyxt.net'   //release
 // export const BASE_URL = 'https://test.xyyxt.net'   //预发布
-// 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'    //后端本地更新到222
-export const BASE_URL = 'http://192.168.1.24:5055'    //后端本地
+// export const BASE_URL = 'http://192.168.1.24:5055'    //后端本地
 // export const BASE_URL = 'http://192.168.1.7:5055'    //后端本地
 
  //图片上传api

+ 3 - 1
pages3/polyv/detail.vue

@@ -857,6 +857,7 @@ export default {
             //获取商品双师资模板
             this.getCourseTeacher(this.courseList)
           } else {
+            this.getCourseTeacher(this.courseList)
             this.toggleCourseShow = true
           }
           
@@ -1128,6 +1129,7 @@ export default {
       await this.originUnload()
 
       if (type) {
+        this.teacherIndex = this.teaIndex
         this.goodsTeacher.forEach((citem) => {
             if(citem.courseList.some(x => x.courseId == item.courseId)){
               this.teacherList = citem.teaList
@@ -1138,7 +1140,7 @@ export default {
       this.courseId = item.courseId
       this.gradeId = item.gradeId
       this.toggleCourseShow = false
-      this.teacherIndex = type ? this.teaIndex : 0
+      
       
       if (index == 0) {
         if (item.rebuild === 0) {