111
This commit is contained in:
@@ -565,9 +565,10 @@
|
||||
this.LearningCourseList.status = 2
|
||||
// }
|
||||
} else {
|
||||
this.LearningCourseList.list = []
|
||||
this.LearningCourseList.status = 3 // 暂无数据
|
||||
}
|
||||
console.log('status', this.LearningCourseList.status)
|
||||
// console.log('status我刷新了', this.LearningCourseList)
|
||||
}
|
||||
// this.LearningCourseList.flag = false
|
||||
}).catch(e => {
|
||||
@@ -670,7 +671,7 @@
|
||||
})
|
||||
},
|
||||
delCollection(val, index){
|
||||
// console.log(val,'val');
|
||||
console.log('val++++++++', val.id);
|
||||
$http.request({
|
||||
url: "medical/course/delUserCourseStudying",
|
||||
method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
|
||||
@@ -690,13 +691,18 @@
|
||||
})
|
||||
if(this.curTagId == 0){
|
||||
console.log(this.MyCourseList.list[index],'this.MyCourseList[index]')
|
||||
this.MyCourseList.list[index].isStudying = 0
|
||||
this.getLearningCourseList() // 刷新收藏列表
|
||||
this.MyCourseList.list[index].isStudying = 0
|
||||
setTimeout(() => {
|
||||
this.getLearningCourseList() // 刷新收藏列表
|
||||
},500)
|
||||
}else if(this.curTagId == 1){
|
||||
this.LearningCourseList.list.splice(index,1)
|
||||
this.MyCourseList.page = 1
|
||||
this.MyCourseList.list = []
|
||||
this.getMyCourseList()
|
||||
this.LearningCourseList.list.splice(index,1)
|
||||
|
||||
setTimeout(() => {
|
||||
this.MyCourseList.page = 1
|
||||
this.MyCourseList.list = []
|
||||
this.getMyCourseList()
|
||||
},500)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user