Commit a2cd2c21 authored by 黄奎's avatar 黄奎

111

parent 72c67320
......@@ -174,9 +174,9 @@
queryTecherCourse(){
getTeacherCourse().then(r=>{
data.courses=r.Data
data.titleList[0].data=r.Data.AllCourseList.reverse()
data.titleList[1].data=r.Data.NotFinishList.reverse()
data.titleList[2].data=r.Data.FinishList.reverse()
data.titleList[0].data=r.Data.AllCourseList
data.titleList[1].data=r.Data.NotFinishList
data.titleList[2].data=r.Data.FinishList
data.currentCourse=r.Data.AllCourseList.length>0?r.Data.AllCourseList[0]:null
console.log(data.currentCourse)
ctx.emit('change',data.currentCourse?data.currentCourse.courseId:0)
......
//请求教育接口
let host = ''
if (process.env.NODE_ENV === "development") {
//host = 'http://localhost:5004/api'
host = 'https://jjswapi.oytour.com/api'
// host = 'http://192.168.10.65:8085/api'
} else {
host = 'https://jjswapi.oytour.com/api'
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment