This commit is contained in:
2024-07-03 14:11:37 +08:00
9 changed files with 51 additions and 32 deletions

View File

@@ -256,7 +256,10 @@
onShow() {
// 隐藏原生的tabbar
uni.hideTabBar();
// #ifdef APP-PLUS
plus.screen.unlockOrientation();
plus.screen.lockOrientation("portrait-primary");
// #endif
},
onReachBottom() {
console.log('触底');

View File

@@ -204,8 +204,10 @@
onShow() {
// 隐藏原生的tabbar
uni.hideTabBar();
// #ifdef APP-PLUS
plus.screen.unlockOrientation();
plus.screen.lockOrientation("portrait-primary");
// #endif
this.getData(this.courseId)
},
onReachBottom() {
@@ -646,6 +648,10 @@
}).catch(e => {
console.log(e, '获取目录数据报错')
uni.showToast({
title:"获取数据失败",
icon:'error'
})
});
},
@@ -887,6 +893,10 @@
}).catch(e => {
console.log(e, '获取章节列表数据报错')
uni.showToast({
title:"获取数据失败",
icon:'error'
})
});
},
// 跳转