/* pages/registration/registration.wxss */
|
|
/* 容器样式 */
|
.container {
|
min-height: 100vh;
|
background: #f8f9fa;
|
padding-bottom: 140rpx;
|
}
|
|
/* 加载状态样式 */
|
.loading-wrapper {
|
display: flex;
|
flex-direction: column;
|
align-items: center;
|
padding: 120rpx 0;
|
}
|
|
.loading-text {
|
margin-top: 20rpx;
|
font-size: 28rpx;
|
color: #999999;
|
}
|
|
/* 表单容器样式 */
|
.form-container {
|
padding: 0 30rpx;
|
}
|
|
/* 活动信息样式 */
|
.activity-info {
|
background: #ffffff;
|
padding: 30rpx;
|
margin-bottom: 20rpx;
|
border-radius: 12rpx;
|
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
|
}
|
|
.activity-title {
|
display: block;
|
font-size: 32rpx;
|
font-weight: bold;
|
color: #333333;
|
margin-bottom: 16rpx;
|
}
|
|
.activity-desc {
|
display: block;
|
font-size: 26rpx;
|
color: #666666;
|
line-height: 1.6;
|
}
|
|
/* 表单区域样式 */
|
.form-section {
|
background: #ffffff;
|
margin-bottom: 20rpx;
|
border-radius: 12rpx;
|
overflow: hidden;
|
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
|
}
|
|
.section-title {
|
padding: 30rpx;
|
font-size: 30rpx;
|
font-weight: bold;
|
color: #333333;
|
background: #f8f9fa;
|
border-bottom: 1rpx solid #e9ecef;
|
}
|
|
/* 表单项样式 */
|
.form-item {
|
padding: 30rpx;
|
border-bottom: 1rpx solid #f0f0f0;
|
position: relative;
|
display: flex;
|
align-items: center;
|
gap: 20rpx;
|
}
|
|
.form-item:last-child {
|
border-bottom: none;
|
}
|
|
.form-item.error {
|
border-left: 6rpx solid #ff4757;
|
}
|
|
.form-item.vertical-layout {
|
flex-direction: column;
|
align-items: flex-start;
|
}
|
|
.form-item.vertical-layout .label {
|
margin-bottom: 16rpx;
|
}
|
|
.label {
|
font-size: 28rpx;
|
color: #333333;
|
font-weight: 500;
|
min-width: 120rpx;
|
flex-shrink: 0;
|
}
|
|
.label.required::after {
|
content: '*';
|
color: #ff4757;
|
margin-left: 4rpx;
|
}
|
|
.input-wrapper {
|
flex: 1;
|
display: flex;
|
flex-direction: column;
|
}
|
|
.label-row {
|
display: flex;
|
justify-content: space-between;
|
align-items: center;
|
margin-bottom: 16rpx;
|
}
|
|
/* 输入框样式 */
|
.input,
|
.textarea {
|
width: 100%;
|
height: 80rpx;
|
padding: 20rpx;
|
border: 2rpx solid #e9ecef;
|
border-radius: 8rpx;
|
font-size: 28rpx;
|
color: #333333;
|
background: #ffffff;
|
box-sizing: border-box;
|
line-height: 1.4;
|
display: flex;
|
align-items: center;
|
}
|
|
.input:focus,
|
.textarea:focus {
|
border-color: #1976d2;
|
outline: none;
|
}
|
|
.textarea {
|
height: auto;
|
min-height: 120rpx;
|
resize: none;
|
align-items: flex-start;
|
padding-top: 20rpx;
|
}
|
|
/* 选择器样式 */
|
.picker {
|
width: 100%;
|
}
|
|
.picker-text {
|
width: 100%;
|
height: 80rpx;
|
padding: 20rpx;
|
border: 2rpx solid #e9ecef;
|
border-radius: 8rpx;
|
font-size: 28rpx;
|
color: #333333;
|
background: #ffffff;
|
box-sizing: border-box;
|
line-height: 1.4;
|
display: flex;
|
align-items: center;
|
}
|
|
.picker-text.placeholder {
|
color: #999999;
|
}
|
|
/* 手机号授权样式 */
|
.phone-container {
|
display: flex;
|
align-items: center;
|
gap: 16rpx;
|
width: 100%;
|
}
|
|
.phone-display {
|
flex: 1;
|
height: 80rpx;
|
padding: 20rpx;
|
border: 2rpx solid #e9ecef;
|
border-radius: 8rpx;
|
font-size: 28rpx;
|
color: #333333;
|
background: #f8f9fa;
|
box-sizing: border-box;
|
line-height: 1.4;
|
display: flex;
|
align-items: center;
|
}
|
|
.phone-display.placeholder {
|
color: #999999;
|
}
|
|
.phone-auth-btn,
|
.phone-change-btn {
|
padding: 0 24rpx;
|
height: 80rpx;
|
border-radius: 8rpx;
|
font-size: 24rpx;
|
font-weight: 500;
|
border: none;
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
white-space: nowrap;
|
flex-shrink: 0;
|
}
|
|
.phone-auth-btn {
|
background: #1976d2;
|
color: #ffffff;
|
}
|
|
.phone-auth-btn:active {
|
background: #1565c0;
|
}
|
|
.phone-change-btn {
|
background: #f5f5f5;
|
color: #666666;
|
border: 2rpx solid #e0e0e0;
|
}
|
|
.phone-change-btn:active {
|
background: #eeeeee;
|
}
|
|
/* 错误提示样式 */
|
.error-text {
|
display: block;
|
margin-top: 8rpx;
|
font-size: 22rpx;
|
color: #ff4757;
|
line-height: 1.4;
|
}
|
|
/* 文件上传样式 */
|
.upload-section {
|
margin-top: 16rpx;
|
}
|
|
.upload-btn {
|
display: flex;
|
flex-direction: column;
|
align-items: center;
|
justify-content: center;
|
width: 200rpx;
|
height: 200rpx;
|
border: 2rpx dashed #d0d7de;
|
border-radius: 12rpx;
|
background: #f8f9fa;
|
color: #666666;
|
transition: all 0.3s ease;
|
}
|
|
.upload-btn:active {
|
background: #e9ecef;
|
border-color: #1976d2;
|
}
|
|
.upload-btn.file-upload {
|
width: 100%;
|
height: 120rpx;
|
flex-direction: row;
|
}
|
|
.upload-icon {
|
font-size: 48rpx;
|
margin-bottom: 12rpx;
|
}
|
|
.file-upload .upload-icon {
|
margin-bottom: 0;
|
margin-right: 16rpx;
|
}
|
|
.upload-text {
|
font-size: 24rpx;
|
color: #666666;
|
}
|
|
/* 已上传文件样式 */
|
.uploaded-file {
|
position: relative;
|
width: 200rpx;
|
height: 200rpx;
|
border-radius: 12rpx;
|
overflow: hidden;
|
}
|
|
.uploaded-image {
|
width: 100%;
|
height: 100%;
|
}
|
|
.uploaded-file-info {
|
display: flex;
|
align-items: center;
|
justify-content: space-between;
|
padding: 20rpx;
|
background: #f8f9fa;
|
border-radius: 8rpx;
|
border: 2rpx solid #e9ecef;
|
}
|
|
.file-name {
|
font-size: 26rpx;
|
color: #333333;
|
}
|
|
.delete-btn {
|
position: absolute;
|
top: 8rpx;
|
right: 8rpx;
|
width: 40rpx;
|
height: 40rpx;
|
background: rgba(0, 0, 0, 0.7);
|
color: #ffffff;
|
border-radius: 50%;
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
font-size: 24rpx;
|
font-weight: bold;
|
}
|
|
.uploaded-file-info .delete-btn {
|
position: static;
|
background: #ff4757;
|
color: #ffffff;
|
padding: 8rpx 16rpx;
|
border-radius: 6rpx;
|
font-size: 22rpx;
|
}
|
|
/* 团队成员样式 */
|
|
|
/* 底部操作栏样式 */
|
.bottom-actions {
|
position: fixed;
|
bottom: 0;
|
left: 0;
|
right: 0;
|
background: #ffffff;
|
border-top: 1rpx solid #f0f0f0;
|
padding: 20rpx 30rpx;
|
display: flex;
|
box-shadow: 0 -4rpx 16rpx rgba(0, 0, 0, 0.1);
|
z-index: 100;
|
}
|
|
.submit-btn {
|
flex: 1;
|
padding: 24rpx 0;
|
background: linear-gradient(90deg, #1976d2, #42a5f5);
|
color: #ffffff;
|
border-radius: 12rpx;
|
font-size: 32rpx;
|
font-weight: bold;
|
text-align: center;
|
box-shadow: 0 4rpx 12rpx rgba(25, 118, 210, 0.3);
|
}
|
|
.submit-btn.disabled {
|
background: #cccccc;
|
box-shadow: none;
|
color: #999999;
|
}
|
|
/* 弹窗样式 */
|
.modal-overlay {
|
position: fixed;
|
top: 0;
|
left: 0;
|
right: 0;
|
bottom: 0;
|
background: rgba(0, 0, 0, 0.5);
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
z-index: 1000;
|
padding: 40rpx;
|
}
|
|
.modal-content {
|
background: #ffffff;
|
border-radius: 16rpx;
|
width: 100%;
|
max-width: 600rpx;
|
max-height: 80vh;
|
overflow: hidden;
|
display: flex;
|
flex-direction: column;
|
}
|
|
.modal-header {
|
display: flex;
|
align-items: center;
|
justify-content: space-between;
|
padding: 30rpx;
|
border-bottom: 1rpx solid #f0f0f0;
|
}
|
|
.modal-title {
|
font-size: 32rpx;
|
font-weight: bold;
|
color: #333333;
|
}
|
|
.modal-close {
|
width: 48rpx;
|
height: 48rpx;
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
font-size: 32rpx;
|
color: #666666;
|
font-weight: bold;
|
}
|
|
.modal-body {
|
flex: 1;
|
padding: 30rpx;
|
overflow-y: auto;
|
}
|
|
.modal-body .form-item {
|
padding: 0;
|
margin-bottom: 30rpx;
|
border-bottom: none;
|
}
|
|
.modal-body .form-item:last-child {
|
margin-bottom: 0;
|
}
|
|
.modal-footer {
|
display: flex;
|
gap: 20rpx;
|
padding: 30rpx;
|
border-top: 1rpx solid #f0f0f0;
|
}
|
|
.cancel-btn,
|
.confirm-btn {
|
flex: 1;
|
padding: 24rpx 0;
|
border-radius: 12rpx;
|
font-size: 28rpx;
|
font-weight: bold;
|
text-align: center;
|
}
|
|
.cancel-btn {
|
background: #f8f9fa;
|
color: #666666;
|
border: 2rpx solid #e9ecef;
|
}
|
|
.confirm-btn {
|
background: linear-gradient(90deg, #1976d2, #42a5f5);
|
color: #ffffff;
|
}
|
|
/* 响应式适配 */
|
@media screen and (max-width: 375px) {
|
.form-container {
|
padding: 0 20rpx;
|
}
|
|
.form-item {
|
padding: 24rpx;
|
}
|
|
.section-title {
|
padding: 24rpx;
|
font-size: 28rpx;
|
}
|
|
.bottom-actions {
|
padding: 16rpx 20rpx;
|
}
|
|
.submit-btn,
|
.draft-btn {
|
padding: 20rpx 24rpx;
|
font-size: 26rpx;
|
}
|
}
|
|
@media screen and (min-width: 414px) {
|
.upload-btn {
|
width: 240rpx;
|
height: 240rpx;
|
}
|
|
.uploaded-file {
|
width: 240rpx;
|
height: 240rpx;
|
}
|
}
|
|
/* 头像上传样式 */
|
.avatar-upload-container {
|
display: flex;
|
flex-direction: column;
|
align-items: center;
|
gap: 20rpx;
|
}
|
|
.avatar-upload-btn {
|
display: flex;
|
flex-direction: column;
|
align-items: center;
|
justify-content: center;
|
width: 200rpx;
|
height: 200rpx;
|
border: 2rpx dashed #d0d7de;
|
border-radius: 50%;
|
background: #f8f9fa;
|
position: relative;
|
transition: all 0.3s ease;
|
}
|
|
.avatar-upload-btn:active {
|
transform: scale(0.95);
|
background: #e9ecef;
|
border-color: #1976d2;
|
}
|
|
.avatar-upload-btn.uploading {
|
border-color: #1976d2;
|
background: #f0f8ff;
|
}
|
|
.upload-icon {
|
font-family: "icon";
|
font-size: 60rpx;
|
color: #999999;
|
margin-bottom: 8rpx;
|
transition: color 0.3s ease;
|
}
|
|
.avatar-upload-btn:active .upload-icon {
|
color: #1976d2;
|
}
|
|
.upload-text {
|
font-size: 22rpx;
|
color: #666666;
|
text-align: center;
|
transition: color 0.3s ease;
|
}
|
|
.avatar-upload-btn:active .upload-text {
|
color: #1976d2;
|
}
|
|
.avatar-preview {
|
display: flex;
|
flex-direction: column;
|
align-items: center;
|
gap: 16rpx;
|
}
|
|
.avatar-image {
|
width: 200rpx;
|
height: 200rpx;
|
border-radius: 50%;
|
border: 2rpx solid #e9ecef;
|
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
|
transition: transform 0.3s ease;
|
}
|
|
.avatar-image:active {
|
transform: scale(0.95);
|
}
|
|
.avatar-actions {
|
display: flex;
|
gap: 20rpx;
|
}
|
|
.action-btn {
|
padding: 12rpx 24rpx;
|
font-size: 24rpx;
|
border-radius: 12rpx;
|
border: 1rpx solid #1976d2;
|
color: #1976d2;
|
background: #ffffff;
|
text-align: center;
|
transition: all 0.3s ease;
|
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
|
}
|
|
.action-btn:active {
|
transform: translateY(2rpx);
|
background: #f0f8ff;
|
box-shadow: 0 1rpx 4rpx rgba(0, 0, 0, 0.1);
|
}
|
|
.action-btn.delete {
|
border-color: #ff4757;
|
color: #ff4757;
|
}
|
|
.action-btn.delete:active {
|
background: #fff5f5;
|
}
|
|
.upload-progress {
|
width: 100%;
|
max-width: 300rpx;
|
}
|
|
.progress-text {
|
display: block;
|
font-size: 24rpx;
|
color: #666666;
|
text-align: center;
|
margin-bottom: 12rpx;
|
}
|
|
.progress-bar {
|
width: 100%;
|
height: 8rpx;
|
background: #e9ecef;
|
border-radius: 4rpx;
|
overflow: hidden;
|
box-shadow: inset 0 1rpx 2rpx rgba(0, 0, 0, 0.1);
|
}
|
|
.progress-fill {
|
height: 100%;
|
background: linear-gradient(90deg, #1976d2, #42a5f5);
|
border-radius: 4rpx;
|
transition: width 0.3s ease;
|
}
|
|
/* 上传状态指示器 */
|
.avatar-uploading-indicator {
|
position: absolute;
|
top: 50%;
|
left: 50%;
|
transform: translate(-50%, -50%);
|
width: 60rpx;
|
height: 60rpx;
|
border: 4rpx solid #f0f0f0;
|
border-top: 4rpx solid #1976d2;
|
border-radius: 50%;
|
animation: spin 1s linear infinite;
|
}
|
|
@keyframes spin {
|
0% { transform: translate(-50%, -50%) rotate(0deg); }
|
100% { transform: translate(-50%, -50%) rotate(360deg); }
|
}
|
|
/* 头像上传提示文字 */
|
.avatar-upload-hint {
|
font-size: 22rpx;
|
color: #999999;
|
text-align: center;
|
margin-top: 10rpx;
|
line-height: 1.4;
|
}
|
|
/* 错误状态样式 */
|
.avatar-upload-container.error .avatar-upload-btn {
|
border-color: #ff4757;
|
background: #fff5f5;
|
}
|
|
.avatar-upload-container.error .upload-icon {
|
color: #ff4757;
|
}
|
|
/* 附件上传样式 */
|
.attachment-upload-area {
|
margin-top: 20rpx;
|
}
|
|
.upload-btn {
|
display: flex;
|
flex-direction: column;
|
align-items: center;
|
justify-content: center;
|
padding: 40rpx 20rpx;
|
border: 2rpx dashed #d0d7de;
|
border-radius: 12rpx;
|
background: #fafbfc;
|
transition: all 0.3s ease;
|
margin-bottom: 20rpx;
|
}
|
|
.upload-btn:active {
|
background: #f1f3f4;
|
border-color: #1976d2;
|
}
|
|
.upload-icon {
|
font-size: 48rpx;
|
margin-bottom: 10rpx;
|
}
|
|
.upload-text {
|
font-size: 28rpx;
|
color: #333333;
|
font-weight: 500;
|
margin-bottom: 8rpx;
|
}
|
|
.upload-hint {
|
font-size: 22rpx;
|
color: #666666;
|
text-align: center;
|
line-height: 1.4;
|
}
|
|
/* 附件列表样式 */
|
.attachment-list {
|
margin-top: 20rpx;
|
}
|
|
.attachment-item {
|
display: flex;
|
align-items: center;
|
justify-content: space-between;
|
padding: 20rpx;
|
background: #ffffff;
|
border-radius: 12rpx;
|
margin-bottom: 12rpx;
|
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
|
transition: all 0.3s ease;
|
}
|
|
.attachment-item.uploading {
|
background: #f8f9fa;
|
border: 1rpx solid #e9ecef;
|
}
|
|
.attachment-info {
|
display: flex;
|
align-items: center;
|
flex: 1;
|
}
|
|
.attachment-icon {
|
font-size: 32rpx;
|
margin-right: 16rpx;
|
width: 40rpx;
|
text-align: center;
|
}
|
|
.attachment-details {
|
flex: 1;
|
}
|
|
.attachment-name {
|
display: block;
|
font-size: 26rpx;
|
color: #333333;
|
font-weight: 500;
|
margin-bottom: 4rpx;
|
word-break: break-all;
|
}
|
|
.attachment-size {
|
display: block;
|
font-size: 22rpx;
|
color: #666666;
|
}
|
|
.upload-progress {
|
display: flex;
|
align-items: center;
|
margin-top: 8rpx;
|
}
|
|
.progress-bar {
|
flex: 1;
|
height: 6rpx;
|
background: #e9ecef;
|
border-radius: 3rpx;
|
overflow: hidden;
|
margin-right: 12rpx;
|
}
|
|
.progress-bar .progress-fill {
|
height: 100%;
|
background: linear-gradient(90deg, #1976d2, #42a5f5);
|
border-radius: 3rpx;
|
transition: width 0.3s ease;
|
}
|
|
.progress-text {
|
font-size: 20rpx;
|
color: #666666;
|
min-width: 60rpx;
|
text-align: right;
|
}
|
|
.upload-status {
|
display: block;
|
font-size: 22rpx;
|
margin-top: 4rpx;
|
}
|
|
.upload-status.success {
|
color: #28a745;
|
}
|
|
.upload-status.error {
|
color: #dc3545;
|
}
|
|
.attachment-actions {
|
margin-left: 16rpx;
|
}
|
|
.attachment-actions .action-btn {
|
font-size: 24rpx;
|
color: #666666;
|
padding: 8rpx 16rpx;
|
border-radius: 6rpx;
|
background: #f8f9fa;
|
transition: all 0.3s ease;
|
}
|
|
.attachment-actions .action-btn.delete {
|
color: #dc3545;
|
background: #fff5f5;
|
}
|
|
.attachment-actions .action-btn:active {
|
opacity: 0.7;
|
}
|
|
.attachment-count {
|
font-size: 24rpx;
|
color: #666666;
|
text-align: center;
|
margin-top: 16rpx;
|
padding: 12rpx;
|
background: #f8f9fa;
|
border-radius: 8rpx;
|
}
|