fix: avatar page

This commit is contained in:
zzc
2026-01-31 22:23:39 +08:00
parent f9453bae82
commit e6b22d608b
14 changed files with 154 additions and 131 deletions

View File

@@ -196,6 +196,15 @@ const saveCard = () => {
justify-content: center;
align-items: center;
color: #fff;
position: relative;
}
.back-btn::after {
content: "";
position: absolute;
top: -10px;
left: -10px;
right: -10px;
bottom: -10px;
}
.top-banner {

View File

@@ -2,7 +2,7 @@
<view class="fortune-page" :style="{ paddingTop: getBavBarHeight() + 'px' }">
<!-- 顶部导航 -->
<view class="nav-bar">
<view class="back-btn" @tap="goBack"></view>
<view class="back" @tap="goBack"></view>
<text class="nav-title">2026 新年运势</text>
</view>
@@ -397,22 +397,27 @@ const saveCard = () => {
height: 44px;
display: flex;
align-items: center;
padding: 0 16px;
padding: 0 24rpx;
z-index: 100;
position: relative;
}
.back-btn {
font-size: 28px;
.back {
font-size: 50rpx;
color: #ffd700;
margin-right: 12px;
margin-right: 24rpx;
line-height: 1;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
padding: 20rpx;
margin-left: -20rpx;
}
.nav-title {
font-size: 18px;
font-size: 34rpx;
font-weight: 600;
color: #ffd700;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
flex: 1;
text-align: center;
margin-right: 50rpx;
}
/* 初始状态 */

View File

@@ -3,9 +3,7 @@
<!-- 导航栏 -->
<view class="nav-bar" :style="{ height: navBarHeight + 'px' }">
<view class="nav-content" :style="{ paddingTop: statusBarHeight + 'px' }">
<view class="back-btn" @tap="goBack">
<text class="uni-icons"></text>
</view>
<view class="back" @tap="goBack"></view>
<text class="nav-title">我的运势记录</text>
</view>
</view>
@@ -209,23 +207,23 @@ onLoad(() => {
height: 100%;
display: flex;
align-items: center;
padding: 0 16px;
position: relative;
padding: 0 24rpx;
}
.back-btn {
font-size: 32px;
.back {
font-size: 50rpx;
color: #fff;
margin-right: 12px;
margin-right: 24rpx;
line-height: 1;
padding: 0 10px;
padding: 20rpx;
margin-left: -20rpx;
}
.nav-title {
font-size: 18px;
font-size: 34rpx;
font-weight: 600;
color: #fff;
position: absolute;
left: 50%;
transform: translateX(-50%);
flex: 1;
text-align: center;
margin-right: 50rpx;
}
.content-scroll {