/* pages/registration/registration.wxss */
|
|
/* --- 全局和容器 --- */
|
.container {
|
min-height: 100vh;
|
background: #f8f9fa;
|
padding: 20rpx;
|
padding-bottom: 180rpx; /* 为底部按钮留出空间 */
|
box-sizing: border-box;
|
}
|
|
/* --- 加载状态 --- */
|
.loading-wrapper {
|
display: flex;
|
flex-direction: column;
|
align-items: center;
|
justify-content: center;
|
padding-top: 200rpx;
|
}
|
.loading-text {
|
margin-top: 20rpx;
|
font-size: 28rpx;
|
color: #999;
|
}
|
|
/* --- 表单容器和卡片 --- */
|
.form-container {
|
width: 100%;
|
}
|
|
.card {
|
background: #ffffff;
|
border-radius: 16rpx;
|
margin-bottom: 20rpx;
|
overflow: hidden;
|
}
|
|
.card-title {
|
font-size: 32rpx;
|
font-weight: bold;
|
color: #333;
|
padding: 30rpx;
|
border-bottom: 1rpx solid #f0f0f0;
|
}
|
|
/* --- 表单项 --- */
|
.form-item {
|
display: flex;
|
align-items: center;
|
justify-content: space-between;
|
padding: 30rpx;
|
margin: 0 30rpx;
|
border-bottom: 1rpx solid #f0f0f0;
|
position: relative;
|
}
|
.card .form-item:last-child {
|
border-bottom: none;
|
}
|
|
/* 垂直布局的表单项 (如简介) */
|
.form-item.vertical-layout {
|
flex-direction: column;
|
align-items: flex-start;
|
}
|
.form-item.vertical-layout .label {
|
margin-bottom: 20rpx;
|
}
|
.form-item.vertical-layout .input-wrapper {
|
width: 100%;
|
}
|
|
.label {
|
font-size: 28rpx;
|
color: #333;
|
flex-shrink: 0;
|
}
|
.label.required::after {
|
content: '*';
|
color: #ff4757;
|
margin-left: 4rpx;
|
}
|
|
.input-wrapper {
|
flex: 1;
|
display: flex;
|
align-items: center;
|
justify-content: flex-end;
|
min-width: 0;
|
}
|
|
/* --- 输入控件 --- */
|
.input, .picker, .textarea {
|
width: 100%;
|
font-size: 28rpx;
|
color: #333;
|
text-align: right;
|
border: none;
|
background-color: transparent;
|
padding: 0;
|
margin: 0;
|
}
|
.textarea {
|
text-align: left;
|
background-color: #f8f9fa;
|
padding: 20rpx;
|
border-radius: 8rpx;
|
min-height: 150rpx;
|
margin-top: 10rpx;
|
}
|
.placeholder-class {
|
color: #999;
|
font-size: 28rpx;
|
}
|
.picker-text.placeholder {
|
color: #999;
|
}
|
|
/* --- 特定控件样式 --- */
|
/* 手机号 */
|
.phone-container {
|
display: flex;
|
align-items: center;
|
justify-content: flex-end;
|
width: 100%;
|
}
|
.phone-display {
|
color: #333;
|
font-size: 28rpx;
|
}
|
.phone-display.placeholder {
|
color: #999;
|
}
|
.phone-auth-btn, .phone-change-btn {
|
color: #1976d2;
|
font-size: 28rpx;
|
background-color: transparent;
|
border: none;
|
padding: 0;
|
margin: 0 0 0 20rpx;
|
line-height: 1;
|
}
|
.phone-auth-btn::after, .phone-change-btn::after {
|
display: none;
|
}
|
|
/* 头像 */
|
.avatar-wrapper {
|
display: flex;
|
align-items: center;
|
}
|
.avatar-image {
|
width: 80rpx;
|
height: 80rpx;
|
border-radius: 50%;
|
margin-left: 20rpx;
|
}
|
.arrow-icon {
|
width: 16rpx;
|
height: 28rpx;
|
margin-left: 10rpx;
|
}
|
|
/* 附件 */
|
.attachment-upload-area {
|
padding: 30rpx;
|
}
|
.upload-btn {
|
border: 2rpx dashed #d0d7de;
|
border-radius: 12rpx;
|
background: #fafbfc;
|
padding: 40rpx;
|
display: flex;
|
flex-direction: column;
|
align-items: center;
|
justify-content: center;
|
margin-bottom: 20rpx;
|
}
|
.upload-icon {
|
font-size: 48rpx;
|
margin-bottom: 10rpx;
|
}
|
.upload-text {
|
font-size: 28rpx;
|
color: #333;
|
font-weight: 500;
|
}
|
.upload-hint {
|
font-size: 22rpx;
|
color: #999;
|
margin-top: 8rpx;
|
}
|
.attachment-list {
|
margin-top: 20rpx;
|
}
|
.attachment-item {
|
display: flex;
|
align-items: center;
|
padding: 20rpx;
|
background: #f8f9fa;
|
border-radius: 8rpx;
|
margin-bottom: 12rpx;
|
}
|
.attachment-info {
|
flex: 1;
|
display: flex;
|
align-items: center;
|
min-width: 0;
|
}
|
.attachment-icon {
|
font-size: 32rpx;
|
margin-right: 16rpx;
|
}
|
.attachment-details {
|
flex: 1;
|
min-width: 0;
|
}
|
.attachment-name {
|
font-size: 26rpx;
|
color: #333;
|
white-space: nowrap;
|
overflow: hidden;
|
text-overflow: ellipsis;
|
}
|
.attachment-size {
|
font-size: 22rpx;
|
color: #999;
|
}
|
.attachment-actions .delete-btn {
|
color: #ff4757;
|
font-size: 28rpx;
|
padding: 10rpx;
|
margin-left: 20rpx;
|
}
|
|
/* --- 错误提示 --- */
|
.error-text {
|
position: absolute;
|
bottom: 0;
|
left: 30rpx;
|
font-size: 22rpx;
|
color: #ff4757;
|
}
|
.form-item.error {
|
padding-bottom: 30rpx; /* 为错误信息留出空间 */
|
}
|
|
/* --- 底部操作栏 --- */
|
.bottom-actions {
|
position: fixed;
|
bottom: 0;
|
left: 0;
|
right: 0;
|
background: #ffffff;
|
padding: 20rpx 30rpx;
|
padding-bottom: calc(20rpx + constant(safe-area-inset-bottom));
|
padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
|
border-top: 1rpx solid #f0f0f0;
|
z-index: 100;
|
}
|
.submit-btn {
|
width: 100%;
|
height: 88rpx;
|
line-height: 88rpx;
|
background: #1976d2;
|
color: #ffffff;
|
border-radius: 12rpx;
|
font-size: 32rpx;
|
font-weight: bold;
|
text-align: center;
|
}
|
.submit-btn.disabled {
|
background: #cccccc;
|
color: #999;
|
}
|
.submit-btn::after {
|
display: none;
|
}
|