feat: ui update

This commit is contained in:
2026-09-15 16:01:59 +08:00
parent 1a11816839
commit 26c392d612
89 changed files with 10377 additions and 4861 deletions
+116 -175
View File
@@ -1,3 +1,4 @@
/** 我的:大号头像 + 衬线昵称 + 四栏额度条 + 纯发丝线分组列表 **/
.page-flex {
height: 100vh;
display: flex;
@@ -10,198 +11,145 @@
height: 0;
}
.quota-banner {
margin: 24rpx 24rpx 0;
background: #FFF3E6;
color: #FF9500;
font-size: 24rpx;
padding: 20rpx 24rpx;
border-radius: 16rpx;
}
.user-card {
margin: 24rpx;
.pf-hero {
display: flex;
align-items: center;
gap: 32rpx;
padding: 48rpx var(--pad) 0;
}
.avatar {
width: 128rpx;
height: 128rpx;
.pf-av {
width: 144rpx;
height: 144rpx;
border-radius: 50%;
background: #F2F2F7;
flex-shrink: 0;
overflow: hidden;
background: var(--paper-3);
color: var(--ink-3);
display: flex;
align-items: center;
justify-content: center;
color: #C7C7CC;
flex-shrink: 0;
}
.avatar-img {
.pf-av .icon {
width: 62rpx;
height: 62rpx;
}
.pf-av-img {
width: 100%;
height: 100%;
}
.avatar-placeholder {
width: 72rpx;
height: 72rpx;
}
.user-info {
flex: 1;
margin-left: 24rpx;
.pf-info {
min-width: 0;
}
.user-name {
display: flex;
align-items: center;
font-size: 36rpx;
font-weight: 700;
color: #000;
}
.sex-tag {
font-size: 20rpx;
color: #007AFF;
background: rgba(0, 122, 255, 0.1);
border-radius: 8rpx;
padding: 2rpx 12rpx;
margin-left: 12rpx;
font-weight: 400;
}
.user-tags {
display: flex;
gap: 12rpx;
margin-top: 12rpx;
}
.edit-link {
display: flex;
align-items: center;
font-size: 26rpx;
color: #8E8E93;
}
.edit-link .icon {
width: 28rpx;
height: 28rpx;
color: #C7C7CC;
}
.menu-card {
margin: 0 24rpx 24rpx;
padding: 0 32rpx;
}
.menu-row {
display: flex;
align-items: center;
height: 100rpx;
}
.menu-icon {
width: 44rpx;
height: 44rpx;
color: #007AFF;
margin-right: 24rpx;
}
.menu-label {
flex: 1;
font-size: 28rpx;
color: #000;
}
.menu-value {
font-size: 26rpx;
color: #8E8E93;
.pf-name {
font-family: var(--serif);
font-size: 46rpx;
font-weight: 500;
letter-spacing: -.005em;
line-height: 1.2;
}
.menu-badge {
min-width: 32rpx;
height: 32rpx;
padding: 0 10rpx;
border-radius: 16rpx;
background: #FF3B30;
color: #fff;
font-size: 20rpx;
line-height: 32rpx;
text-align: center;
box-sizing: border-box;
.pf-sub {
display: flex;
flex-wrap: wrap;
gap: 12rpx;
margin-top: 20rpx;
}
.pf-edit {
margin-left: auto;
display: flex;
align-items: center;
gap: 2rpx;
font-size: 25rpx;
color: var(--ink-3);
flex-shrink: 0;
margin-left: 12rpx;
}
.menu-arrow {
width: 28rpx;
height: 28rpx;
color: #C7C7CC;
margin-left: 12rpx;
.pf-edit .icon {
width: 24rpx;
height: 24rpx;
}
.version {
/* 额度提醒:浅填充提示条,不依赖彩色 */
.pf-warn {
margin: 44rpx var(--pad) 0;
padding: 26rpx 30rpx;
border-radius: var(--r-ctrl);
background: var(--fill);
display: flex;
align-items: center;
gap: 20rpx;
font-size: 25rpx;
line-height: 1.55;
}
.pf-warn .icon {
width: 32rpx;
height: 32rpx;
flex-shrink: 0;
color: var(--ink-2);
}
.pf-warn-t {
flex: 1;
}
.pf-quota {
display: block;
width: 100%;
margin-top: 48rpx;
}
.pf-quota-hd {
display: flex;
align-items: center;
gap: 16rpx;
padding: 0 var(--pad) 26rpx;
}
.pf-quota-hd .qk {
font-size: 26rpx;
font-weight: 600;
}
.pf-quota-hd .icon {
width: 24rpx;
height: 24rpx;
color: var(--ink-4);
margin-left: auto;
}
.pf-grp {
margin-top: 68rpx;
}
.pf-ver {
padding: 52rpx 0 12rpx;
text-align: center;
font-size: 22rpx;
color: #C7C7CC;
padding: 24rpx 0 48rpx;
}
/* 编辑弹窗 */
.mask {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.4);
z-index: 200;
}
.sheet {
position: absolute;
left: 0;
right: 0;
bottom: 0;
background: #fff;
border-radius: 32rpx 32rpx 0 0;
padding: 20rpx 32rpx;
padding-bottom: calc(32rpx + env(safe-area-inset-bottom) + 120rpx);
max-height: 85vh;
overflow-y: auto;
}
.sheet-grabber {
width: 72rpx;
height: 10rpx;
border-radius: 5rpx;
background: #E5E5EA;
margin: 0 auto 24rpx;
}
.sheet-title {
font-size: 34rpx;
font-weight: 600;
color: #000;
text-align: center;
margin-bottom: 24rpx;
color: var(--ink-4);
letter-spacing: .06em;
}
/* ===== 编辑资料抽屉 ===== */
.avatar-wrap {
position: relative;
width: 160rpx;
height: 160rpx;
margin: 0 auto;
margin: 16rpx auto 0;
border-radius: 50%;
background: #F2F2F7;
background: var(--paper-3);
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
box-sizing: border-box;
color: #C7C7CC;
color: var(--ink-3);
}
.avatar-wrap .avatar-img {
@@ -210,8 +158,8 @@
}
.avatar-wrap .avatar-placeholder {
width: 88rpx;
height: 88rpx;
width: 72rpx;
height: 72rpx;
}
.avatar-btn {
@@ -233,28 +181,30 @@
.avatar-tip {
text-align: center;
font-size: 22rpx;
color: #8E8E93;
color: var(--ink-3);
margin: 16rpx 0 24rpx;
}
.form-field {
display: flex;
align-items: center;
padding: 20rpx 0;
border-bottom: 1rpx solid #F2F2F7;
padding: 24rpx var(--pad);
border-bottom: 1rpx solid var(--hairline);
}
.form-label {
width: 140rpx;
font-size: 28rpx;
color: #000;
color: var(--ink-2);
flex-shrink: 0;
}
.form-field .input {
.form-input {
flex: 1;
background: #fff;
height: auto;
background: transparent;
padding: 0;
font-size: 30rpx;
}
.form-value {
@@ -262,20 +212,11 @@
display: flex;
align-items: center;
justify-content: space-between;
font-size: 28rpx;
color: #000;
font-size: 30rpx;
}
.placeholder {
color: #C7C7CC;
}
.sheet-btn {
margin-top: 32rpx;
width: 100%;
}
.btn-disabled {
opacity: 0.5;
pointer-events: none;
.form-arrow {
width: 26rpx;
height: 26rpx;
color: var(--ink-4);
}