优化视频聊天页

This commit is contained in:
tangxinyue 2026-06-18 17:17:59 +08:00
parent fe48026d19
commit b90c0c6774
2 changed files with 55 additions and 15 deletions

View File

@ -115,7 +115,7 @@
<image class="title-img" src="/static/image/index/qita.png"></image>
<view class="video-help-box">
<template v-for="item in otherList" :key="item.id">
<view class="video-help-item" :style="{ width: (windowWidth - 32) / 4 + 'px' }"
<view class="video-help-item" :style="{ width: (windowWidth - 36) / 4 + 'px' }"
@click="clickMenu(item)" v-if="isShowBankIdCard(item)">
<image class="video-help-img" :src="item.icon"></image>
<text class="video-help-title">{{ item.name }}</text>
@ -277,7 +277,7 @@ const otherList = [{
},
{
icon: "/static/image/index/qita/danliao.png",
name: "视频聊",
name: "视频聊",
path: "/pages/other/video-chat/video-chat"
},
{

View File

@ -622,6 +622,12 @@ onShow(() => {
// #ifdef APP-PLUS
util.setAndroidSystemBarColor('#FFFFFF')
//
// if (plus.navigator.hideSystemNavigation) {
// plus.navigator.hideSystemNavigation()
// }
// 便
statusBarTimer = setTimeout(() => {
plus.navigator.setStatusBarStyle("light");
@ -629,6 +635,31 @@ onShow(() => {
// #endif
})
// #ifdef APP-PLUS
// const restoreSystemNavigation = () => {
// if (plus.os.name === 'Android') {
// try {
// const main = plus.android.runtimeMainActivity();
// if (main) {
// const window = main.getWindow();
// const decorView = window.getDecorView();
// const View = plus.android.importClass("android.view.View");
// const uiOptions = decorView.getSystemUiVisibility();
// // flag
// const newUiOptions = uiOptions & ~View.SYSTEM_UI_FLAG_HIDE_NAVIGATION & ~View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY;
// decorView.setSystemUiVisibility(newUiOptions);
// // pages.json
// const Color = plus.android.importClass("android.graphics.Color");
// window.setNavigationBarColor(Color.TRANSPARENT);
// }
// } catch (e) {
// console.log(':', e);
// }
// }
// }
// #endif
//
onHide(() => {
//
@ -649,6 +680,11 @@ onHide(() => {
stopTimer() //
// #ifdef APP-PLUS
// restoreSystemNavigation()
// #endif
console.log('🚪 页面隐藏,已清理定时器和状态')
})
@ -667,6 +703,10 @@ onUnmounted(() => {
data.dragState.longPressTimer = null
}
// #ifdef APP-PLUS
// restoreSystemNavigation()
// #endif
console.log('🧹 页面卸载,已清理所有定时器')
})