diff --git a/pages/index/index.nvue b/pages/index/index.nvue
index 46b245d..130a889 100644
--- a/pages/index/index.nvue
+++ b/pages/index/index.nvue
@@ -115,7 +115,7 @@
-
{{ item.name }}
@@ -277,7 +277,7 @@ const otherList = [{
},
{
icon: "/static/image/index/qita/danliao.png",
- name: "视频单聊",
+ name: "视频聊天",
path: "/pages/other/video-chat/video-chat"
},
{
@@ -416,19 +416,19 @@ onShow(() => {
// #endif
})
function isShowBankIdCard(item) {
- if (item.name != '银行卡' && item.name != '身份证' && item.name != '工资条' && item.name != '高考') {
- return true
- } else if (item.name == '银行卡' && data.bank) {
- return true
- } else if (item.name == '身份证' && data.idcard) {
- return true
- } else if (item.name == '工资条' && data.payslip) {
- return true
- } else if (item.name == '高考' && data.score) {
- return true
- } else {
- return false
- }
+ if (item.name != '银行卡' && item.name != '身份证' && item.name != '工资条' && item.name != '高考') {
+ return true
+ } else if (item.name == '银行卡' && data.bank) {
+ return true
+ } else if (item.name == '身份证' && data.idcard) {
+ return true
+ } else if (item.name == '工资条' && data.payslip) {
+ return true
+ } else if (item.name == '高考' && data.score) {
+ return true
+ } else {
+ return false
+ }
}
/**
* 获取用户数据(从服务器)
diff --git a/pages/other/video-chat/video-chat.vue b/pages/other/video-chat/video-chat.vue
index 9601d38..2412c07 100644
--- a/pages/other/video-chat/video-chat.vue
+++ b/pages/other/video-chat/video-chat.vue
@@ -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('🧹 页面卸载,已清理所有定时器')
})