You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
242 lines
3.7 KiB
242 lines
3.7 KiB
// 体测记录弹窗样式
|
|
|
|
// 弹窗容器 - 使用view类型
|
|
.fitness-record-popup {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000; // 高于体测记录列表弹窗(999)
|
|
}
|
|
|
|
.popup-container {
|
|
width: 90vw;
|
|
max-width: 600rpx;
|
|
background: #fff;
|
|
border-radius: 20rpx;
|
|
overflow: hidden;
|
|
box-shadow: 0 10rpx 30rpx rgba(0, 0, 0, 0.2);
|
|
animation: popupFadeIn 0.3s ease-out;
|
|
}
|
|
|
|
@keyframes popupFadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: scale(0.9);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
|
|
.popup-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 30rpx 40rpx;
|
|
background: #29d3b4;
|
|
color: #fff;
|
|
}
|
|
|
|
.popup-title {
|
|
font-size: 32rpx;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.popup-close {
|
|
width: 50rpx;
|
|
height: 50rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border-radius: 50%;
|
|
font-size: 28rpx;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.popup-close:active {
|
|
background: rgba(255, 255, 255, 0.3);
|
|
transform: scale(0.9);
|
|
}
|
|
|
|
.popup-footer {
|
|
display: flex;
|
|
padding: 30rpx 40rpx;
|
|
background: #f8f9fa;
|
|
gap: 20rpx;
|
|
}
|
|
|
|
.popup-btn {
|
|
flex: 1;
|
|
height: 80rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 12rpx;
|
|
font-size: 30rpx;
|
|
font-weight: bold;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.cancel-btn {
|
|
background: #e9ecef;
|
|
color: #666;
|
|
}
|
|
|
|
.cancel-btn:active {
|
|
background: #dee2e6;
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
.confirm-btn {
|
|
background: #29d3b4;
|
|
color: #fff;
|
|
}
|
|
|
|
.confirm-btn:active {
|
|
background: #1ea08e;
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
// 体测记录表单样式
|
|
.fitness-record-form {
|
|
width: 100%;
|
|
max-height: 60vh;
|
|
overflow-y: auto;
|
|
padding: 20rpx;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.form-section {
|
|
width: 100%;
|
|
}
|
|
|
|
.form-item {
|
|
margin-bottom: 30rpx;
|
|
}
|
|
|
|
.form-label {
|
|
font-size: 30rpx;
|
|
color: #333;
|
|
margin-bottom: 15rpx;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.form-input {
|
|
border: 2px solid #eee;
|
|
border-radius: 12rpx;
|
|
padding: 0 20rpx;
|
|
background: #fff;
|
|
transition: border-color 0.3s ease;
|
|
}
|
|
|
|
.form-input:focus-within {
|
|
border-color: #29d3b4;
|
|
}
|
|
|
|
.form-input input {
|
|
width: 100%;
|
|
height: 80rpx;
|
|
font-size: 28rpx;
|
|
color: #333;
|
|
border: none;
|
|
outline: none;
|
|
background: transparent;
|
|
}
|
|
|
|
.file-upload-area {
|
|
width: 100%;
|
|
}
|
|
|
|
.upload-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: #f8f9fa;
|
|
border: 2px dashed #ddd;
|
|
border-radius: 12rpx;
|
|
padding: 40rpx;
|
|
margin-bottom: 20rpx;
|
|
color: #666;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.upload-btn:active {
|
|
background: #e9ecef;
|
|
border-color: #29d3b4;
|
|
}
|
|
|
|
.upload-icon {
|
|
font-size: 40rpx;
|
|
margin-right: 15rpx;
|
|
}
|
|
|
|
.upload-text {
|
|
font-size: 28rpx;
|
|
}
|
|
|
|
.selected-files {
|
|
width: 100%;
|
|
}
|
|
|
|
.selected-file-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 15rpx 20rpx;
|
|
background: #f8f9fa;
|
|
border-radius: 12rpx;
|
|
margin-bottom: 10rpx;
|
|
border: 1px solid #eee;
|
|
}
|
|
|
|
.file-info {
|
|
display: flex;
|
|
align-items: center;
|
|
flex: 1;
|
|
}
|
|
|
|
.file-icon {
|
|
font-size: 28rpx;
|
|
margin-right: 12rpx;
|
|
color: #666;
|
|
}
|
|
|
|
.file-name {
|
|
flex: 1;
|
|
font-size: 26rpx;
|
|
color: #333;
|
|
margin-right: 10rpx;
|
|
}
|
|
|
|
.file-size {
|
|
font-size: 22rpx;
|
|
color: #999;
|
|
}
|
|
|
|
.file-remove {
|
|
width: 40rpx;
|
|
height: 40rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: #ff4757;
|
|
color: #fff;
|
|
border-radius: 50%;
|
|
font-size: 24rpx;
|
|
font-weight: bold;
|
|
margin-left: 15rpx;
|
|
}
|
|
|
|
.file-remove:active {
|
|
background: #ff3838;
|
|
}
|