添加课程加载提示

This commit is contained in:
@fawn-nine
2024-10-17 09:41:25 +08:00
parent 011872da9c
commit 236771ec11

View File

@@ -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() {