This commit is contained in:
@fawn-nine
2024-09-14 16:12:22 +08:00
parent 5ee3ec4398
commit 1fb002d3b9
3 changed files with 6 additions and 3 deletions

View File

@@ -301,7 +301,7 @@
}, },
onLoad(options) { onLoad(options) {
// #ifdef APP-PLUS // #ifdef APP-PLUS
plus.screen.lockOrientation("default"); plus.screen.lockOrientation("portrait-primary")
// #endif // #endif
this.answerForm.relationId = options.id this.answerForm.relationId = options.id
this.options = options; this.options = options;

View File

@@ -2,7 +2,7 @@
<view> <view>
<public-module></public-module> <public-module></public-module>
<z-nav-bar title="班级详情"></z-nav-bar> <z-nav-bar title="班级详情"></z-nav-bar>
<text class="small_btn retake border_radius_10" @click="goTest()">再考一次</text> <!-- <text class="small_btn retake border_radius_10" @click="goTest()">再考一次</text> -->
<!-- <text class="" @click="showSubmit">提交证件资料</text> --> <!-- <text class="" @click="showSubmit">提交证件资料</text> -->
<view class="mainContent" v-if="thisClass.id"> <view class="mainContent" v-if="thisClass.id">
<view :class="['classStatus', <view :class="['classStatus',
@@ -629,6 +629,9 @@
}, },
onLoad(e) { onLoad(e) {
uni.hideTabBar(); uni.hideTabBar();
// #ifdef APP-PLUS
plus.screen.lockOrientation("portrait-primary")
// #endif
this.classId = e.id this.classId = e.id
console.log('this.classId',this.classId ); console.log('this.classId',this.classId );
this.getUserRole() this.getUserRole()

View File

@@ -374,7 +374,7 @@
async onShow() { async onShow() {
uni.hideTabBar(); uni.hideTabBar();
// #ifdef APP-PLUS // #ifdef APP-PLUS
plus.screen.unlockOrientation(); // plus.screen.unlockOrientation();
plus.screen.lockOrientation("portrait-primary"); plus.screen.lockOrientation("portrait-primary");
// #endif // #endif
this.requestAll() this.requestAll()