添加课程加载提示
This commit is contained in:
@@ -1593,7 +1593,9 @@
|
||||
this.courseList = [];
|
||||
// console.log("at line 1167:", "调用了几次");
|
||||
var that = this;
|
||||
|
||||
uni.showLoading({
|
||||
title:'获取课程信息'
|
||||
})
|
||||
await $http
|
||||
.request({
|
||||
url: "sociology/course/getCourseDetail",
|
||||
@@ -1607,6 +1609,14 @@
|
||||
},
|
||||
})
|
||||
.then(async (res) => {
|
||||
uni.hideLoading()
|
||||
if(res.code != 0) {
|
||||
uni.showToast({
|
||||
title:res.errMsg,
|
||||
icon:'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
if (res.code == 0) {
|
||||
this.course = res.data.course;
|
||||
//0 购买 1 续费 2 升级
|
||||
@@ -1691,7 +1701,8 @@
|
||||
}
|
||||
})
|
||||
.catch((e) => {
|
||||
console.log(e, "获取目录数据报错666");
|
||||
uni.hideLoading()
|
||||
console.log(e, "获取课程数据报错666");
|
||||
});
|
||||
},
|
||||
goBuy() {
|
||||
|
||||
Reference in New Issue
Block a user