新增美甲师页颜色选择抽屉与注册流程按钮样式同步设计稿

This commit is contained in:
2026-11-07 00:31:33 +08:00
parent 54215ffd50
commit a5f050286b
6 changed files with 393 additions and 46 deletions
+154 -11
View File
@@ -95,23 +95,166 @@
width: 176rpx;
}
.color-options {
.color-current {
display: flex;
flex-wrap: wrap;
gap: 18rpx;
padding: 10rpx 0;
flex: 1;
min-width: 0;
align-items: center;
gap: 16rpx;
}
.color-option {
width: 44rpx;
height: 44rpx;
border: 4rpx solid #fff;
border-radius: 50%;
.color-current-chip {
width: 56rpx;
height: 56rpx;
flex: none;
border-radius: 14rpx;
box-shadow: 0 0 0 1rpx #d9e3dd;
}
.color-option.selected {
box-shadow: 0 0 0 4rpx #287a62;
.color-current-value {
color: #71807a;
font-size: 24rpx;
}
.color-select-btn {
display: flex;
flex: none;
align-items: center;
gap: 6rpx;
height: 56rpx;
margin-left: auto;
padding: 0 20rpx;
border: 1rpx solid #e7ece9;
border-radius: 999rpx;
background: #f1f3f2;
color: #71807a;
font-size: 23rpx;
font-weight: 700;
}
.color-select-arrow {
font-size: 24rpx;
line-height: 1;
}
.color-sheet-mask {
position: fixed;
z-index: 60;
inset: 0;
display: flex;
align-items: flex-end;
background: rgba(23, 33, 31, 0.45);
}
.color-sheet {
box-sizing: border-box;
width: 100%;
padding: 12rpx 28rpx calc(28rpx + env(safe-area-inset-bottom));
border-radius: 40rpx 40rpx 0 0;
background: #ffffff;
}
.color-sheet-handle {
width: 72rpx;
height: 8rpx;
margin: 0 auto 18rpx;
border-radius: 999rpx;
background: #dfe5e2;
}
.color-sheet-title {
display: block;
color: #17211f;
font-size: 30rpx;
font-weight: 800;
text-align: center;
}
.color-preview {
height: 110rpx;
margin-top: 18rpx;
border-radius: 16rpx;
box-shadow: 0 0 0 1rpx #e7ece9 inset;
}
.color-section-title {
display: block;
margin-top: 20rpx;
color: #71807a;
font-size: 22rpx;
}
.color-grid {
display: grid;
grid-template-columns: repeat(8, 1fr);
gap: 14rpx;
margin-top: 12rpx;
}
.color-grid-item {
height: 56rpx;
border-radius: 12rpx;
box-shadow: 0 0 0 1rpx #e7ece9;
}
.color-grid-item.selected {
box-shadow: 0 0 0 4rpx #247b63;
}
.color-wheel {
position: relative;
width: 220rpx;
height: 220rpx;
margin: 18rpx auto 0;
border-radius: 50%;
background: radial-gradient(circle, #ffffff 0%, rgba(255, 255, 255, 0) 72%), conic-gradient(#ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
}
.color-wheel-dot {
position: absolute;
width: 26rpx;
height: 26rpx;
border: 3rpx solid #ffffff;
border-radius: 50%;
box-shadow: 0 0 0 1rpx rgba(0, 0, 0, 0.25);
transform: translate(-50%, -50%);
}
.color-hex-row {
display: flex;
align-items: center;
gap: 16rpx;
margin-top: 12rpx;
}
.color-hex-input {
flex: 1;
min-width: 0;
height: 80rpx;
padding: 0 24rpx;
border: 1rpx solid #e7ece9;
border-radius: 12rpx;
background: #f7faf8;
font-size: 26rpx;
}
.color-apply-btn {
display: flex;
flex: none;
align-items: center;
height: 80rpx;
margin: 0;
padding: 0 28rpx;
border-radius: 12rpx;
background: #e5f4ed;
color: #247b63;
font-size: 24rpx;
font-weight: 700;
line-height: 80rpx;
}
.color-save-btn {
margin-top: 24rpx;
}
.onboarding-mask {