/* pages/profile/personal-info.wxss */
|
.container {
|
background-color: #f5f5f5;
|
min-height: 100vh;
|
padding-bottom: 120rpx;
|
}
|
|
/* 头像设置区域 */
|
.avatar-section {
|
background-color: #ffffff;
|
padding: 40rpx;
|
margin-bottom: 20rpx;
|
}
|
|
.avatar-row {
|
display: flex;
|
align-items: center;
|
justify-content: space-between;
|
height: 120rpx;
|
}
|
|
.avatar-wrapper {
|
position: relative;
|
display: inline-block;
|
}
|
|
.avatar {
|
width: 120rpx;
|
height: 120rpx;
|
border-radius: 60rpx;
|
border: 4rpx solid #e0e0e0;
|
}
|
|
.avatar-overlay {
|
position: absolute;
|
bottom: 0;
|
right: 0;
|
width: 40rpx;
|
height: 40rpx;
|
background-color: #4CAF50;
|
border-radius: 20rpx;
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
border: 3rpx solid #ffffff;
|
}
|
|
.camera-icon {
|
font-size: 20rpx;
|
color: #ffffff;
|
}
|
|
.avatar-tip {
|
font-size: 28rpx;
|
color: #4CAF50;
|
font-weight: 500;
|
}
|
|
/* 表单区域 */
|
.form-section {
|
background-color: #ffffff;
|
margin-bottom: 20rpx;
|
}
|
|
.form-item {
|
padding: 30rpx 40rpx;
|
border-bottom: 1rpx solid #f0f0f0;
|
display: flex;
|
align-items: center;
|
}
|
|
.form-item:last-child {
|
border-bottom: none;
|
}
|
|
.label {
|
width: 160rpx;
|
font-size: 32rpx;
|
color: #333333;
|
font-weight: 500;
|
margin-bottom: 20rpx;
|
display: block;
|
}
|
|
.label.required::after {
|
content: ' *';
|
color: #ff4444;
|
}
|
|
.input {
|
flex: 1;
|
font-size: 32rpx;
|
color: #333333;
|
text-align: right;
|
}
|
|
.input[disabled] {
|
color: #999999;
|
}
|
|
/* 性别选择器 */
|
.gender-selector {
|
flex: 1;
|
display: flex;
|
justify-content: flex-end;
|
gap: 20rpx;
|
}
|
|
.gender-option {
|
padding: 16rpx 32rpx;
|
border: 2rpx solid #e0e0e0;
|
border-radius: 40rpx;
|
font-size: 28rpx;
|
color: #666666;
|
background-color: #ffffff;
|
transition: all 0.3s ease;
|
}
|
|
.gender-option.active {
|
background-color: #4CAF50;
|
border-color: #4CAF50;
|
color: #ffffff;
|
}
|
|
/* 手机号区域 */
|
.phone-wrapper {
|
flex: 1;
|
display: flex;
|
align-items: center;
|
justify-content: flex-end;
|
gap: 20rpx;
|
}
|
|
.phone-input {
|
flex: 1;
|
text-align: right;
|
}
|
|
.phone-btn {
|
padding: 12rpx 24rpx;
|
background-color: #4CAF50;
|
color: #ffffff;
|
border: none;
|
border-radius: 20rpx;
|
font-size: 24rpx;
|
line-height: 1;
|
}
|
|
.phone-btn::after {
|
border: none;
|
}
|
|
.phone-status {
|
font-size: 28rpx;
|
color: #4CAF50;
|
}
|
|
/* 选择器样式 */
|
.picker-wrapper {
|
flex: 1;
|
display: flex;
|
align-items: center;
|
justify-content: flex-end;
|
gap: 10rpx;
|
}
|
|
.picker-text {
|
font-size: 32rpx;
|
color: #333333;
|
}
|
|
.picker-arrow {
|
font-size: 24rpx;
|
color: #999999;
|
}
|
|
/* 文本域样式 */
|
.form-item:has(.textarea) {
|
flex-direction: column;
|
align-items: flex-start;
|
}
|
|
.textarea {
|
width: 100%;
|
min-height: 120rpx;
|
font-size: 32rpx;
|
color: #333333;
|
margin-top: 20rpx;
|
padding: 20rpx;
|
background-color: #f8f8f8;
|
border-radius: 12rpx;
|
border: 1rpx solid #e0e0e0;
|
}
|
|
.char-count {
|
align-self: flex-end;
|
font-size: 24rpx;
|
color: #999999;
|
margin-top: 10rpx;
|
}
|
|
/* 保存按钮 */
|
.save-section {
|
position: fixed;
|
bottom: 0;
|
left: 0;
|
right: 0;
|
background-color: #ffffff;
|
padding: 30rpx 40rpx;
|
border-top: 1rpx solid #e0e0e0;
|
}
|
|
.save-btn {
|
width: 100%;
|
height: 88rpx;
|
background-color: #4CAF50;
|
color: #ffffff;
|
border: none;
|
border-radius: 44rpx;
|
font-size: 32rpx;
|
font-weight: 500;
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
}
|
|
.save-btn::after {
|
border: none;
|
}
|
|
.save-btn[loading] {
|
background-color: #81C784;
|
}
|
|
/* 响应式适配 */
|
@media (max-width: 375px) {
|
.form-item {
|
padding: 25rpx 30rpx;
|
}
|
|
.label {
|
width: 140rpx;
|
font-size: 30rpx;
|
}
|
|
.input {
|
font-size: 30rpx;
|
}
|
}
|