@jr-public/jr-upload-ui 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,12 @@
1
1
  <template>
2
2
  <div class="jr-upload-modal-wrapper">
3
3
  <!-- 主弹框 -->
4
- <div
5
- v-if="visible"
6
- class="jr-upload-modal-overlay"
7
- @click="handleOverlayClick"
8
- >
4
+ <div
5
+ v-if="visible"
6
+ class="jr-upload-modal-overlay"
7
+ :class="{ 'with-overlay': showOverlay, 'without-overlay': !showOverlay }"
8
+ @click="handleOverlayClick"
9
+ >
9
10
  <!-- 弹框容器 -->
10
11
  <div
11
12
  class="modal-container"
@@ -28,7 +29,7 @@
28
29
  </div>
29
30
 
30
31
  <!-- 主内容区域 -->
31
- <div class="modal-content" :style="{ backgroundImage: 'url(' + config.baseUrl + '/images/bg.jpg)' }">
32
+ <div class="modal-content" :style="{ backgroundImage: showOverlay ? 'url(' + config.baseUrl + '/images/bg.jpg)' : 'none' }">
32
33
  <div class="main-container">
33
34
  <div class="content-grid">
34
35
  <!-- 左侧上传区域 -->
@@ -264,10 +265,22 @@ export default {
264
265
 
265
266
  props: {
266
267
  // 基础配置
267
- visible: {
268
- type: Boolean,
269
- default: false
270
- },
268
+ visible: {
269
+ type: Boolean,
270
+ default: false
271
+ },
272
+ showOverlay: {
273
+ type: Boolean,
274
+ default: false
275
+ },
276
+ autoClose: {
277
+ type: Boolean,
278
+ default: false
279
+ },
280
+ autoCloseDelay: {
281
+ type: Number,
282
+ default: 1000
283
+ },
271
284
  title: {
272
285
  type: String,
273
286
  default: '文件上传'
@@ -350,9 +363,10 @@ export default {
350
363
  const uploadSuccess = ref(false)
351
364
 
352
365
  // 弹框控制
353
- const isMinimized = ref(false)
354
- const isMinimizing = ref(false)
355
- const isRestoring = ref(false)
366
+ const isMinimized = ref(false)
367
+ const isMinimizing = ref(false)
368
+ const isRestoring = ref(false)
369
+ const autoCloseTimer = ref(null)
356
370
 
357
371
  // 拖拽相关
358
372
  const dragStartX = ref(0)
@@ -389,13 +403,23 @@ export default {
389
403
  const fileInput = ref(null)
390
404
  const uploadButton = ref(null)
391
405
 
392
- // 计算属性
393
- const fileRestrictions = computed(() => {
394
- return {
395
- allowedExtensions: props.accept ? props.accept.split(',').map(ext => {
396
- const trimmed = ext.trim()
397
- return trimmed.startsWith('.') ? trimmed : '.' + trimmed
398
- }) : null,
406
+ // 计算属性
407
+ const fileRestrictions = computed(() => {
408
+ const allowedExtensions = props.accept ? props.accept.split(',').map(ext => {
409
+ const trimmed = ext.trim()
410
+ return trimmed.startsWith('.') ? trimmed : '.' + trimmed
411
+ }) : null
412
+
413
+ if (allowedExtensions) {
414
+ ['.aqtf', '.hftf', '.gef', '.tb_dg_gef', '.nsxtf', '.sxt2', '.gbq7', '.jmbs'].forEach(ext => {
415
+ if (!allowedExtensions.some(item => item.toLowerCase() === ext)) {
416
+ allowedExtensions.push(ext)
417
+ }
418
+ })
419
+ }
420
+
421
+ return {
422
+ allowedExtensions,
399
423
  maxSizeBytes: props.maxSize && props.maxSize > 0 ? props.maxSize * 1024 : null,
400
424
  maxFileCount: props.maxCount && props.maxCount > 0 ? props.maxCount : null,
401
425
  multiple: props.multiple,
@@ -515,8 +539,23 @@ export default {
515
539
  cleanup()
516
540
  })
517
541
 
518
- // 方法定义
519
- const initializeComponent = async () => {
542
+ // 方法定义
543
+ /**
544
+ * 判断文件后缀是否允许上传,投标成果类后缀兼容包含 gef 或 sxt 的扩展名。
545
+ */
546
+ const isAllowedFileExtension = (fileExt, allowedExtensions) => {
547
+ const normalizedExt = (fileExt || '').toLowerCase()
548
+ if (!normalizedExt) return false
549
+
550
+ if (['.aqtf', '.hftf', '.gef', '.tb_dg_gef', '.nsxtf', '.sxt2', '.gbq7', '.jmbs'].includes(normalizedExt)
551
+ || normalizedExt.includes('gef') || normalizedExt.includes('sxt')) {
552
+ return true
553
+ }
554
+
555
+ return allowedExtensions.some(ext => ext.toLowerCase() === normalizedExt)
556
+ }
557
+
558
+ const initializeComponent = async () => {
520
559
  isElectronEnv.value = detectElectronEnvironment()
521
560
 
522
561
  // 发送环境检测事件
@@ -590,12 +629,12 @@ export default {
590
629
  const baseUrl = props.config.baseUrl
591
630
  const dependencies = [
592
631
  `${baseUrl}/js/aliyun-oss-sdk-6.18.0.min.js`,
593
- `${baseUrl}/js/jr-transfer-sdk.js`,
632
+ `${baseUrl}/js/jr-transfer-sdk.js?v=20260814-jmbs`,
594
633
  `${baseUrl}/js/jszip.min.js`
595
634
  ]
596
635
 
597
636
  // 检查是否已加载
598
- if (window.JrTransferSDK && window.OSS && window.JSZip) {
637
+ if (window.JrTransferSDK && window.JrTransferSDK.SDK_VERSION === '20260814-jmbs' && window.OSS && window.JSZip) {
599
638
  return Promise.resolve()
600
639
  }
601
640
 
@@ -626,7 +665,11 @@ export default {
626
665
  }
627
666
  }
628
667
 
629
- const cleanup = () => {
668
+ const cleanup = () => {
669
+ if (autoCloseTimer.value) {
670
+ clearTimeout(autoCloseTimer.value)
671
+ autoCloseTimer.value = null
672
+ }
630
673
  // 清理资源
631
674
  if (_dynamicStyle.value) {
632
675
  _dynamicStyle.value.remove()
@@ -634,7 +677,11 @@ export default {
634
677
  }
635
678
  }
636
679
 
637
- const resetState = () => {
680
+ const resetState = () => {
681
+ if (autoCloseTimer.value) {
682
+ clearTimeout(autoCloseTimer.value)
683
+ autoCloseTimer.value = null
684
+ }
638
685
  filesToUpload.value = []
639
686
  uploadProgress.total = 0
640
687
  uploadProgress.completed = 0
@@ -652,22 +699,10 @@ export default {
652
699
  tempLocalPaths.value = []
653
700
  }
654
701
 
655
- // 动态设置CSS背景图片
656
- const setDynamicBackgroundImages = () => {
657
- if (!props.config.baseUrl) return
658
-
659
- // 设置提示图标背景
660
- const style = document.createElement('style')
661
- style.textContent = `
662
- .jr-upload-modal-wrapper .restrictions-title::before {
663
- background-image: url('${props.config.baseUrl}/images/tipsicon.svg') !important;
664
- }
665
- `
666
- document.head.appendChild(style)
667
-
668
- // 保存引用以便清理
669
- _dynamicStyle.value = style
670
- }
702
+ // 动态设置CSS背景图片
703
+ const setDynamicBackgroundImages = () => {
704
+ // 提示图标使用组件内 CSS 绘制,避免外部系统缓存图片导致颜色不一致
705
+ }
671
706
 
672
707
  // 加载压缩配置
673
708
  const loadCompressionConfig = async () => {
@@ -930,7 +965,7 @@ export default {
930
965
  // 文件类型验证
931
966
  if (fileRestrictions.value.allowedExtensions) {
932
967
  const fileExt = '.' + file.name.toLowerCase().split('.').pop()
933
- if (!fileRestrictions.value.allowedExtensions.some(ext => ext.toLowerCase() === fileExt)) {
968
+ if (!isAllowedFileExtension(fileExt, fileRestrictions.value.allowedExtensions)) {
934
969
  showError(`不支持的文件类型 ${fileExt}`)
935
970
  continue
936
971
  }
@@ -1589,8 +1624,17 @@ export default {
1589
1624
  'pdf': 'application/pdf',
1590
1625
  'doc': 'application/msword',
1591
1626
  'docx': 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
1592
- 'xls': 'application/vnd.ms-excel',
1593
- 'xlsx': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
1627
+ 'xls': 'application/vnd.ms-excel',
1628
+ 'xlsx': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
1629
+ 'et': 'application/vnd.ms-excel',
1630
+ 'aqtf': 'application/octet-stream',
1631
+ 'hftf': 'application/octet-stream',
1632
+ 'gef': 'application/octet-stream',
1633
+ 'tb_dg_gef': 'application/octet-stream',
1634
+ 'nsxtf': 'application/octet-stream',
1635
+ 'sxt2': 'application/octet-stream',
1636
+ 'gbq7': 'application/octet-stream',
1637
+ 'jmbs': 'application/octet-stream',
1594
1638
  'ppt': 'application/vnd.ms-powerpoint',
1595
1639
  'pptx': 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
1596
1640
  'txt': 'text/plain',
@@ -1947,7 +1991,9 @@ export default {
1947
1991
  }
1948
1992
  }
1949
1993
 
1950
- console.log('✅ 上传完成:', uploadResult)
1994
+ scheduleAutoClose()
1995
+
1996
+ console.log('✅ 上传完成:', uploadResult)
1951
1997
 
1952
1998
  } catch (error) {
1953
1999
  console.error('上传过程出错:', error)
@@ -2306,7 +2352,24 @@ export default {
2306
2352
  }, 400)
2307
2353
  }
2308
2354
 
2309
- const closeModal = () => {
2355
+ const scheduleAutoClose = () => {
2356
+ if (!props.autoClose) {
2357
+ return
2358
+ }
2359
+ if (autoCloseTimer.value) {
2360
+ clearTimeout(autoCloseTimer.value)
2361
+ }
2362
+ const parsedDelay = Number(props.autoCloseDelay)
2363
+ const delay = Number.isFinite(parsedDelay) && parsedDelay >= 0 ? Math.floor(parsedDelay) : 1000
2364
+ autoCloseTimer.value = setTimeout(() => {
2365
+ autoCloseTimer.value = null
2366
+ if (props.visible) {
2367
+ closeModal()
2368
+ }
2369
+ }, delay)
2370
+ }
2371
+
2372
+ const closeModal = () => {
2310
2373
  resetState()
2311
2374
  emit('close')
2312
2375
  emit('update:visible', false)
@@ -2317,10 +2380,13 @@ export default {
2317
2380
  }
2318
2381
  }
2319
2382
 
2320
- const handleOverlayClick = () => {
2321
- if (!isMinimized.value) {
2322
- closeModal()
2323
- }
2383
+ const handleOverlayClick = () => {
2384
+ if (!props.showOverlay) {
2385
+ return
2386
+ }
2387
+ if (!isMinimized.value) {
2388
+ closeModal()
2389
+ }
2324
2390
  }
2325
2391
 
2326
2392
  // 拖拽功能
@@ -2465,45 +2531,72 @@ export default {
2465
2531
  }
2466
2532
 
2467
2533
  /* 弹框遮罩层 - 半透明遮罩 */
2468
- .jr-upload-modal-overlay {
2469
- position: fixed;
2470
- top: 0;
2471
- left: 0;
2472
- width: 100%;
2473
- height: 100%;
2474
- background: rgba(0, 0, 0, 0.5);
2475
- backdrop-filter: blur(2px);
2476
- z-index: 9999;
2477
- display: flex;
2478
- justify-content: center;
2479
- align-items: center;
2480
- padding: 20px;
2481
- overflow: hidden;
2482
- }
2534
+ .jr-upload-modal-overlay {
2535
+ position: fixed;
2536
+ top: 0;
2537
+ left: 0;
2538
+ width: 100%;
2539
+ height: 100%;
2540
+ background: transparent;
2541
+ backdrop-filter: none;
2542
+ z-index: 9999;
2543
+ display: flex;
2544
+ justify-content: center;
2545
+ align-items: center;
2546
+ padding: 20px;
2547
+ overflow: hidden;
2548
+ pointer-events: none;
2549
+ }
2550
+
2551
+ .jr-upload-modal-overlay.with-overlay {
2552
+ background: rgba(0, 0, 0, 0.5);
2553
+ backdrop-filter: blur(2px);
2554
+ justify-content: center;
2555
+ align-items: center;
2556
+ padding: 20px;
2557
+ pointer-events: auto;
2558
+ }
2483
2559
 
2484
2560
  /* 弹框容器 - 模拟jr-simple-sdk的模态框 */
2485
2561
  /* 弹框容器 */
2486
- .modal-container {
2487
- width: 90%;
2488
- max-width: 1200px;
2489
- height: 80vh;
2490
- max-height: 800px;
2491
- background: rgba(255, 255, 255, 0.95);
2492
- backdrop-filter: blur(20px);
2493
- -webkit-backdrop-filter: blur(20px);
2494
- border-radius: 12px;
2495
- box-shadow:
2496
- 0 20px 60px rgba(0, 0, 0, 0.15),
2497
- 0 8px 32px rgba(0, 0, 0, 0.1),
2498
- 0 1px 3px rgba(0, 0, 0, 0.05);
2499
- border: 1px solid rgba(255, 255, 255, 0.5);
2500
- overflow: hidden;
2501
- position: relative;
2502
- display: flex;
2503
- flex-direction: column;
2504
- transform: scale(1);
2505
- transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
2506
- }
2562
+ .modal-container {
2563
+ width: 90%;
2564
+ max-width: 1200px;
2565
+ height: 80vh;
2566
+ max-height: 800px;
2567
+ background: rgba(255, 255, 255, 0.95);
2568
+ backdrop-filter: blur(20px);
2569
+ -webkit-backdrop-filter: blur(20px);
2570
+ border-radius: 12px;
2571
+ box-shadow:
2572
+ 0 20px 60px rgba(0, 0, 0, 0.15),
2573
+ 0 8px 32px rgba(0, 0, 0, 0.1),
2574
+ 0 1px 3px rgba(0, 0, 0, 0.05);
2575
+ border: 1px solid rgba(255, 255, 255, 0.5);
2576
+ overflow: hidden;
2577
+ position: relative;
2578
+ display: flex;
2579
+ flex-direction: column;
2580
+ transform: scale(1);
2581
+ transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
2582
+ pointer-events: auto;
2583
+ }
2584
+
2585
+ .jr-upload-modal-overlay.with-overlay .modal-container {
2586
+ width: 90%;
2587
+ max-width: 1200px;
2588
+ height: 80vh;
2589
+ max-height: 800px;
2590
+ background: rgba(255, 255, 255, 0.95);
2591
+ backdrop-filter: blur(20px);
2592
+ -webkit-backdrop-filter: blur(20px);
2593
+ border-radius: 12px;
2594
+ box-shadow:
2595
+ 0 20px 60px rgba(0, 0, 0, 0.15),
2596
+ 0 8px 32px rgba(0, 0, 0, 0.1),
2597
+ 0 1px 3px rgba(0, 0, 0, 0.05);
2598
+ border: 1px solid rgba(255, 255, 255, 0.5);
2599
+ }
2507
2600
 
2508
2601
  /* 模拟iframe的body区域 */
2509
2602
  .modal-content {
@@ -2512,32 +2605,42 @@ export default {
2512
2605
  position: relative;
2513
2606
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
2514
2607
  /* 背景图片通过内联样式动态设置 */
2515
- background-size: cover;
2516
- display: flex;
2517
- justify-content: center;
2518
- align-items: center;
2519
- padding: 20px;
2520
- border-radius: 0 0 12px 12px;
2521
- }
2608
+ background-size: cover;
2609
+ display: flex;
2610
+ justify-content: center;
2611
+ align-items: center;
2612
+ padding: 0;
2613
+ border-radius: 0;
2614
+ }
2615
+
2616
+ .jr-upload-modal-overlay.with-overlay .modal-content {
2617
+ padding: 20px;
2618
+ border-radius: 0 0 12px 12px;
2619
+ }
2522
2620
 
2523
2621
  /* 标题栏 */
2524
- .modal-header {
2525
- height: 50px;
2526
- background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
2527
- border-bottom: 1px solid rgba(226, 232, 240, 0.8);
2528
- display: flex;
2529
- align-items: center;
2530
- justify-content: space-between;
2531
- padding: 0 20px;
2532
- position: relative;
2533
- cursor: move;
2534
- user-select: none;
2535
- }
2536
-
2537
- .modal-title {
2538
- font-size: 16px;
2539
- font-weight: 500;
2540
- color: #1e293b;
2622
+ .modal-header {
2623
+ height: 50px !important;
2624
+ background: linear-gradient(135deg, #0c5ee3 0%, rgba(59, 130, 246, 0.9) 100%) !important;
2625
+ border-bottom: 1px solid rgba(12, 94, 227, 0.25) !important;
2626
+ display: flex;
2627
+ align-items: center;
2628
+ justify-content: space-between;
2629
+ padding: 0 20px;
2630
+ position: relative;
2631
+ cursor: move;
2632
+ user-select: none;
2633
+ border-radius: 0;
2634
+ }
2635
+
2636
+ .jr-upload-modal-overlay.with-overlay .modal-header {
2637
+ border-radius: 12px 12px 0 0;
2638
+ }
2639
+
2640
+ .modal-title {
2641
+ font-size: 16px;
2642
+ font-weight: 500;
2643
+ color: #fff !important;
2541
2644
  display: flex;
2542
2645
  align-items: center;
2543
2646
  gap: 8px;
@@ -2554,67 +2657,82 @@ export default {
2554
2657
  width: 16px;
2555
2658
  height: 16px;
2556
2659
  border-radius: 50%;
2557
- border: none;
2660
+ border: none !important;
2558
2661
  cursor: pointer;
2559
2662
  transition: all 0.2s ease;
2560
2663
  position: relative;
2561
- display: flex;
2562
- align-items: center;
2563
- justify-content: center;
2564
- }
2565
-
2566
- .control-btn:hover {
2567
- transform: scale(1.1);
2568
- }
2569
-
2570
- .minimize-btn {
2571
- background: #ffbd2e;
2572
- }
2573
-
2574
- .minimize-btn:hover {
2575
- background: #f5a623;
2576
- }
2664
+ display: flex;
2665
+ align-items: center;
2666
+ justify-content: center;
2667
+ appearance: none !important;
2668
+ -webkit-appearance: none !important;
2669
+ }
2670
+
2671
+ .control-btn:hover {
2672
+ transform: scale(1.1);
2673
+ background: rgba(255, 255, 255, 0.16) !important;
2674
+ }
2675
+
2676
+ .minimize-btn {
2677
+ background: none !important;
2678
+ }
2679
+
2680
+ .minimize-btn:hover {
2681
+ background: rgba(255, 255, 255, 0.16) !important;
2682
+ }
2577
2683
 
2578
2684
  .minimize-btn::after {
2579
2685
  content: '';
2580
- width: 6px;
2581
- height: 1px;
2582
- background: #fff;
2686
+ width: 10px;
2687
+ height: 2px;
2688
+ background: #fff !important;
2583
2689
  position: absolute;
2584
2690
  }
2585
2691
 
2586
- .close-btn {
2587
- background: #ff5f57;
2588
- }
2589
-
2590
- .close-btn:hover {
2591
- background: #e8443a;
2592
- }
2692
+ .close-btn {
2693
+ background: none !important;
2694
+ }
2695
+
2696
+ .close-btn:hover {
2697
+ background: rgba(255, 255, 255, 0.16) !important;
2698
+ }
2593
2699
 
2594
2700
  .close-btn::after {
2595
- content: '×';
2596
- font-size: 12px;
2597
- color: #fff;
2701
+ content: '\2715';
2702
+ font-size: 14px;
2703
+ color: #fff !important;
2598
2704
  line-height: 1;
2599
2705
  }
2600
2706
 
2601
- .main-container {
2602
- margin-left: 0!important;
2603
- width: 92%;
2604
- max-width: 1200px;
2605
- height: 85%!important;
2606
- max-height: 800px;
2607
- background: rgba(69, 70, 60, 0.5);
2608
- backdrop-filter: blur(20px);
2609
- -webkit-backdrop-filter: blur(20px);
2610
- box-shadow:
2611
- 0 8px 32px rgba(0, 0, 0, 0.1),
2612
- 0 1px 3px rgba(0, 0, 0, 0.05),
2613
- inset 0 1px 0 rgba(255, 255, 255, 0.6);
2614
- overflow: hidden;
2615
- position: relative;
2616
- border-radius: 12px;
2617
- }
2707
+ .main-container {
2708
+ margin-left: 0!important;
2709
+ width: 100%;
2710
+ max-width: none;
2711
+ height: 100%!important;
2712
+ max-height: none;
2713
+ background: transparent;
2714
+ backdrop-filter: none;
2715
+ -webkit-backdrop-filter: none;
2716
+ box-shadow: none;
2717
+ overflow: hidden;
2718
+ position: relative;
2719
+ border-radius: 0;
2720
+ }
2721
+
2722
+ .jr-upload-modal-overlay.with-overlay .main-container {
2723
+ width: 92%;
2724
+ max-width: 1200px;
2725
+ height: 85%!important;
2726
+ max-height: 800px;
2727
+ background: rgba(69, 70, 60, 0.5);
2728
+ backdrop-filter: blur(20px);
2729
+ -webkit-backdrop-filter: blur(20px);
2730
+ box-shadow:
2731
+ 0 8px 32px rgba(0, 0, 0, 0.1),
2732
+ 0 1px 3px rgba(0, 0, 0, 0.05),
2733
+ inset 0 1px 0 rgba(255, 255, 255, 0.6);
2734
+ border-radius: 12px;
2735
+ }
2618
2736
 
2619
2737
  .content-grid {
2620
2738
  display: grid;
@@ -2649,8 +2767,8 @@ export default {
2649
2767
  width: 200%;
2650
2768
  height: 200%;
2651
2769
  background:
2652
- radial-gradient(circle at 30% 70%, rgba(255, 140, 0, 0.06) 0%, transparent 40%),
2653
- radial-gradient(circle at 70% 30%, rgba(255, 184, 77, 0.04) 0%, transparent 35%);
2770
+ radial-gradient(circle at 30% 70%, rgba(12, 94, 227, 0.06) 0%, transparent 40%),
2771
+ radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.04) 0%, transparent 35%);
2654
2772
  animation: gentleGlow 20s ease-in-out infinite;
2655
2773
  pointer-events: none;
2656
2774
  z-index: 0;
@@ -2667,7 +2785,7 @@ export default {
2667
2785
  }
2668
2786
  }
2669
2787
 
2670
- /* 左下角渐变橙点 */
2788
+ /* 左下角渐变蓝点 */
2671
2789
  .upload-panel::after {
2672
2790
  content: '';
2673
2791
  position: absolute;
@@ -2676,10 +2794,10 @@ export default {
2676
2794
  width: 200px;
2677
2795
  height: 200px;
2678
2796
  background: linear-gradient(135deg,
2679
- rgba(255, 107, 3, 0.8) 0%,
2680
- rgba(255, 131, 51, 0.7) 30%,
2681
- rgba(255, 155, 99, 0.6) 60%,
2682
- rgba(255, 179, 147, 0.5) 100%);
2797
+ rgba(12, 94, 227, 0.8) 0%,
2798
+ rgba(37, 99, 235, 0.7) 30%,
2799
+ rgba(96, 165, 250, 0.6) 60%,
2800
+ rgba(147, 197, 253, 0.5) 100%);
2683
2801
  border-radius: 50%;
2684
2802
  filter: blur(40px);
2685
2803
  pointer-events: none;
@@ -2715,14 +2833,14 @@ export default {
2715
2833
  height: 100px;
2716
2834
  margin: 0 auto 24px;
2717
2835
  background: linear-gradient(135deg,
2718
- rgba(248, 205, 175, 0.8) 0%,
2719
- rgba(242, 202, 185, 0.5) 100%);
2836
+ rgba(147, 197, 253, 0.8) 0%,
2837
+ rgba(191, 219, 254, 0.5) 100%);
2720
2838
  border-radius: 50%;
2721
2839
  display: flex;
2722
2840
  align-items: center;
2723
2841
  justify-content: center;
2724
2842
  font-size: 48px;
2725
- color: #FF8C00;
2843
+ color: #0c5ee3;
2726
2844
  transition: all 0.3s ease;
2727
2845
  position: relative;
2728
2846
  overflow: visible;
@@ -2765,7 +2883,7 @@ export default {
2765
2883
  position: relative;
2766
2884
  width: 3px;
2767
2885
  height: 25px;
2768
- background: linear-gradient(180deg, #ff6822, #ff922b);
2886
+ background: linear-gradient(180deg, #0c5ee3, #3b82f6);
2769
2887
  border-radius: 2px;
2770
2888
  animation: arrowFlow 2.4s ease-in-out infinite;
2771
2889
  }
@@ -2780,7 +2898,7 @@ export default {
2780
2898
  height: 0;
2781
2899
  border-left: 6px solid transparent;
2782
2900
  border-right: 6px solid transparent;
2783
- border-top: 10px solid #ff922b;
2901
+ border-top: 10px solid #3b82f6;
2784
2902
  opacity: 0.7;
2785
2903
  }
2786
2904
 
@@ -2834,7 +2952,7 @@ export default {
2834
2952
  }
2835
2953
 
2836
2954
  .upload-panel.active .upload-visual {
2837
- background: linear-gradient(135deg, rgba(255, 140, 0, 0.2), rgba(255, 184, 77, 0.2));
2955
+ background: linear-gradient(135deg, rgba(12, 94, 227, 0.2), rgba(59, 130, 246, 0.2));
2838
2956
  transform: scale(1.05);
2839
2957
  }
2840
2958
 
@@ -2848,7 +2966,7 @@ export default {
2848
2966
  }
2849
2967
 
2850
2968
  .upload-panel:hover .upload-visual {
2851
- background: linear-gradient(135deg, rgba(255, 140, 0, 0.15), rgba(255, 184, 77, 0.15));
2969
+ background: linear-gradient(135deg, rgba(12, 94, 227, 0.15), rgba(59, 130, 246, 0.15));
2852
2970
  transform: scale(1.02);
2853
2971
  }
2854
2972
 
@@ -2875,7 +2993,7 @@ export default {
2875
2993
  }
2876
2994
 
2877
2995
  .upload-button {
2878
- background: linear-gradient(90deg, #ff6822, #ff922b);
2996
+ background: linear-gradient(90deg, #0c5ee3, #3b82f6);
2879
2997
  color: white;
2880
2998
  border: none;
2881
2999
  padding: 10px 24px;
@@ -2884,16 +3002,16 @@ export default {
2884
3002
  font-weight: 500;
2885
3003
  cursor: pointer;
2886
3004
  transition: all 0.3s ease;
2887
- box-shadow: 0 6px 20px rgba(255, 104, 34, 0.3);
3005
+ box-shadow: 0 6px 20px rgba(12, 94, 227, 0.3);
2888
3006
  margin-bottom: 24px;
2889
3007
  position: relative;
2890
3008
  z-index: 2;
2891
3009
  }
2892
3010
 
2893
3011
  .upload-button:hover {
2894
- background: linear-gradient(90deg, #e55a1c, #ff8520);
3012
+ background: linear-gradient(90deg, #084bb8, #0b56d0);
2895
3013
  transform: translateY(-2px);
2896
- box-shadow: 0 8px 25px rgba(255, 104, 34, 0.4);
3014
+ box-shadow: 0 8px 25px rgba(12, 94, 227, 0.4);
2897
3015
  }
2898
3016
 
2899
3017
  .upload-button:disabled {
@@ -2926,22 +3044,28 @@ export default {
2926
3044
  gap: 6px;
2927
3045
  }
2928
3046
 
2929
- .restrictions-title::before {
2930
- content: "";
2931
- width: 16px;
2932
- height: 16px;
2933
- /* tipsicon.svg 通过JS动态设置,见mounted方法 */
2934
- background-size: contain;
2935
- background-repeat: no-repeat;
2936
- background-position: center;
2937
- display: inline-block;
2938
- margin-right: 0px;
2939
- position: relative;
2940
- top: 1px;
2941
- }
3047
+ .restrictions-title::before {
3048
+ content: "i" !important;
3049
+ width: 16px !important;
3050
+ height: 16px !important;
3051
+ border-radius: 50% !important;
3052
+ background: #0c5ee3 !important;
3053
+ background-image: none !important;
3054
+ color: #fff !important;
3055
+ display: inline-flex !important;
3056
+ align-items: center !important;
3057
+ justify-content: center !important;
3058
+ font-family: Arial, sans-serif !important;
3059
+ font-size: 11px !important;
3060
+ font-weight: 700 !important;
3061
+ line-height: 16px !important;
3062
+ margin-right: 0 !important;
3063
+ position: relative !important;
3064
+ top: 1px !important;
3065
+ }
2942
3066
 
2943
3067
  .restrictions-title.validating {
2944
- color: #ff8c00;
3068
+ color: #0c5ee3;
2945
3069
  animation: validatingPulse 1.5s ease-in-out infinite;
2946
3070
  }
2947
3071
 
@@ -2986,7 +3110,7 @@ export default {
2986
3110
  }
2987
3111
 
2988
3112
  .format-tag {
2989
- color: #ff8c00;
3113
+ color: #0c5ee3;
2990
3114
  font-size: 12px;
2991
3115
  font-weight: 500;
2992
3116
  text-transform: uppercase;
@@ -2994,7 +3118,7 @@ export default {
2994
3118
  }
2995
3119
 
2996
3120
  .size-highlight {
2997
- color: #ff6b03;
3121
+ color: #0c5ee3;
2998
3122
  font-weight: 600;
2999
3123
  }
3000
3124
 
@@ -3015,7 +3139,7 @@ export default {
3015
3139
  height: 100%;
3016
3140
  }
3017
3141
 
3018
- /* 右上角渐变橙点 */
3142
+ /* 右上角渐变蓝点 */
3019
3143
  .files-panel::after {
3020
3144
  content: '';
3021
3145
  position: absolute;
@@ -3024,10 +3148,10 @@ export default {
3024
3148
  width: 200px;
3025
3149
  height: 200px;
3026
3150
  background: linear-gradient(135deg,
3027
- rgba(255, 107, 3, 0.8) 0%,
3028
- rgba(255, 131, 51, 0.7) 30%,
3029
- rgba(255, 155, 99, 0.6) 60%,
3030
- rgba(255, 179, 147, 0.5) 100%);
3151
+ rgba(12, 94, 227, 0.8) 0%,
3152
+ rgba(37, 99, 235, 0.7) 30%,
3153
+ rgba(96, 165, 250, 0.6) 60%,
3154
+ rgba(147, 197, 253, 0.5) 100%);
3031
3155
  border-radius: 50%;
3032
3156
  filter: blur(40px);
3033
3157
  pointer-events: none;
@@ -3082,7 +3206,7 @@ export default {
3082
3206
  font-size: 16px;
3083
3207
  font-weight: 600;
3084
3208
  color: #1e293b;
3085
- text-shadow: 0 0 20px rgba(255, 140, 0, 0.1);
3209
+ text-shadow: 0 0 20px rgba(12, 94, 227, 0.1);
3086
3210
  margin-bottom: 12px;
3087
3211
  }
3088
3212
 
@@ -3105,7 +3229,7 @@ export default {
3105
3229
  }
3106
3230
 
3107
3231
  .file-card:hover {
3108
- border-color: #ff6b03;
3232
+ border-color: #0c5ee3;
3109
3233
  }
3110
3234
 
3111
3235
  .file-row {
@@ -3152,7 +3276,7 @@ export default {
3152
3276
  }
3153
3277
 
3154
3278
  .file-title:hover {
3155
- color: #ff6b03;
3279
+ color: #0c5ee3;
3156
3280
  }
3157
3281
 
3158
3282
  .file-meta {
@@ -3247,7 +3371,7 @@ export default {
3247
3371
 
3248
3372
  .progress-bar {
3249
3373
  height: 100%;
3250
- background: linear-gradient(90deg, #FF8C00, #ffb84d);
3374
+ background: linear-gradient(90deg, #0c5ee3, #60a5fa);
3251
3375
  border-radius: 3px;
3252
3376
  transition: width 0.6s ease;
3253
3377
  }
@@ -3389,7 +3513,7 @@ export default {
3389
3513
  }
3390
3514
 
3391
3515
  .file-local-path .path-value:hover {
3392
- color: #ff6b03;
3516
+ color: #0c5ee3;
3393
3517
  }
3394
3518
 
3395
3519
  /* Electron环境指示器样式 */
@@ -3423,7 +3547,7 @@ export default {
3423
3547
  }
3424
3548
 
3425
3549
  .start-upload-button {
3426
- background: linear-gradient(90deg, #ff6822, #ff922b);
3550
+ background: linear-gradient(90deg, #0c5ee3, #3b82f6);
3427
3551
  color: white;
3428
3552
  border: none;
3429
3553
  padding: 12px 24px;
@@ -3431,15 +3555,15 @@ export default {
3431
3555
  font-size: 14px;
3432
3556
  cursor: pointer;
3433
3557
  transition: all 0.3s ease;
3434
- box-shadow: 0 6px 20px rgba(255, 104, 34, 0.3);
3558
+ box-shadow: 0 6px 20px rgba(12, 94, 227, 0.3);
3435
3559
  position: relative;
3436
3560
  overflow: hidden;
3437
3561
  }
3438
3562
 
3439
3563
  .start-upload-button:hover {
3440
- background: linear-gradient(90deg, #e55a1c, #ff8520);
3564
+ background: linear-gradient(90deg, #084bb8, #0b56d0);
3441
3565
  transform: translateY(-2px);
3442
- box-shadow: 0 8px 25px rgba(255, 104, 34, 0.4);
3566
+ box-shadow: 0 8px 25px rgba(12, 94, 227, 0.4);
3443
3567
  }
3444
3568
 
3445
3569
  .start-upload-button:disabled {