UI优化:我的页面和设置页面

1. 我的页面:
   - 头像可点击修改(支持修改头像和昵称)
   - 用户ID截短显示
   - 创业伙伴标签移到用户名旁边,不再拥挤
   - 整体布局更加舒适

2. 设置页面:
   - 去掉"联系客服"
   - 去掉"清除缓存"
   - 去掉"当前版本"
   - 只保留账号绑定和退出登录
This commit is contained in:
卡若
2026-01-29 11:20:12 +08:00
parent 395501e961
commit 8b2c3f4661
4 changed files with 188 additions and 45 deletions

View File

@@ -61,23 +61,53 @@
border: 2rpx solid rgba(0, 206, 209, 0.2);
}
.user-header {
/* ===== 新版用户头部布局 ===== */
.user-header-row {
display: flex;
align-items: center;
gap: 24rpx;
margin-bottom: 32rpx;
gap: 28rpx;
margin-bottom: 36rpx;
}
.avatar-wrapper {
position: relative;
flex-shrink: 0;
}
.avatar {
width: 128rpx;
height: 128rpx;
width: 120rpx;
height: 120rpx;
border-radius: 50%;
border: 4rpx solid #00CED1;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, rgba(0, 206, 209, 0.2) 0%, transparent 100%);
flex-shrink: 0;
overflow: hidden;
}
.avatar-img {
width: 100%;
height: 100%;
}
.avatar-edit-hint {
position: absolute;
bottom: 0;
right: 0;
width: 36rpx;
height: 36rpx;
background: #00CED1;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
border: 3rpx solid #000;
}
.edit-icon {
font-size: 20rpx;
color: #000;
}
.avatar-empty {
@@ -91,11 +121,63 @@
}
.avatar-text {
font-size: 48rpx;
font-size: 44rpx;
font-weight: 700;
color: #00CED1;
}
.user-info-block {
flex: 1;
display: flex;
flex-direction: column;
gap: 8rpx;
}
.user-name-row {
display: flex;
align-items: center;
gap: 16rpx;
flex-wrap: wrap;
}
.user-name {
font-size: 34rpx;
font-weight: 600;
color: #ffffff;
}
.user-badge-small {
display: inline-flex;
align-items: center;
gap: 6rpx;
padding: 6rpx 14rpx;
background: rgba(0, 206, 209, 0.15);
border: 1rpx solid rgba(0, 206, 209, 0.3);
border-radius: 20rpx;
}
.badge-star {
font-size: 18rpx;
}
.badge-label {
font-size: 20rpx;
color: #00CED1;
}
.user-id {
font-size: 24rpx;
color: rgba(255, 255, 255, 0.35);
}
/* 兼容旧样式 */
.user-header {
display: flex;
align-items: center;
gap: 24rpx;
margin-bottom: 32rpx;
}
.user-info {
flex: 1;
}