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.
537 lines
7.6 KiB
537 lines
7.6 KiB
/**ocr-import.wxss**/
|
|
.container {
|
|
height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background-color: #f8f8f8;
|
|
}
|
|
|
|
/* 页面标题 */
|
|
.page-header {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 20rpx 30rpx;
|
|
background-color: #1296db;
|
|
color: white;
|
|
}
|
|
|
|
.page-title {
|
|
font-size: 36rpx;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* 步骤指示器 */
|
|
.step-indicator {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 30rpx;
|
|
background-color: white;
|
|
border-bottom: 1rpx solid #e5e5e5;
|
|
}
|
|
|
|
.step {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
flex: 1;
|
|
}
|
|
|
|
.step-number {
|
|
width: 60rpx;
|
|
height: 60rpx;
|
|
border-radius: 50%;
|
|
background-color: #e5e5e5;
|
|
color: #999;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 24rpx;
|
|
font-weight: bold;
|
|
margin-bottom: 12rpx;
|
|
}
|
|
|
|
.step.active .step-number {
|
|
background-color: #1296db;
|
|
color: white;
|
|
}
|
|
|
|
.step-text {
|
|
font-size: 24rpx;
|
|
color: #999;
|
|
}
|
|
|
|
.step.active .step-text {
|
|
color: #1296db;
|
|
}
|
|
|
|
.step-line {
|
|
flex: 1;
|
|
height: 2rpx;
|
|
background-color: #e5e5e5;
|
|
margin: 0 20rpx;
|
|
margin-bottom: 36rpx;
|
|
}
|
|
|
|
.step-line.active {
|
|
background-color: #1296db;
|
|
}
|
|
|
|
/* 内容区域 */
|
|
.content {
|
|
flex: 1;
|
|
padding: 30rpx;
|
|
}
|
|
|
|
.step-content {
|
|
height: 100%;
|
|
}
|
|
|
|
/* 上传区域 */
|
|
.upload-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
}
|
|
|
|
.upload-area {
|
|
flex: 1;
|
|
border: 2rpx dashed #ccc;
|
|
border-radius: 16rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background-color: white;
|
|
min-height: 400rpx;
|
|
}
|
|
|
|
.preview-image {
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 16rpx;
|
|
}
|
|
|
|
.upload-placeholder {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 60rpx;
|
|
}
|
|
|
|
.upload-icon {
|
|
width: 120rpx;
|
|
height: 120rpx;
|
|
margin-bottom: 30rpx;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.upload-text {
|
|
font-size: 32rpx;
|
|
color: #666;
|
|
margin-bottom: 16rpx;
|
|
}
|
|
|
|
.upload-tip {
|
|
font-size: 28rpx;
|
|
color: #999;
|
|
}
|
|
|
|
.image-actions {
|
|
display: flex;
|
|
gap: 20rpx;
|
|
margin-top: 30rpx;
|
|
}
|
|
|
|
/* 加载动画 */
|
|
.loading-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100%;
|
|
padding: 60rpx;
|
|
}
|
|
|
|
.loading-animation {
|
|
display: flex;
|
|
gap: 12rpx;
|
|
margin-bottom: 40rpx;
|
|
}
|
|
|
|
.loading-dot {
|
|
width: 16rpx;
|
|
height: 16rpx;
|
|
border-radius: 50%;
|
|
background-color: #1296db;
|
|
animation: loading 1.4s infinite ease-in-out;
|
|
}
|
|
|
|
.loading-dot:nth-child(1) {
|
|
animation-delay: -0.32s;
|
|
}
|
|
|
|
.loading-dot:nth-child(2) {
|
|
animation-delay: -0.16s;
|
|
}
|
|
|
|
@keyframes loading {
|
|
0%, 80%, 100% {
|
|
transform: scale(0);
|
|
}
|
|
40% {
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
|
|
.loading-text {
|
|
font-size: 32rpx;
|
|
color: #333;
|
|
margin-bottom: 16rpx;
|
|
}
|
|
|
|
.loading-tip {
|
|
font-size: 28rpx;
|
|
color: #999;
|
|
text-align: center;
|
|
}
|
|
|
|
/* OCR结果 */
|
|
.ocr-result-section {
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.result-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 30rpx;
|
|
}
|
|
|
|
.result-title {
|
|
font-size: 32rpx;
|
|
font-weight: bold;
|
|
color: #333;
|
|
}
|
|
|
|
.result-count {
|
|
font-size: 28rpx;
|
|
color: #1296db;
|
|
}
|
|
|
|
.course-list {
|
|
flex: 1;
|
|
background-color: white;
|
|
border-radius: 16rpx;
|
|
padding: 20rpx;
|
|
margin-bottom: 30rpx;
|
|
}
|
|
|
|
.course-item {
|
|
padding: 24rpx;
|
|
border-bottom: 1rpx solid #f0f0f0;
|
|
}
|
|
|
|
.course-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.course-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 16rpx;
|
|
}
|
|
|
|
.course-name {
|
|
font-size: 30rpx;
|
|
font-weight: bold;
|
|
color: #333;
|
|
flex: 1;
|
|
}
|
|
|
|
.course-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16rpx;
|
|
}
|
|
|
|
.edit-btn {
|
|
background-color: #1296db;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 8rpx;
|
|
padding: 8rpx 16rpx;
|
|
font-size: 24rpx;
|
|
}
|
|
|
|
.course-switch {
|
|
transform: scale(0.8);
|
|
}
|
|
|
|
.course-details {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8rpx;
|
|
}
|
|
|
|
.course-detail {
|
|
font-size: 26rpx;
|
|
color: #666;
|
|
}
|
|
|
|
/* 空结果 */
|
|
.empty-result {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex: 1;
|
|
padding: 60rpx;
|
|
}
|
|
|
|
.empty-icon {
|
|
width: 200rpx;
|
|
height: 200rpx;
|
|
margin-bottom: 30rpx;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.empty-text {
|
|
font-size: 32rpx;
|
|
color: #999;
|
|
margin-bottom: 16rpx;
|
|
}
|
|
|
|
.empty-tip {
|
|
font-size: 28rpx;
|
|
color: #ccc;
|
|
text-align: center;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* 导入结果 */
|
|
.import-result-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100%;
|
|
padding: 60rpx;
|
|
}
|
|
|
|
.result-icon {
|
|
margin-bottom: 40rpx;
|
|
}
|
|
|
|
.success-icon {
|
|
width: 120rpx;
|
|
height: 120rpx;
|
|
}
|
|
|
|
.result-title {
|
|
font-size: 36rpx;
|
|
font-weight: bold;
|
|
color: #333;
|
|
margin-bottom: 30rpx;
|
|
}
|
|
|
|
.import-summary {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 12rpx;
|
|
margin-bottom: 60rpx;
|
|
}
|
|
|
|
.summary-text {
|
|
font-size: 28rpx;
|
|
color: #666;
|
|
}
|
|
|
|
.error-text {
|
|
font-size: 26rpx;
|
|
color: #ff4757;
|
|
}
|
|
|
|
/* 错误详情样式 */
|
|
.error-details {
|
|
width: 100%;
|
|
background-color: #fff5f5;
|
|
border: 1rpx solid #fecaca;
|
|
border-radius: 12rpx;
|
|
padding: 24rpx;
|
|
margin-bottom: 30rpx;
|
|
}
|
|
|
|
.error-title {
|
|
font-size: 28rpx;
|
|
font-weight: bold;
|
|
color: #dc2626;
|
|
margin-bottom: 16rpx;
|
|
display: block;
|
|
}
|
|
|
|
.error-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.error-item {
|
|
font-size: 26rpx;
|
|
color: #991b1b;
|
|
line-height: 1.5;
|
|
margin-bottom: 8rpx;
|
|
padding-left: 20rpx;
|
|
position: relative;
|
|
}
|
|
|
|
.error-item::before {
|
|
content: "•";
|
|
position: absolute;
|
|
left: 0;
|
|
color: #dc2626;
|
|
}
|
|
|
|
/* 操作按钮 */
|
|
.result-actions,
|
|
.final-actions {
|
|
display: flex;
|
|
gap: 20rpx;
|
|
width: 100%;
|
|
}
|
|
|
|
.action-btn {
|
|
flex: 1;
|
|
height: 80rpx;
|
|
border-radius: 40rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 30rpx;
|
|
border: none;
|
|
}
|
|
|
|
.action-btn.primary {
|
|
background: linear-gradient(135deg, #1296db 0%, #0d7ec7 100%);
|
|
color: white;
|
|
}
|
|
|
|
.action-btn.secondary {
|
|
background-color: #f8f8f8;
|
|
color: #1296db;
|
|
border: 1rpx solid #1296db;
|
|
}
|
|
|
|
.btn-text {
|
|
font-size: 30rpx;
|
|
}
|
|
|
|
/* 编辑弹窗样式 */
|
|
.modal-overlay {
|
|
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;
|
|
}
|
|
|
|
.edit-modal {
|
|
background-color: white;
|
|
border-radius: 16rpx;
|
|
width: 90%;
|
|
max-width: 600rpx;
|
|
max-height: 80vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 32rpx;
|
|
border-bottom: 1rpx solid #f0f0f0;
|
|
}
|
|
|
|
.modal-title {
|
|
font-size: 32rpx;
|
|
font-weight: bold;
|
|
color: #333;
|
|
}
|
|
|
|
.close-btn {
|
|
background: none;
|
|
border: none;
|
|
font-size: 40rpx;
|
|
color: #999;
|
|
padding: 0;
|
|
width: 40rpx;
|
|
height: 40rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.modal-content {
|
|
flex: 1;
|
|
padding: 32rpx;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 32rpx;
|
|
}
|
|
|
|
.form-group.half {
|
|
flex: 1;
|
|
}
|
|
|
|
.form-row {
|
|
display: flex;
|
|
gap: 20rpx;
|
|
}
|
|
|
|
.form-label {
|
|
display: block;
|
|
font-size: 28rpx;
|
|
color: #333;
|
|
margin-bottom: 12rpx;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.form-input {
|
|
width: 100%;
|
|
padding: 20rpx;
|
|
border: 1rpx solid #e0e0e0;
|
|
border-radius: 8rpx;
|
|
font-size: 28rpx;
|
|
background-color: #fafafa;
|
|
}
|
|
|
|
.form-input:focus {
|
|
border-color: #1296db;
|
|
background-color: white;
|
|
}
|
|
|
|
.picker-display {
|
|
padding: 20rpx;
|
|
border: 1rpx solid #e0e0e0;
|
|
border-radius: 8rpx;
|
|
font-size: 28rpx;
|
|
background-color: #fafafa;
|
|
color: #333;
|
|
}
|
|
|
|
.modal-actions {
|
|
display: flex;
|
|
gap: 20rpx;
|
|
padding: 32rpx;
|
|
border-top: 1rpx solid #f0f0f0;
|
|
}
|