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

@@ -2,7 +2,7 @@
<view class="avatar-page" :style="{ paddingTop: getBavBarHeight() + 'px' }">
<view class="nav-bar">
<view class="back" @tap="goBack"></view>
<text class="nav-title-left">新春头像挂饰</text>
<text class="nav-title">新春头像挂饰</text>
</view>
<view class="preview-card">
<view class="preview-square">
@@ -725,12 +725,21 @@ const loadImage = (url) => {
padding: 16rpx 24rpx;
}
.back {
font-size: 40rpx;
margin-right: 12rpx;
font-size: 50rpx;
margin-right: 24rpx;
line-height: 1;
color: #333;
/* 增大点击区域 */
padding: 20rpx;
margin-left: -20rpx;
}
.nav-title-left {
font-size: 32rpx;
font-weight: 600;
.nav-title {
font-size: 34rpx;
font-weight: bold;
color: #333;
flex: 1;
text-align: center;
margin-right: 50rpx; /* Balance back button */
}
.preview-card {
margin: 20rpx 24rpx;

View File

@@ -219,23 +219,24 @@ const decorList = ref([
z-index: 100;
display: flex;
align-items: center;
justify-content: center;
padding-left: 20rpx;
padding: 0 24rpx;
background: #fff6f6; /* Match page bg */
}
.nav-left {
position: absolute;
left: 20rpx;
padding: 10rpx 20rpx;
font-size: 48rpx;
line-height: 1;
display: flex;
align-items: center;
margin-right: 24rpx;
/* 增大点击区域 */
padding: 20rpx;
margin-left: -20rpx;
}
.nav-title {
font-size: 32rpx;
font-weight: 600;
/* margin-left: 10rpx; */
font-size: 34rpx;
font-weight: bold;
color: #333;
flex: 1;
text-align: center;
margin-right: 50rpx; /* Balance back button */
}
.content-scroll {

View File

@@ -179,23 +179,31 @@ const submitFeedback = async () => {
}
.nav-bar {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 100;
display: flex;
align-items: center;
padding: 16rpx 24rpx;
padding: 0 24rpx;
background: #fff;
position: sticky;
top: 0;
z-index: 100;
}
.back {
font-size: 40rpx;
font-size: 50rpx;
margin-right: 24rpx;
line-height: 1;
color: #333;
padding: 20rpx;
margin-left: -20rpx;
}
.nav-title {
font-size: 32rpx;
font-weight: 600;
font-size: 34rpx;
font-weight: bold;
color: #333;
flex: 1;
text-align: center;
margin-right: 50rpx;
}
.content-wrap {

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 {

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;
display: flex;
align-items: center;
justify-content: space-between; // Changed to space-between
padding: 0 16px; // Added padding
.back-btn {
height: 100%;
display: flex;
align-items: center;
padding-right: 20px;
padding: 0 24rpx;
.back-arrow {
font-size: 32px;
.back {
font-size: 50rpx;
margin-right: 24rpx;
line-height: 1;
color: #333;
font-weight: 300;
}
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 */
}
}
}

View File

@@ -238,28 +238,31 @@ const goToAvatar = () => {
height: 44px; // Standard nav height
display: flex;
align-items: center;
justify-content: center;
position: relative;
padding: 0 24rpx;
.back {
position: absolute;
left: 16px;
height: 100%;
display: flex;
align-items: center;
padding: 0 10px;
margin-right: 24rpx;
/* 增大点击区域 */
padding: 20rpx;
margin-left: -20rpx;
.back-icon {
font-size: 32px;
font-size: 50rpx;
color: #333;
font-weight: 300;
line-height: 1;
}
}
.title {
font-size: 18px;
font-size: 34rpx;
font-weight: 600;
color: #333;
flex: 1;
text-align: center;
margin-right: 50rpx; /* Balance back button */
}
}
}

View File

@@ -271,12 +271,18 @@ const shareWallpaper = (item) => {};
margin-right: 24rpx;
line-height: 1;
color: #ffd700; /* Gold */
/* 增大点击区域 */
padding: 20rpx;
margin-left: -20rpx;
}
.nav-title {
font-size: 34rpx;
font-weight: 600;
color: #ffd700; /* Gold */
flex: 1;
text-align: center;
margin-right: 50rpx; /* Balance back button */
}
.category-tabs {