跳转登陆页bug

This commit is contained in:
@fawn-nine
2024-10-16 15:16:51 +08:00
parent 18e1cc0c83
commit 3cb0b4c990
4 changed files with 26 additions and 9 deletions

View File

@@ -3,7 +3,7 @@
<!-- 公共组件-每个页面必须引入 -->
<public-module></public-module>
<!-- <z-nav-bar :title="pageTitle ? pageTitle : '课程详情'"> -->
<z-nav-bar title="课程介绍"></z-nav-bar>
<z-nav-bar title="课程介绍"></z-nav-bar>
<view class="contentBox commonPageContentBox" >
<u-alert v-if="goBuyTitle && isAndorid" style="
background: linear-gradient(90deg, #258feb 0%, #00e1ec 100%);
@@ -1247,7 +1247,7 @@
uni.navigateTo({
url: `/pages/course/myCourseLearn?id=${this.course.id}`,
});
},
},
async getData(id) {
this.courseList = [];
// console.log("at line 1167:", "调用了几次");
@@ -1260,7 +1260,7 @@
data: {
id: id,
},
header: {
header: {
//默认 无 说明:请求头
"Content-Type": "application/json",
},
@@ -1335,6 +1335,13 @@
})
.catch((e) => {
console.log(e, "获取目录数据报错");
// if(e.statusCode == 0){
// uni.showToast({
// title:'获取课程信息失败,请稍后尝试',
// icon:'none',
// duration: 5000
// })
// }
});
},
goBuy() {