feat: 规范化页面导航与交互体验,优化多端适配

- 统一定制顶部导航组件,支持沉浸式渐变主题与返回逻辑
- 适配 H5 环境的页面跳转逻辑,避免 reLaunch 导致的闪屏问题
- 重构会员、充值、发布等页面布局,改用 Grid 提升移动端适配
- 优化搜索、收藏、消息等页面交互细节,增加点击反馈
- 统一配置页面导航样式,替换原生导航为自定义组件
这个提交包含在:
2026-10-20 13:56:05 +08:00
父节点 c2e0f72b30
当前提交 d508949921
共有 20 个文件被更改,包括 716 次插入 和 182 次删除

查看文件

@@ -8,15 +8,23 @@
* @returns {Object} 包含 statusBarHeight, navBarHeight, capsulePadding, capsuleWidth, capsuleHeight, capsuleTop, totalHeight
*/
export function getNavMetrics() {
let statusBarHeight = 20
let statusBarHeight = 0
let navBarHeight = 44
let capsulePadding = 0
let capsuleWidth = 0
let capsuleHeight = 32
let capsuleTop = 24
let capsuleTop = 6
let capsuleRight = 0
try {
// #ifdef H5
// 浏览器环境下通常无需模拟系统状态栏,状态栏高度置 0,导航栏高度固定 44px
statusBarHeight = 0
navBarHeight = 44
capsulePadding = 0
// #endif
// #ifndef H5
const sys = uni.getSystemInfoSync ? uni.getSystemInfoSync() : null
if (sys && sys.statusBarHeight) {
statusBarHeight = sys.statusBarHeight
@@ -44,8 +52,9 @@ export function getNavMetrics() {
}
}
// #endif
// #endif
} catch (e) {
capsulePadding = 96
capsulePadding = 0
}
return {