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

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

查看文件

@@ -67,11 +67,21 @@ export default {
* 点击返回上一页,若无历史页面则返回首页
*/
onBack() {
const pages = getCurrentPages()
const pages = getCurrentPages ? getCurrentPages() : []
if (pages && pages.length > 1) {
uni.navigateBack()
} else {
// #ifdef H5
uni.redirectTo({
url: '/pages/index/index',
fail: () => {
uni.reLaunch({ url: '/pages/index/index' })
},
})
// #endif
// #ifndef H5
uni.reLaunch({ url: '/pages/index/index' })
// #endif
}
},
},
@@ -106,28 +116,40 @@ export default {
.fc-navbar__bar {
display: flex;
align-items: center;
padding-left: 24rpx;
padding-left: 16rpx;
box-sizing: border-box;
position: relative;
}
.fc-navbar__back {
width: 60rpx;
height: 60rpx;
width: 72rpx;
height: 72rpx;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
cursor: pointer;
border-radius: 50%;
transition: background-color 0.2s ease, transform 0.15s ease;
&:active {
transform: scale(0.92);
background-color: rgba(255, 255, 255, 0.18);
}
}
.fc-navbar--white .fc-navbar__back:active {
background-color: rgba(0, 0, 0, 0.06);
}
.fc-navbar__back-icon {
font-size: 52rpx;
font-size: 54rpx;
line-height: 1;
font-weight: 300;
margin-top: -4rpx;
}
.fc-navbar__title {
flex: 1;
min-width: 0;
display: flex;
align-items: center;
padding: 0 12rpx;
&--center {
justify-content: center;
text-align: center;
@@ -135,7 +157,8 @@ export default {
}
.fc-navbar__title-text {
font-size: $fc-font-xl;
font-weight: 600;
font-weight: 700;
letter-spacing: 0.5rpx;
}
.fc-navbar__right {
position: relative;
@@ -143,5 +166,7 @@ export default {
display: flex;
align-items: center;
flex-shrink: 0;
min-width: 72rpx;
justify-content: flex-end;
}
</style>