@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
  <!-- 左侧上传区域 -->
@@ -262,10 +263,22 @@ export default {
262
263
 
263
264
  props: {
264
265
  // 基础配置
265
- visible: {
266
- type: Boolean,
267
- default: false
268
- },
266
+ visible: {
267
+ type: Boolean,
268
+ default: false
269
+ },
270
+ showOverlay: {
271
+ type: Boolean,
272
+ default: false
273
+ },
274
+ autoClose: {
275
+ type: Boolean,
276
+ default: false
277
+ },
278
+ autoCloseDelay: {
279
+ type: Number,
280
+ default: 1000
281
+ },
269
282
  title: {
270
283
  type: String,
271
284
  default: '文件上传'
@@ -334,9 +347,10 @@ export default {
334
347
  uploadSuccess: false,
335
348
 
336
349
  // 弹框控制
337
- isMinimized: false,
338
- isMinimizing: false,
339
- isRestoring: false,
350
+ isMinimized: false,
351
+ isMinimizing: false,
352
+ isRestoring: false,
353
+ autoCloseTimer: null,
340
354
 
341
355
  // 拖拽相关
342
356
  dragStartX: 0,
@@ -367,13 +381,23 @@ export default {
367
381
  }
368
382
  },
369
383
 
370
- computed: {
371
- fileRestrictions() {
372
- return {
373
- allowedExtensions: this.accept ? this.accept.split(',').map(ext => {
374
- const trimmed = ext.trim()
375
- return trimmed.startsWith('.') ? trimmed : '.' + trimmed
376
- }) : null,
384
+ computed: {
385
+ fileRestrictions() {
386
+ const allowedExtensions = this.accept ? this.accept.split(',').map(ext => {
387
+ const trimmed = ext.trim()
388
+ return trimmed.startsWith('.') ? trimmed : '.' + trimmed
389
+ }) : null
390
+
391
+ if (allowedExtensions) {
392
+ ['.aqtf', '.hftf', '.gef', '.tb_dg_gef', '.nsxtf', '.sxt2', '.gbq7', '.jmbs'].forEach(ext => {
393
+ if (!allowedExtensions.some(item => item.toLowerCase() === ext)) {
394
+ allowedExtensions.push(ext)
395
+ }
396
+ })
397
+ }
398
+
399
+ return {
400
+ allowedExtensions,
377
401
  maxSizeBytes: this.maxSize && this.maxSize > 0 ? this.maxSize * 1024 : null,
378
402
  maxFileCount: this.maxCount && this.maxCount > 0 ? this.maxCount : null,
379
403
  multiple: this.multiple,
@@ -492,8 +516,23 @@ export default {
492
516
  this.cleanup()
493
517
  },
494
518
 
495
- methods: {
496
- async initializeComponent() {
519
+ methods: {
520
+ /**
521
+ * 判断文件后缀是否允许上传,投标成果类后缀兼容包含 gef 或 sxt 的扩展名。
522
+ */
523
+ isAllowedFileExtension(fileExt, allowedExtensions) {
524
+ const normalizedExt = (fileExt || '').toLowerCase()
525
+ if (!normalizedExt) return false
526
+
527
+ if (['.aqtf', '.hftf', '.gef', '.tb_dg_gef', '.nsxtf', '.sxt2', '.gbq7', '.jmbs'].includes(normalizedExt)
528
+ || normalizedExt.includes('gef') || normalizedExt.includes('sxt')) {
529
+ return true
530
+ }
531
+
532
+ return allowedExtensions.some(ext => ext.toLowerCase() === normalizedExt)
533
+ },
534
+
535
+ async initializeComponent() {
497
536
  this.isElectronEnv = this.detectElectronEnvironment()
498
537
 
499
538
  // 发送环境检测事件
@@ -567,12 +606,12 @@ export default {
567
606
  const baseUrl = this.config.baseUrl
568
607
  const dependencies = [
569
608
  `${baseUrl}/js/aliyun-oss-sdk-6.18.0.min.js`,
570
- `${baseUrl}/js/jr-transfer-sdk.js`,
609
+ `${baseUrl}/js/jr-transfer-sdk.js?v=20260814-jmbs`,
571
610
  `${baseUrl}/js/jszip.min.js`
572
611
  ]
573
612
 
574
613
  // 检查是否已加载
575
- if (window.JrTransferSDK && window.OSS && window.JSZip) {
614
+ if (window.JrTransferSDK && window.JrTransferSDK.SDK_VERSION === '20260814-jmbs' && window.OSS && window.JSZip) {
576
615
  return Promise.resolve()
577
616
  }
578
617
 
@@ -603,7 +642,11 @@ export default {
603
642
  }
604
643
  },
605
644
 
606
- cleanup() {
645
+ cleanup() {
646
+ if (this.autoCloseTimer) {
647
+ clearTimeout(this.autoCloseTimer)
648
+ this.autoCloseTimer = null
649
+ }
607
650
  // 清理资源
608
651
  if (this._dynamicStyle) {
609
652
  this._dynamicStyle.remove()
@@ -611,7 +654,11 @@ export default {
611
654
  }
612
655
  },
613
656
 
614
- resetState() {
657
+ resetState() {
658
+ if (this.autoCloseTimer) {
659
+ clearTimeout(this.autoCloseTimer)
660
+ this.autoCloseTimer = null
661
+ }
615
662
  this.filesToUpload = []
616
663
  this.uploadProgress = { total: 0, completed: 0, failed: 0 }
617
664
  this.isUploading = false
@@ -627,22 +674,10 @@ export default {
627
674
  this.tempLocalPaths = []
628
675
  },
629
676
 
630
- // 动态设置CSS背景图片
631
- setDynamicBackgroundImages() {
632
- if (!this.config.baseUrl) return
633
-
634
- // 设置提示图标背景
635
- const style = document.createElement('style')
636
- style.textContent = `
637
- .jr-upload-modal-wrapper .restrictions-title::before {
638
- background-image: url('${this.config.baseUrl}/images/tipsicon.svg') !important;
639
- }
640
- `
641
- document.head.appendChild(style)
642
-
643
- // 保存引用以便清理
644
- this._dynamicStyle = style
645
- },
677
+ // 动态设置CSS背景图片
678
+ setDynamicBackgroundImages() {
679
+ // 提示图标使用组件内 CSS 绘制,避免外部系统缓存图片导致颜色不一致
680
+ },
646
681
 
647
682
  // 加载压缩配置
648
683
  async loadCompressionConfig() {
@@ -905,7 +940,7 @@ export default {
905
940
  // 文件类型验证
906
941
  if (this.fileRestrictions.allowedExtensions) {
907
942
  const fileExt = '.' + file.name.toLowerCase().split('.').pop()
908
- if (!this.fileRestrictions.allowedExtensions.some(ext => ext.toLowerCase() === fileExt)) {
943
+ if (!this.isAllowedFileExtension(fileExt, this.fileRestrictions.allowedExtensions)) {
909
944
  this.showError(`不支持的文件类型 ${fileExt}`)
910
945
  continue
911
946
  }
@@ -1564,8 +1599,17 @@ export default {
1564
1599
  'pdf': 'application/pdf',
1565
1600
  'doc': 'application/msword',
1566
1601
  'docx': 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
1567
- 'xls': 'application/vnd.ms-excel',
1568
- 'xlsx': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
1602
+ 'xls': 'application/vnd.ms-excel',
1603
+ 'xlsx': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
1604
+ 'et': 'application/vnd.ms-excel',
1605
+ 'aqtf': 'application/octet-stream',
1606
+ 'hftf': 'application/octet-stream',
1607
+ 'gef': 'application/octet-stream',
1608
+ 'tb_dg_gef': 'application/octet-stream',
1609
+ 'nsxtf': 'application/octet-stream',
1610
+ 'sxt2': 'application/octet-stream',
1611
+ 'gbq7': 'application/octet-stream',
1612
+ 'jmbs': 'application/octet-stream',
1569
1613
  'ppt': 'application/vnd.ms-powerpoint',
1570
1614
  'pptx': 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
1571
1615
  'txt': 'text/plain',
@@ -1922,7 +1966,9 @@ export default {
1922
1966
  }
1923
1967
  }
1924
1968
 
1925
- console.log('✅ 上传完成:', uploadResult)
1969
+ this.scheduleAutoClose()
1970
+
1971
+ console.log('✅ 上传完成:', uploadResult)
1926
1972
 
1927
1973
  } catch (error) {
1928
1974
  console.error('上传过程出错:', error)
@@ -2296,7 +2342,24 @@ export default {
2296
2342
  }, 400)
2297
2343
  },
2298
2344
 
2299
- closeModal() {
2345
+ scheduleAutoClose() {
2346
+ if (!this.autoClose) {
2347
+ return
2348
+ }
2349
+ if (this.autoCloseTimer) {
2350
+ clearTimeout(this.autoCloseTimer)
2351
+ }
2352
+ const parsedDelay = Number(this.autoCloseDelay)
2353
+ const delay = Number.isFinite(parsedDelay) && parsedDelay >= 0 ? Math.floor(parsedDelay) : 1000
2354
+ this.autoCloseTimer = setTimeout(() => {
2355
+ this.autoCloseTimer = null
2356
+ if (this.visible) {
2357
+ this.closeModal()
2358
+ }
2359
+ }, delay)
2360
+ },
2361
+
2362
+ closeModal() {
2300
2363
  this.resetState()
2301
2364
  this.$emit('close')
2302
2365
  this.$emit('update:visible', false)
@@ -2307,10 +2370,13 @@ export default {
2307
2370
  }
2308
2371
  },
2309
2372
 
2310
- handleOverlayClick() {
2311
- if (!this.isMinimized) {
2312
- this.closeModal()
2313
- }
2373
+ handleOverlayClick() {
2374
+ if (!this.showOverlay) {
2375
+ return
2376
+ }
2377
+ if (!this.isMinimized) {
2378
+ this.closeModal()
2379
+ }
2314
2380
  },
2315
2381
 
2316
2382
  // 拖拽功能
@@ -2352,45 +2418,72 @@ export default {
2352
2418
  }
2353
2419
 
2354
2420
  /* 弹框遮罩层 - 半透明遮罩 */
2355
- .jr-upload-modal-overlay {
2356
- position: fixed;
2357
- top: 0;
2358
- left: 0;
2359
- width: 100%;
2360
- height: 100%;
2361
- background: rgba(0, 0, 0, 0.5);
2362
- backdrop-filter: blur(2px);
2363
- z-index: 9999;
2364
- display: flex;
2365
- justify-content: center;
2366
- align-items: center;
2367
- padding: 20px;
2368
- overflow: hidden;
2369
- }
2421
+ .jr-upload-modal-overlay {
2422
+ position: fixed;
2423
+ top: 0;
2424
+ left: 0;
2425
+ width: 100%;
2426
+ height: 100%;
2427
+ background: transparent;
2428
+ backdrop-filter: none;
2429
+ z-index: 9999;
2430
+ display: flex;
2431
+ justify-content: center;
2432
+ align-items: center;
2433
+ padding: 20px;
2434
+ overflow: hidden;
2435
+ pointer-events: none;
2436
+ }
2437
+
2438
+ .jr-upload-modal-overlay.with-overlay {
2439
+ background: rgba(0, 0, 0, 0.5);
2440
+ backdrop-filter: blur(2px);
2441
+ justify-content: center;
2442
+ align-items: center;
2443
+ padding: 20px;
2444
+ pointer-events: auto;
2445
+ }
2370
2446
 
2371
2447
  /* 弹框容器 - 模拟jr-simple-sdk的模态框 */
2372
2448
  /* 弹框容器 */
2373
- .modal-container {
2374
- width: 90%;
2375
- max-width: 1200px;
2376
- height: 80vh;
2377
- max-height: 800px;
2378
- background: rgba(255, 255, 255, 0.95);
2379
- backdrop-filter: blur(20px);
2380
- -webkit-backdrop-filter: blur(20px);
2381
- border-radius: 12px;
2382
- box-shadow:
2383
- 0 20px 60px rgba(0, 0, 0, 0.15),
2384
- 0 8px 32px rgba(0, 0, 0, 0.1),
2385
- 0 1px 3px rgba(0, 0, 0, 0.05);
2386
- border: 1px solid rgba(255, 255, 255, 0.5);
2387
- overflow: hidden;
2388
- position: relative;
2389
- display: flex;
2390
- flex-direction: column;
2391
- transform: scale(1);
2392
- transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
2393
- }
2449
+ .modal-container {
2450
+ width: 90%;
2451
+ max-width: 1200px;
2452
+ height: 80vh;
2453
+ max-height: 800px;
2454
+ background: rgba(255, 255, 255, 0.95);
2455
+ backdrop-filter: blur(20px);
2456
+ -webkit-backdrop-filter: blur(20px);
2457
+ border-radius: 12px;
2458
+ box-shadow:
2459
+ 0 20px 60px rgba(0, 0, 0, 0.15),
2460
+ 0 8px 32px rgba(0, 0, 0, 0.1),
2461
+ 0 1px 3px rgba(0, 0, 0, 0.05);
2462
+ border: 1px solid rgba(255, 255, 255, 0.5);
2463
+ overflow: hidden;
2464
+ position: relative;
2465
+ display: flex;
2466
+ flex-direction: column;
2467
+ transform: scale(1);
2468
+ transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
2469
+ pointer-events: auto;
2470
+ }
2471
+
2472
+ .jr-upload-modal-overlay.with-overlay .modal-container {
2473
+ width: 90%;
2474
+ max-width: 1200px;
2475
+ height: 80vh;
2476
+ max-height: 800px;
2477
+ background: rgba(255, 255, 255, 0.95);
2478
+ backdrop-filter: blur(20px);
2479
+ -webkit-backdrop-filter: blur(20px);
2480
+ border-radius: 12px;
2481
+ box-shadow:
2482
+ 0 20px 60px rgba(0, 0, 0, 0.15),
2483
+ 0 8px 32px rgba(0, 0, 0, 0.1),
2484
+ 0 1px 3px rgba(0, 0, 0, 0.05);
2485
+ border: 1px solid rgba(255, 255, 255, 0.5);
2486
+ }
2394
2487
 
2395
2488
  /* 模拟iframe的body区域 */
2396
2489
  .modal-content {
@@ -2399,32 +2492,42 @@ export default {
2399
2492
  position: relative;
2400
2493
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
2401
2494
  /* 背景图片通过内联样式动态设置 */
2402
- background-size: cover;
2403
- display: flex;
2404
- justify-content: center;
2405
- align-items: center;
2406
- padding: 20px;
2407
- border-radius: 0 0 12px 12px;
2408
- }
2495
+ background-size: cover;
2496
+ display: flex;
2497
+ justify-content: center;
2498
+ align-items: center;
2499
+ padding: 0;
2500
+ border-radius: 0;
2501
+ }
2502
+
2503
+ .jr-upload-modal-overlay.with-overlay .modal-content {
2504
+ padding: 20px;
2505
+ border-radius: 0 0 12px 12px;
2506
+ }
2409
2507
 
2410
2508
  /* 标题栏 */
2411
- .modal-header {
2412
- height: 50px;
2413
- background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
2414
- border-bottom: 1px solid rgba(226, 232, 240, 0.8);
2415
- display: flex;
2416
- align-items: center;
2417
- justify-content: space-between;
2418
- padding: 0 20px;
2419
- position: relative;
2420
- cursor: move;
2421
- user-select: none;
2422
- }
2423
-
2424
- .modal-title {
2425
- font-size: 16px;
2426
- font-weight: 500;
2427
- color: #1e293b;
2509
+ .modal-header {
2510
+ height: 50px !important;
2511
+ background: linear-gradient(135deg, #0c5ee3 0%, rgba(59, 130, 246, 0.9) 100%) !important;
2512
+ border-bottom: 1px solid rgba(12, 94, 227, 0.25) !important;
2513
+ display: flex;
2514
+ align-items: center;
2515
+ justify-content: space-between;
2516
+ padding: 0 20px;
2517
+ position: relative;
2518
+ cursor: move;
2519
+ user-select: none;
2520
+ border-radius: 0;
2521
+ }
2522
+
2523
+ .jr-upload-modal-overlay.with-overlay .modal-header {
2524
+ border-radius: 12px 12px 0 0;
2525
+ }
2526
+
2527
+ .modal-title {
2528
+ font-size: 16px;
2529
+ font-weight: 500;
2530
+ color: #fff !important;
2428
2531
  display: flex;
2429
2532
  align-items: center;
2430
2533
  gap: 8px;
@@ -2441,67 +2544,82 @@ export default {
2441
2544
  width: 16px;
2442
2545
  height: 16px;
2443
2546
  border-radius: 50%;
2444
- border: none;
2547
+ border: none !important;
2445
2548
  cursor: pointer;
2446
2549
  transition: all 0.2s ease;
2447
2550
  position: relative;
2448
- display: flex;
2449
- align-items: center;
2450
- justify-content: center;
2451
- }
2452
-
2453
- .control-btn:hover {
2454
- transform: scale(1.1);
2455
- }
2456
-
2457
- .minimize-btn {
2458
- background: #ffbd2e;
2459
- }
2460
-
2461
- .minimize-btn:hover {
2462
- background: #f5a623;
2463
- }
2551
+ display: flex;
2552
+ align-items: center;
2553
+ justify-content: center;
2554
+ appearance: none !important;
2555
+ -webkit-appearance: none !important;
2556
+ }
2557
+
2558
+ .control-btn:hover {
2559
+ transform: scale(1.1);
2560
+ background: rgba(255, 255, 255, 0.16) !important;
2561
+ }
2562
+
2563
+ .minimize-btn {
2564
+ background: none !important;
2565
+ }
2566
+
2567
+ .minimize-btn:hover {
2568
+ background: rgba(255, 255, 255, 0.16) !important;
2569
+ }
2464
2570
 
2465
2571
  .minimize-btn::after {
2466
2572
  content: '';
2467
- width: 6px;
2468
- height: 1px;
2469
- background: #fff;
2573
+ width: 10px;
2574
+ height: 2px;
2575
+ background: #fff !important;
2470
2576
  position: absolute;
2471
2577
  }
2472
2578
 
2473
- .close-btn {
2474
- background: #ff5f57;
2475
- }
2476
-
2477
- .close-btn:hover {
2478
- background: #e8443a;
2479
- }
2579
+ .close-btn {
2580
+ background: none !important;
2581
+ }
2582
+
2583
+ .close-btn:hover {
2584
+ background: rgba(255, 255, 255, 0.16) !important;
2585
+ }
2480
2586
 
2481
2587
  .close-btn::after {
2482
- content: '×';
2483
- font-size: 12px;
2484
- color: #fff;
2588
+ content: '\2715';
2589
+ font-size: 14px;
2590
+ color: #fff !important;
2485
2591
  line-height: 1;
2486
2592
  }
2487
2593
 
2488
- .main-container {
2489
- margin-left: 0!important;
2490
- width: 92%;
2491
- max-width: 1200px;
2492
- height: 85%!important;
2493
- max-height: 800px;
2494
- background: rgba(69, 70, 60, 0.5);
2495
- backdrop-filter: blur(20px);
2496
- -webkit-backdrop-filter: blur(20px);
2497
- box-shadow:
2498
- 0 8px 32px rgba(0, 0, 0, 0.1),
2499
- 0 1px 3px rgba(0, 0, 0, 0.05),
2500
- inset 0 1px 0 rgba(255, 255, 255, 0.6);
2501
- overflow: hidden;
2502
- position: relative;
2503
- border-radius: 12px;
2504
- }
2594
+ .main-container {
2595
+ margin-left: 0!important;
2596
+ width: 100%;
2597
+ max-width: none;
2598
+ height: 100%!important;
2599
+ max-height: none;
2600
+ background: transparent;
2601
+ backdrop-filter: none;
2602
+ -webkit-backdrop-filter: none;
2603
+ box-shadow: none;
2604
+ overflow: hidden;
2605
+ position: relative;
2606
+ border-radius: 0;
2607
+ }
2608
+
2609
+ .jr-upload-modal-overlay.with-overlay .main-container {
2610
+ width: 92%;
2611
+ max-width: 1200px;
2612
+ height: 85%!important;
2613
+ max-height: 800px;
2614
+ background: rgba(69, 70, 60, 0.5);
2615
+ backdrop-filter: blur(20px);
2616
+ -webkit-backdrop-filter: blur(20px);
2617
+ box-shadow:
2618
+ 0 8px 32px rgba(0, 0, 0, 0.1),
2619
+ 0 1px 3px rgba(0, 0, 0, 0.05),
2620
+ inset 0 1px 0 rgba(255, 255, 255, 0.6);
2621
+ border-radius: 12px;
2622
+ }
2505
2623
 
2506
2624
  .content-grid {
2507
2625
  display: grid;
@@ -2536,8 +2654,8 @@ export default {
2536
2654
  width: 200%;
2537
2655
  height: 200%;
2538
2656
  background:
2539
- radial-gradient(circle at 30% 70%, rgba(255, 140, 0, 0.06) 0%, transparent 40%),
2540
- radial-gradient(circle at 70% 30%, rgba(255, 184, 77, 0.04) 0%, transparent 35%);
2657
+ radial-gradient(circle at 30% 70%, rgba(12, 94, 227, 0.06) 0%, transparent 40%),
2658
+ radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.04) 0%, transparent 35%);
2541
2659
  animation: gentleGlow 20s ease-in-out infinite;
2542
2660
  pointer-events: none;
2543
2661
  z-index: 0;
@@ -2554,7 +2672,7 @@ export default {
2554
2672
  }
2555
2673
  }
2556
2674
 
2557
- /* 左下角渐变橙点 */
2675
+ /* 左下角渐变蓝点 */
2558
2676
  .upload-panel::after {
2559
2677
  content: '';
2560
2678
  position: absolute;
@@ -2563,10 +2681,10 @@ export default {
2563
2681
  width: 200px;
2564
2682
  height: 200px;
2565
2683
  background: linear-gradient(135deg,
2566
- rgba(255, 107, 3, 0.8) 0%,
2567
- rgba(255, 131, 51, 0.7) 30%,
2568
- rgba(255, 155, 99, 0.6) 60%,
2569
- rgba(255, 179, 147, 0.5) 100%);
2684
+ rgba(12, 94, 227, 0.8) 0%,
2685
+ rgba(37, 99, 235, 0.7) 30%,
2686
+ rgba(96, 165, 250, 0.6) 60%,
2687
+ rgba(147, 197, 253, 0.5) 100%);
2570
2688
  border-radius: 50%;
2571
2689
  filter: blur(40px);
2572
2690
  pointer-events: none;
@@ -2602,14 +2720,14 @@ export default {
2602
2720
  height: 100px;
2603
2721
  margin: 0 auto 24px;
2604
2722
  background: linear-gradient(135deg,
2605
- rgba(248, 205, 175, 0.8) 0%,
2606
- rgba(242, 202, 185, 0.5) 100%);
2723
+ rgba(147, 197, 253, 0.8) 0%,
2724
+ rgba(191, 219, 254, 0.5) 100%);
2607
2725
  border-radius: 50%;
2608
2726
  display: flex;
2609
2727
  align-items: center;
2610
2728
  justify-content: center;
2611
2729
  font-size: 48px;
2612
- color: #FF8C00;
2730
+ color: #0c5ee3;
2613
2731
  transition: all 0.3s ease;
2614
2732
  position: relative;
2615
2733
  overflow: visible;
@@ -2652,7 +2770,7 @@ export default {
2652
2770
  position: relative;
2653
2771
  width: 3px;
2654
2772
  height: 25px;
2655
- background: linear-gradient(180deg, #ff6822, #ff922b);
2773
+ background: linear-gradient(180deg, #0c5ee3, #3b82f6);
2656
2774
  border-radius: 2px;
2657
2775
  animation: arrowFlow 2.4s ease-in-out infinite;
2658
2776
  }
@@ -2667,7 +2785,7 @@ export default {
2667
2785
  height: 0;
2668
2786
  border-left: 6px solid transparent;
2669
2787
  border-right: 6px solid transparent;
2670
- border-top: 10px solid #ff922b;
2788
+ border-top: 10px solid #3b82f6;
2671
2789
  opacity: 0.7;
2672
2790
  }
2673
2791
 
@@ -2721,7 +2839,7 @@ export default {
2721
2839
  }
2722
2840
 
2723
2841
  .upload-panel.active .upload-visual {
2724
- background: linear-gradient(135deg, rgba(255, 140, 0, 0.2), rgba(255, 184, 77, 0.2));
2842
+ background: linear-gradient(135deg, rgba(12, 94, 227, 0.2), rgba(59, 130, 246, 0.2));
2725
2843
  transform: scale(1.05);
2726
2844
  }
2727
2845
 
@@ -2735,7 +2853,7 @@ export default {
2735
2853
  }
2736
2854
 
2737
2855
  .upload-panel:hover .upload-visual {
2738
- background: linear-gradient(135deg, rgba(255, 140, 0, 0.15), rgba(255, 184, 77, 0.15));
2856
+ background: linear-gradient(135deg, rgba(12, 94, 227, 0.15), rgba(59, 130, 246, 0.15));
2739
2857
  transform: scale(1.02);
2740
2858
  }
2741
2859
 
@@ -2762,7 +2880,7 @@ export default {
2762
2880
  }
2763
2881
 
2764
2882
  .upload-button {
2765
- background: linear-gradient(90deg, #ff6822, #ff922b);
2883
+ background: linear-gradient(90deg, #0c5ee3, #3b82f6);
2766
2884
  color: white;
2767
2885
  border: none;
2768
2886
  padding: 10px 24px;
@@ -2771,16 +2889,16 @@ export default {
2771
2889
  font-weight: 500;
2772
2890
  cursor: pointer;
2773
2891
  transition: all 0.3s ease;
2774
- box-shadow: 0 6px 20px rgba(255, 104, 34, 0.3);
2892
+ box-shadow: 0 6px 20px rgba(12, 94, 227, 0.3);
2775
2893
  margin-bottom: 24px;
2776
2894
  position: relative;
2777
2895
  z-index: 2;
2778
2896
  }
2779
2897
 
2780
2898
  .upload-button:hover {
2781
- background: linear-gradient(90deg, #e55a1c, #ff8520);
2899
+ background: linear-gradient(90deg, #084bb8, #0b56d0);
2782
2900
  transform: translateY(-2px);
2783
- box-shadow: 0 8px 25px rgba(255, 104, 34, 0.4);
2901
+ box-shadow: 0 8px 25px rgba(12, 94, 227, 0.4);
2784
2902
  }
2785
2903
 
2786
2904
  .upload-button:disabled {
@@ -2813,22 +2931,28 @@ export default {
2813
2931
  gap: 6px;
2814
2932
  }
2815
2933
 
2816
- .restrictions-title::before {
2817
- content: "";
2818
- width: 16px;
2819
- height: 16px;
2820
- /* tipsicon.svg 通过JS动态设置,见mounted方法 */
2821
- background-size: contain;
2822
- background-repeat: no-repeat;
2823
- background-position: center;
2824
- display: inline-block;
2825
- margin-right: 0px;
2826
- position: relative;
2827
- top: 1px;
2828
- }
2934
+ .restrictions-title::before {
2935
+ content: "i" !important;
2936
+ width: 16px !important;
2937
+ height: 16px !important;
2938
+ border-radius: 50% !important;
2939
+ background: #0c5ee3 !important;
2940
+ background-image: none !important;
2941
+ color: #fff !important;
2942
+ display: inline-flex !important;
2943
+ align-items: center !important;
2944
+ justify-content: center !important;
2945
+ font-family: Arial, sans-serif !important;
2946
+ font-size: 11px !important;
2947
+ font-weight: 700 !important;
2948
+ line-height: 16px !important;
2949
+ margin-right: 0 !important;
2950
+ position: relative !important;
2951
+ top: 1px !important;
2952
+ }
2829
2953
 
2830
2954
  .restrictions-title.validating {
2831
- color: #ff8c00;
2955
+ color: #0c5ee3;
2832
2956
  animation: validatingPulse 1.5s ease-in-out infinite;
2833
2957
  }
2834
2958
 
@@ -2873,7 +2997,7 @@ export default {
2873
2997
  }
2874
2998
 
2875
2999
  .format-tag {
2876
- color: #ff8c00;
3000
+ color: #0c5ee3;
2877
3001
  font-size: 12px;
2878
3002
  font-weight: 500;
2879
3003
  text-transform: uppercase;
@@ -2881,7 +3005,7 @@ export default {
2881
3005
  }
2882
3006
 
2883
3007
  .size-highlight {
2884
- color: #ff6b03;
3008
+ color: #0c5ee3;
2885
3009
  font-weight: 600;
2886
3010
  }
2887
3011
 
@@ -2902,7 +3026,7 @@ export default {
2902
3026
  height: 100%;
2903
3027
  }
2904
3028
 
2905
- /* 右上角渐变橙点 */
3029
+ /* 右上角渐变蓝点 */
2906
3030
  .files-panel::after {
2907
3031
  content: '';
2908
3032
  position: absolute;
@@ -2911,10 +3035,10 @@ export default {
2911
3035
  width: 200px;
2912
3036
  height: 200px;
2913
3037
  background: linear-gradient(135deg,
2914
- rgba(255, 107, 3, 0.8) 0%,
2915
- rgba(255, 131, 51, 0.7) 30%,
2916
- rgba(255, 155, 99, 0.6) 60%,
2917
- rgba(255, 179, 147, 0.5) 100%);
3038
+ rgba(12, 94, 227, 0.8) 0%,
3039
+ rgba(37, 99, 235, 0.7) 30%,
3040
+ rgba(96, 165, 250, 0.6) 60%,
3041
+ rgba(147, 197, 253, 0.5) 100%);
2918
3042
  border-radius: 50%;
2919
3043
  filter: blur(40px);
2920
3044
  pointer-events: none;
@@ -2969,7 +3093,7 @@ export default {
2969
3093
  font-size: 16px;
2970
3094
  font-weight: 600;
2971
3095
  color: #1e293b;
2972
- text-shadow: 0 0 20px rgba(255, 140, 0, 0.1);
3096
+ text-shadow: 0 0 20px rgba(12, 94, 227, 0.1);
2973
3097
  margin-bottom: 12px;
2974
3098
  }
2975
3099
 
@@ -2992,7 +3116,7 @@ export default {
2992
3116
  }
2993
3117
 
2994
3118
  .file-card:hover {
2995
- border-color: #ff6b03;
3119
+ border-color: #0c5ee3;
2996
3120
  }
2997
3121
 
2998
3122
  .file-row {
@@ -3039,7 +3163,7 @@ export default {
3039
3163
  }
3040
3164
 
3041
3165
  .file-title:hover {
3042
- color: #ff6b03;
3166
+ color: #0c5ee3;
3043
3167
  }
3044
3168
 
3045
3169
  .file-meta {
@@ -3134,7 +3258,7 @@ export default {
3134
3258
 
3135
3259
  .progress-bar {
3136
3260
  height: 100%;
3137
- background: linear-gradient(90deg, #FF8C00, #ffb84d);
3261
+ background: linear-gradient(90deg, #0c5ee3, #60a5fa);
3138
3262
  border-radius: 3px;
3139
3263
  transition: width 0.6s ease;
3140
3264
  }
@@ -3276,7 +3400,7 @@ export default {
3276
3400
  }
3277
3401
 
3278
3402
  .file-local-path .path-value:hover {
3279
- color: #ff6b03;
3403
+ color: #0c5ee3;
3280
3404
  }
3281
3405
 
3282
3406
  /* Electron环境指示器样式 */
@@ -3310,7 +3434,7 @@ export default {
3310
3434
  }
3311
3435
 
3312
3436
  .start-upload-button {
3313
- background: linear-gradient(90deg, #ff6822, #ff922b);
3437
+ background: linear-gradient(90deg, #0c5ee3, #3b82f6);
3314
3438
  color: white;
3315
3439
  border: none;
3316
3440
  padding: 12px 24px;
@@ -3318,15 +3442,15 @@ export default {
3318
3442
  font-size: 14px;
3319
3443
  cursor: pointer;
3320
3444
  transition: all 0.3s ease;
3321
- box-shadow: 0 6px 20px rgba(255, 104, 34, 0.3);
3445
+ box-shadow: 0 6px 20px rgba(12, 94, 227, 0.3);
3322
3446
  position: relative;
3323
3447
  overflow: hidden;
3324
3448
  }
3325
3449
 
3326
3450
  .start-upload-button:hover {
3327
- background: linear-gradient(90deg, #e55a1c, #ff8520);
3451
+ background: linear-gradient(90deg, #084bb8, #0b56d0);
3328
3452
  transform: translateY(-2px);
3329
- box-shadow: 0 8px 25px rgba(255, 104, 34, 0.4);
3453
+ box-shadow: 0 8px 25px rgba(12, 94, 227, 0.4);
3330
3454
  }
3331
3455
 
3332
3456
  .start-upload-button:disabled {