新增编辑资料入口,优化用户个人信息管理体验。更新 app.json 文件以包含新页面路径,确保导航功能正常。调整样式以提升界面友好性。

This commit is contained in:
2026-02-13 17:47:13 +08:00
parent eea4a542de
commit c13ee38786
8 changed files with 584 additions and 64 deletions

View File

@@ -610,6 +610,15 @@ Page({
}
},
// 跳转编辑资料页
goEditProfile() {
if (!this.data.isLoggedIn) {
this.showLogin()
return
}
wx.navigateTo({ url: '/pages/profile-edit/profile-edit' })
},
// 点击菜单
handleMenuTap(e) {
const id = e.currentTarget.dataset.id

View File

@@ -73,6 +73,12 @@
</view>
</view>
</view>
<!-- 编辑资料入口 -->
<view class="edit-profile-entry" bindtap="goEditProfile">
<text class="edit-profile-icon">✏️</text>
<text class="edit-profile-text">编辑资料</text>
</view>
<view class="stats-grid">
<view class="stat-item">

View File

@@ -95,6 +95,34 @@
white-space: nowrap;
}
/* 编辑资料入口 - 深色圆角按钮 */
.edit-profile-entry {
display: flex;
align-items: center;
justify-content: center;
gap: 16rpx;
width: 100%;
padding: 28rpx 32rpx;
margin-bottom: 24rpx;
background: rgba(255, 255, 255, 0.06);
border: 2rpx solid rgba(0, 206, 209, 0.25);
border-radius: 24rpx;
}
.edit-profile-entry:active {
background: rgba(255, 255, 255, 0.1);
}
.edit-profile-icon {
font-size: 32rpx;
}
.edit-profile-text {
font-size: 28rpx;
font-weight: 500;
color: #00CED1;
}
.card-gradient {
background: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 100%);
border-radius: 32rpx;