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

View File

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

View File

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

View File

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

View File

@@ -2,7 +2,7 @@
<view class="fortune-page" :style="{ paddingTop: getBavBarHeight() + 'px' }"> <view class="fortune-page" :style="{ paddingTop: getBavBarHeight() + 'px' }">
<!-- 顶部导航 --> <!-- 顶部导航 -->
<view class="nav-bar"> <view class="nav-bar">
<view class="back-btn" @tap="goBack"></view> <view class="back" @tap="goBack"></view>
<text class="nav-title">2026 新年运势</text> <text class="nav-title">2026 新年运势</text>
</view> </view>
@@ -397,22 +397,27 @@ const saveCard = () => {
height: 44px; height: 44px;
display: flex; display: flex;
align-items: center; align-items: center;
padding: 0 16px; padding: 0 24rpx;
z-index: 100; z-index: 100;
position: relative; position: relative;
} }
.back-btn { .back {
font-size: 28px; font-size: 50rpx;
color: #ffd700; color: #ffd700;
margin-right: 12px; margin-right: 24rpx;
line-height: 1; line-height: 1;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
padding: 20rpx;
margin-left: -20rpx;
} }
.nav-title { .nav-title {
font-size: 18px; font-size: 34rpx;
font-weight: 600; font-weight: 600;
color: #ffd700; color: #ffd700;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); 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-bar" :style="{ height: navBarHeight + 'px' }">
<view class="nav-content" :style="{ paddingTop: statusBarHeight + 'px' }"> <view class="nav-content" :style="{ paddingTop: statusBarHeight + 'px' }">
<view class="back-btn" @tap="goBack"> <view class="back" @tap="goBack"></view>
<text class="uni-icons"></text>
</view>
<text class="nav-title">我的运势记录</text> <text class="nav-title">我的运势记录</text>
</view> </view>
</view> </view>
@@ -209,23 +207,23 @@ onLoad(() => {
height: 100%; height: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
padding: 0 16px; padding: 0 24rpx;
position: relative;
} }
.back-btn { .back {
font-size: 32px; font-size: 50rpx;
color: #fff; color: #fff;
margin-right: 12px; margin-right: 24rpx;
line-height: 1; line-height: 1;
padding: 0 10px; padding: 20rpx;
margin-left: -20rpx;
} }
.nav-title { .nav-title {
font-size: 18px; font-size: 34rpx;
font-weight: 600; font-weight: 600;
color: #fff; color: #fff;
position: absolute; flex: 1;
left: 50%; text-align: center;
transform: translateX(-50%); margin-right: 50rpx;
} }
.content-scroll { .content-scroll {

View File

@@ -6,13 +6,8 @@
:style="{ height: navBarHeight + 'px', paddingTop: navBarTop + 'px' }" :style="{ height: navBarHeight + 'px', paddingTop: navBarTop + 'px' }"
> >
<view class="nav-content"> <view class="nav-content">
<view class="back-btn" @tap="goBack"> <view class="back" @tap="goBack"></view>
<text class="back-arrow"></text> <text class="nav-title">我的制作记录</text>
</view>
<view class="title-wrap">
<text class="title">我的制作记录</text>
<view class="more-btn"></view>
</view>
</view> </view>
</view> </view>
@@ -256,46 +251,27 @@ const getDefaultName = (item) => {
background-color: #f9f9f9; background-color: #f9f9f9;
.nav-content { .nav-content {
height: 44px; height: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; // Changed to space-between padding: 0 24rpx;
padding: 0 16px; // Added padding
.back-btn { .back {
height: 100%; font-size: 50rpx;
display: flex; margin-right: 24rpx;
align-items: center; line-height: 1;
padding-right: 20px; color: #333;
padding: 20rpx;
.back-arrow { margin-left: -20rpx;
font-size: 32px;
color: #333;
font-weight: 300;
}
} }
.title-wrap { .nav-title {
font-size: 34rpx;
font-weight: bold;
color: #333;
flex: 1; flex: 1;
display: flex; text-align: center;
align-items: center; margin-right: 50rpx;
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
}
} }
} }
} }

View File

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

View File

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

View File

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

View File

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