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