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

@@ -6,13 +6,8 @@
:style="{ height: navBarHeight + 'px', paddingTop: navBarTop + 'px' }"
>
<view class="nav-content">
<view class="back-btn" @tap="goBack">
<text class="back-arrow"></text>
</view>
<view class="title-wrap">
<text class="title">我的制作记录</text>
<view class="more-btn"></view>
</view>
<view class="back" @tap="goBack"></view>
<text class="nav-title">我的制作记录</text>
</view>
</view>
@@ -256,46 +251,27 @@ const getDefaultName = (item) => {
background-color: #f9f9f9;
.nav-content {
height: 44px;
height: 100%;
display: flex;
align-items: center;
justify-content: space-between; // Changed to space-between
padding: 0 16px; // Added padding
padding: 0 24rpx;
.back-btn {
height: 100%;
display: flex;
align-items: center;
padding-right: 20px;
.back-arrow {
font-size: 32px;
color: #333;
font-weight: 300;
}
.back {
font-size: 50rpx;
margin-right: 24rpx;
line-height: 1;
color: #333;
padding: 20rpx;
margin-left: -20rpx;
}
.title-wrap {
.nav-title {
font-size: 34rpx;
font-weight: bold;
color: #333;
flex: 1;
display: flex;
align-items: center;
justify-content: center;
position: relative;
margin-right: 32px; // Balance the back button space
.title {
font-size: 18px;
font-weight: 600;
color: #333;
}
.more-btn {
position: absolute;
right: -20px;
font-size: 20px;
color: #333;
display: none; // Hide for now as per design mockup clean look
}
text-align: center;
margin-right: 50rpx;
}
}
}

View File

@@ -310,21 +310,21 @@ const onEdit = (item) => {
height: 44px;
display: flex;
align-items: center;
justify-content: center;
position: relative;
padding: 0 24rpx;
.back-btn {
position: absolute;
left: 16px;
height: 100%;
display: flex;
align-items: center;
padding: 0 10px;
margin-right: 24rpx;
/* 增大点击区域 */
padding: 20rpx;
margin-left: -20rpx;
.back-arrow {
font-size: 32px;
font-size: 50rpx;
color: #333;
font-weight: 300;
line-height: 1;
}
}
@@ -332,6 +332,9 @@ const onEdit = (item) => {
font-size: 18px;
font-weight: 600;
color: #333;
flex: 1;
text-align: center;
margin-right: 50rpx; /* Balance back button */
}
}
}

View File

@@ -230,28 +230,26 @@ const toggleQuestion = (catIndex, itemIndex) => {
z-index: 100;
display: flex;
align-items: center;
justify-content: center;
padding: 0 24rpx;
background: #fff;
}
.nav-left {
position: absolute;
left: 20rpx;
bottom: 0;
height: 44px;
display: flex;
align-items: center;
padding: 0 10rpx;
margin-right: 24rpx;
/* 增大点击区域 */
padding: 20rpx;
margin-left: -20rpx;
}
.nav-title {
font-size: 32rpx;
font-weight: bold;
color: #000;
position: absolute;
bottom: 0;
height: 44px;
line-height: 44px;
flex: 1;
text-align: center;
margin-right: 50rpx; /* Balance back button */
}
.search-box {

View File

@@ -255,22 +255,25 @@ const handleSave = async () => {
background-color: #fcfcfc;
display: flex;
align-items: center;
justify-content: center;
padding: 0 24rpx;
z-index: 100;
.nav-left {
position: absolute;
left: 30rpx;
bottom: 0;
height: 44px;
display: flex;
align-items: center;
margin-right: 24rpx;
/* 增大点击区域 */
padding: 20rpx;
margin-left: -20rpx;
}
.nav-title {
font-size: 34rpx;
font-weight: 600;
color: #000;
flex: 1;
text-align: center;
margin-right: 50rpx; /* Balance back button */
}
}

View File

@@ -8,9 +8,7 @@
paddingTop: statusBarHeight + 'px',
}"
>
<view class="nav-left" @click="goBack">
<uni-icons type="left" size="24" color="#000" />
</view>
<view class="back" @click="goBack"></view>
<text class="nav-title">会员中心</text>
</view>
@@ -238,23 +236,26 @@ const handlePurchase = async () => {
background-color: #fff;
display: flex;
align-items: center;
justify-content: center;
padding: 0 24rpx;
z-index: 100;
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
.nav-left {
position: absolute;
left: 30rpx;
bottom: 0;
height: 44px; // Standard title bar height
display: flex;
align-items: center;
.back {
font-size: 50rpx;
margin-right: 24rpx;
line-height: 1;
color: #333;
padding: 20rpx;
margin-left: -20rpx;
}
.nav-title {
font-size: 34rpx;
font-weight: 600;
color: #000;
flex: 1;
text-align: center;
margin-right: 50rpx;
}
}

View File

@@ -169,21 +169,21 @@ const onPreview = (item) => {
height: 44px;
display: flex;
align-items: center;
justify-content: center;
position: relative;
padding: 0 24rpx;
.back-btn {
position: absolute;
left: 16px;
height: 100%;
display: flex;
align-items: center;
padding: 0 10px;
margin-right: 24rpx;
/* 增大点击区域 */
padding: 20rpx;
margin-left: -20rpx;
.back-arrow {
font-size: 32px;
font-size: 50rpx;
color: #333;
font-weight: 300;
line-height: 1;
}
}
@@ -191,6 +191,9 @@ const onPreview = (item) => {
font-size: 18px;
font-weight: 600;
color: #333;
flex: 1;
text-align: center;
margin-right: 50rpx; /* Balance back button */
}
}
}