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

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
  <!-- 左侧上传区域 -->
@@ -256,16 +257,31 @@
256
257
  </div>
257
258
  </template>
258
259
 
259
- <script>
260
- export default {
260
+ <script>
261
+ // 组件统一允许的单文件最大值,maxSize 对外单位保持为 KB
262
+ const MAX_UPLOAD_SIZE_KB = 10 * 1024 * 1024
263
+
264
+ export default {
261
265
  name: 'JrUploadModal',
262
266
 
263
267
  props: {
264
268
  // 基础配置
265
- visible: {
266
- type: Boolean,
267
- default: false
268
- },
269
+ visible: {
270
+ type: Boolean,
271
+ default: false
272
+ },
273
+ showOverlay: {
274
+ type: Boolean,
275
+ default: false
276
+ },
277
+ autoClose: {
278
+ type: Boolean,
279
+ default: false
280
+ },
281
+ autoCloseDelay: {
282
+ type: Number,
283
+ default: 1000
284
+ },
269
285
  title: {
270
286
  type: String,
271
287
  default: '文件上传'
@@ -291,7 +307,7 @@ export default {
291
307
 
292
308
  // 文件限制
293
309
  accept: { type: String, default: '' },
294
- maxSize: { type: Number, default: 50 * 1024 }, // KB
310
+ maxSize: { type: Number, default: MAX_UPLOAD_SIZE_KB }, // KB,默认最大10GB
295
311
  maxCount: { type: Number, default: 10 },
296
312
  multiple: { type: Boolean, default: true },
297
313
 
@@ -334,9 +350,10 @@ export default {
334
350
  uploadSuccess: false,
335
351
 
336
352
  // 弹框控制
337
- isMinimized: false,
338
- isMinimizing: false,
339
- isRestoring: false,
353
+ isMinimized: false,
354
+ isMinimizing: false,
355
+ isRestoring: false,
356
+ autoCloseTimer: null,
340
357
 
341
358
  // 拖拽相关
342
359
  dragStartX: 0,
@@ -367,14 +384,25 @@ export default {
367
384
  }
368
385
  },
369
386
 
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,
377
- maxSizeBytes: this.maxSize && this.maxSize > 0 ? this.maxSize * 1024 : null,
387
+ computed: {
388
+ fileRestrictions() {
389
+ const allowedExtensions = this.accept ? this.accept.split(',').map(ext => {
390
+ const trimmed = ext.trim()
391
+ return trimmed.startsWith('.') ? trimmed : '.' + trimmed
392
+ }) : null
393
+
394
+ if (allowedExtensions) {
395
+ ['.aqtf', '.hftf', '.gef', '.tb_dg_gef', '.nsxtf', '.sxt2', '.gbq7', '.jmbs'].forEach(ext => {
396
+ if (!allowedExtensions.some(item => item.toLowerCase() === ext)) {
397
+ allowedExtensions.push(ext)
398
+ }
399
+ })
400
+ }
401
+
402
+ return {
403
+ allowedExtensions,
404
+ // 业务可以设置更小的限制,但不能突破组件统一的10GB单文件上限
405
+ maxSizeBytes: Math.min(this.maxSize && this.maxSize > 0 ? this.maxSize : MAX_UPLOAD_SIZE_KB, MAX_UPLOAD_SIZE_KB) * 1024,
378
406
  maxFileCount: this.maxCount && this.maxCount > 0 ? this.maxCount : null,
379
407
  multiple: this.multiple,
380
408
  showFileTypeInfo: this.showFileTypeInfo,
@@ -492,8 +520,23 @@ export default {
492
520
  this.cleanup()
493
521
  },
494
522
 
495
- methods: {
496
- async initializeComponent() {
523
+ methods: {
524
+ /**
525
+ * 判断文件后缀是否允许上传,投标成果类后缀兼容包含 gef 或 sxt 的扩展名。
526
+ */
527
+ isAllowedFileExtension(fileExt, allowedExtensions) {
528
+ const normalizedExt = (fileExt || '').toLowerCase()
529
+ if (!normalizedExt) return false
530
+
531
+ if (['.aqtf', '.hftf', '.gef', '.tb_dg_gef', '.nsxtf', '.sxt2', '.gbq7', '.jmbs'].includes(normalizedExt)
532
+ || normalizedExt.includes('gef') || normalizedExt.includes('sxt')) {
533
+ return true
534
+ }
535
+
536
+ return allowedExtensions.some(ext => ext.toLowerCase() === normalizedExt)
537
+ },
538
+
539
+ async initializeComponent() {
497
540
  this.isElectronEnv = this.detectElectronEnvironment()
498
541
 
499
542
  // 发送环境检测事件
@@ -567,12 +610,12 @@ export default {
567
610
  const baseUrl = this.config.baseUrl
568
611
  const dependencies = [
569
612
  `${baseUrl}/js/aliyun-oss-sdk-6.18.0.min.js`,
570
- `${baseUrl}/js/jr-transfer-sdk.js`,
613
+ `${baseUrl}/js/jr-transfer-sdk.js?v=20260814-10gb`,
571
614
  `${baseUrl}/js/jszip.min.js`
572
615
  ]
573
616
 
574
617
  // 检查是否已加载
575
- if (window.JrTransferSDK && window.OSS && window.JSZip) {
618
+ if (window.JrTransferSDK && window.JrTransferSDK.SDK_VERSION === '20260814-10gb' && window.OSS && window.JSZip) {
576
619
  return Promise.resolve()
577
620
  }
578
621
 
@@ -603,7 +646,11 @@ export default {
603
646
  }
604
647
  },
605
648
 
606
- cleanup() {
649
+ cleanup() {
650
+ if (this.autoCloseTimer) {
651
+ clearTimeout(this.autoCloseTimer)
652
+ this.autoCloseTimer = null
653
+ }
607
654
  // 清理资源
608
655
  if (this._dynamicStyle) {
609
656
  this._dynamicStyle.remove()
@@ -611,7 +658,11 @@ export default {
611
658
  }
612
659
  },
613
660
 
614
- resetState() {
661
+ resetState() {
662
+ if (this.autoCloseTimer) {
663
+ clearTimeout(this.autoCloseTimer)
664
+ this.autoCloseTimer = null
665
+ }
615
666
  this.filesToUpload = []
616
667
  this.uploadProgress = { total: 0, completed: 0, failed: 0 }
617
668
  this.isUploading = false
@@ -627,22 +678,10 @@ export default {
627
678
  this.tempLocalPaths = []
628
679
  },
629
680
 
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
- },
681
+ // 动态设置CSS背景图片
682
+ setDynamicBackgroundImages() {
683
+ // 提示图标使用组件内 CSS 绘制,避免外部系统缓存图片导致颜色不一致
684
+ },
646
685
 
647
686
  // 加载压缩配置
648
687
  async loadCompressionConfig() {
@@ -905,7 +944,7 @@ export default {
905
944
  // 文件类型验证
906
945
  if (this.fileRestrictions.allowedExtensions) {
907
946
  const fileExt = '.' + file.name.toLowerCase().split('.').pop()
908
- if (!this.fileRestrictions.allowedExtensions.some(ext => ext.toLowerCase() === fileExt)) {
947
+ if (!this.isAllowedFileExtension(fileExt, this.fileRestrictions.allowedExtensions)) {
909
948
  this.showError(`不支持的文件类型 ${fileExt}`)
910
949
  continue
911
950
  }
@@ -1564,8 +1603,17 @@ export default {
1564
1603
  'pdf': 'application/pdf',
1565
1604
  'doc': 'application/msword',
1566
1605
  'docx': 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
1567
- 'xls': 'application/vnd.ms-excel',
1568
- 'xlsx': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
1606
+ 'xls': 'application/vnd.ms-excel',
1607
+ 'xlsx': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
1608
+ 'et': 'application/vnd.ms-excel',
1609
+ 'aqtf': 'application/octet-stream',
1610
+ 'hftf': 'application/octet-stream',
1611
+ 'gef': 'application/octet-stream',
1612
+ 'tb_dg_gef': 'application/octet-stream',
1613
+ 'nsxtf': 'application/octet-stream',
1614
+ 'sxt2': 'application/octet-stream',
1615
+ 'gbq7': 'application/octet-stream',
1616
+ 'jmbs': 'application/octet-stream',
1569
1617
  'ppt': 'application/vnd.ms-powerpoint',
1570
1618
  'pptx': 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
1571
1619
  'txt': 'text/plain',
@@ -1922,7 +1970,9 @@ export default {
1922
1970
  }
1923
1971
  }
1924
1972
 
1925
- console.log('✅ 上传完成:', uploadResult)
1973
+ this.scheduleAutoClose()
1974
+
1975
+ console.log('✅ 上传完成:', uploadResult)
1926
1976
 
1927
1977
  } catch (error) {
1928
1978
  console.error('上传过程出错:', error)
@@ -2296,7 +2346,24 @@ export default {
2296
2346
  }, 400)
2297
2347
  },
2298
2348
 
2299
- closeModal() {
2349
+ scheduleAutoClose() {
2350
+ if (!this.autoClose) {
2351
+ return
2352
+ }
2353
+ if (this.autoCloseTimer) {
2354
+ clearTimeout(this.autoCloseTimer)
2355
+ }
2356
+ const parsedDelay = Number(this.autoCloseDelay)
2357
+ const delay = Number.isFinite(parsedDelay) && parsedDelay >= 0 ? Math.floor(parsedDelay) : 1000
2358
+ this.autoCloseTimer = setTimeout(() => {
2359
+ this.autoCloseTimer = null
2360
+ if (this.visible) {
2361
+ this.closeModal()
2362
+ }
2363
+ }, delay)
2364
+ },
2365
+
2366
+ closeModal() {
2300
2367
  this.resetState()
2301
2368
  this.$emit('close')
2302
2369
  this.$emit('update:visible', false)
@@ -2307,10 +2374,13 @@ export default {
2307
2374
  }
2308
2375
  },
2309
2376
 
2310
- handleOverlayClick() {
2311
- if (!this.isMinimized) {
2312
- this.closeModal()
2313
- }
2377
+ handleOverlayClick() {
2378
+ if (!this.showOverlay) {
2379
+ return
2380
+ }
2381
+ if (!this.isMinimized) {
2382
+ this.closeModal()
2383
+ }
2314
2384
  },
2315
2385
 
2316
2386
  // 拖拽功能
@@ -2352,45 +2422,72 @@ export default {
2352
2422
  }
2353
2423
 
2354
2424
  /* 弹框遮罩层 - 半透明遮罩 */
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
- }
2425
+ .jr-upload-modal-overlay {
2426
+ position: fixed;
2427
+ top: 0;
2428
+ left: 0;
2429
+ width: 100%;
2430
+ height: 100%;
2431
+ background: transparent;
2432
+ backdrop-filter: none;
2433
+ z-index: 9999;
2434
+ display: flex;
2435
+ justify-content: center;
2436
+ align-items: center;
2437
+ padding: 20px;
2438
+ overflow: hidden;
2439
+ pointer-events: none;
2440
+ }
2441
+
2442
+ .jr-upload-modal-overlay.with-overlay {
2443
+ background: rgba(0, 0, 0, 0.5);
2444
+ backdrop-filter: blur(2px);
2445
+ justify-content: center;
2446
+ align-items: center;
2447
+ padding: 20px;
2448
+ pointer-events: auto;
2449
+ }
2370
2450
 
2371
2451
  /* 弹框容器 - 模拟jr-simple-sdk的模态框 */
2372
2452
  /* 弹框容器 */
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
- }
2453
+ .modal-container {
2454
+ width: 90%;
2455
+ max-width: 1200px;
2456
+ height: 80vh;
2457
+ max-height: 800px;
2458
+ background: rgba(255, 255, 255, 0.95);
2459
+ backdrop-filter: blur(20px);
2460
+ -webkit-backdrop-filter: blur(20px);
2461
+ border-radius: 12px;
2462
+ box-shadow:
2463
+ 0 20px 60px rgba(0, 0, 0, 0.15),
2464
+ 0 8px 32px rgba(0, 0, 0, 0.1),
2465
+ 0 1px 3px rgba(0, 0, 0, 0.05);
2466
+ border: 1px solid rgba(255, 255, 255, 0.5);
2467
+ overflow: hidden;
2468
+ position: relative;
2469
+ display: flex;
2470
+ flex-direction: column;
2471
+ transform: scale(1);
2472
+ transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
2473
+ pointer-events: auto;
2474
+ }
2475
+
2476
+ .jr-upload-modal-overlay.with-overlay .modal-container {
2477
+ width: 90%;
2478
+ max-width: 1200px;
2479
+ height: 80vh;
2480
+ max-height: 800px;
2481
+ background: rgba(255, 255, 255, 0.95);
2482
+ backdrop-filter: blur(20px);
2483
+ -webkit-backdrop-filter: blur(20px);
2484
+ border-radius: 12px;
2485
+ box-shadow:
2486
+ 0 20px 60px rgba(0, 0, 0, 0.15),
2487
+ 0 8px 32px rgba(0, 0, 0, 0.1),
2488
+ 0 1px 3px rgba(0, 0, 0, 0.05);
2489
+ border: 1px solid rgba(255, 255, 255, 0.5);
2490
+ }
2394
2491
 
2395
2492
  /* 模拟iframe的body区域 */
2396
2493
  .modal-content {
@@ -2399,32 +2496,42 @@ export default {
2399
2496
  position: relative;
2400
2497
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
2401
2498
  /* 背景图片通过内联样式动态设置 */
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
- }
2499
+ background-size: cover;
2500
+ display: flex;
2501
+ justify-content: center;
2502
+ align-items: center;
2503
+ padding: 0;
2504
+ border-radius: 0;
2505
+ }
2506
+
2507
+ .jr-upload-modal-overlay.with-overlay .modal-content {
2508
+ padding: 20px;
2509
+ border-radius: 0 0 12px 12px;
2510
+ }
2409
2511
 
2410
2512
  /* 标题栏 */
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;
2513
+ .modal-header {
2514
+ height: 50px !important;
2515
+ background: linear-gradient(135deg, #0c5ee3 0%, rgba(59, 130, 246, 0.9) 100%) !important;
2516
+ border-bottom: 1px solid rgba(12, 94, 227, 0.25) !important;
2517
+ display: flex;
2518
+ align-items: center;
2519
+ justify-content: space-between;
2520
+ padding: 0 20px;
2521
+ position: relative;
2522
+ cursor: move;
2523
+ user-select: none;
2524
+ border-radius: 0;
2525
+ }
2526
+
2527
+ .jr-upload-modal-overlay.with-overlay .modal-header {
2528
+ border-radius: 12px 12px 0 0;
2529
+ }
2530
+
2531
+ .modal-title {
2532
+ font-size: 16px;
2533
+ font-weight: 500;
2534
+ color: #fff !important;
2428
2535
  display: flex;
2429
2536
  align-items: center;
2430
2537
  gap: 8px;
@@ -2441,67 +2548,82 @@ export default {
2441
2548
  width: 16px;
2442
2549
  height: 16px;
2443
2550
  border-radius: 50%;
2444
- border: none;
2551
+ border: none !important;
2445
2552
  cursor: pointer;
2446
2553
  transition: all 0.2s ease;
2447
2554
  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
- }
2555
+ display: flex;
2556
+ align-items: center;
2557
+ justify-content: center;
2558
+ appearance: none !important;
2559
+ -webkit-appearance: none !important;
2560
+ }
2561
+
2562
+ .control-btn:hover {
2563
+ transform: scale(1.1);
2564
+ background: rgba(255, 255, 255, 0.16) !important;
2565
+ }
2566
+
2567
+ .minimize-btn {
2568
+ background: none !important;
2569
+ }
2570
+
2571
+ .minimize-btn:hover {
2572
+ background: rgba(255, 255, 255, 0.16) !important;
2573
+ }
2464
2574
 
2465
2575
  .minimize-btn::after {
2466
2576
  content: '';
2467
- width: 6px;
2468
- height: 1px;
2469
- background: #fff;
2577
+ width: 10px;
2578
+ height: 2px;
2579
+ background: #fff !important;
2470
2580
  position: absolute;
2471
2581
  }
2472
2582
 
2473
- .close-btn {
2474
- background: #ff5f57;
2475
- }
2476
-
2477
- .close-btn:hover {
2478
- background: #e8443a;
2479
- }
2583
+ .close-btn {
2584
+ background: none !important;
2585
+ }
2586
+
2587
+ .close-btn:hover {
2588
+ background: rgba(255, 255, 255, 0.16) !important;
2589
+ }
2480
2590
 
2481
2591
  .close-btn::after {
2482
- content: '×';
2483
- font-size: 12px;
2484
- color: #fff;
2592
+ content: '\2715';
2593
+ font-size: 14px;
2594
+ color: #fff !important;
2485
2595
  line-height: 1;
2486
2596
  }
2487
2597
 
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
- }
2598
+ .main-container {
2599
+ margin-left: 0!important;
2600
+ width: 100%;
2601
+ max-width: none;
2602
+ height: 100%!important;
2603
+ max-height: none;
2604
+ background: transparent;
2605
+ backdrop-filter: none;
2606
+ -webkit-backdrop-filter: none;
2607
+ box-shadow: none;
2608
+ overflow: hidden;
2609
+ position: relative;
2610
+ border-radius: 0;
2611
+ }
2612
+
2613
+ .jr-upload-modal-overlay.with-overlay .main-container {
2614
+ width: 92%;
2615
+ max-width: 1200px;
2616
+ height: 85%!important;
2617
+ max-height: 800px;
2618
+ background: rgba(69, 70, 60, 0.5);
2619
+ backdrop-filter: blur(20px);
2620
+ -webkit-backdrop-filter: blur(20px);
2621
+ box-shadow:
2622
+ 0 8px 32px rgba(0, 0, 0, 0.1),
2623
+ 0 1px 3px rgba(0, 0, 0, 0.05),
2624
+ inset 0 1px 0 rgba(255, 255, 255, 0.6);
2625
+ border-radius: 12px;
2626
+ }
2505
2627
 
2506
2628
  .content-grid {
2507
2629
  display: grid;
@@ -2536,8 +2658,8 @@ export default {
2536
2658
  width: 200%;
2537
2659
  height: 200%;
2538
2660
  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%);
2661
+ radial-gradient(circle at 30% 70%, rgba(12, 94, 227, 0.06) 0%, transparent 40%),
2662
+ radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.04) 0%, transparent 35%);
2541
2663
  animation: gentleGlow 20s ease-in-out infinite;
2542
2664
  pointer-events: none;
2543
2665
  z-index: 0;
@@ -2554,7 +2676,7 @@ export default {
2554
2676
  }
2555
2677
  }
2556
2678
 
2557
- /* 左下角渐变橙点 */
2679
+ /* 左下角渐变蓝点 */
2558
2680
  .upload-panel::after {
2559
2681
  content: '';
2560
2682
  position: absolute;
@@ -2563,10 +2685,10 @@ export default {
2563
2685
  width: 200px;
2564
2686
  height: 200px;
2565
2687
  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%);
2688
+ rgba(12, 94, 227, 0.8) 0%,
2689
+ rgba(37, 99, 235, 0.7) 30%,
2690
+ rgba(96, 165, 250, 0.6) 60%,
2691
+ rgba(147, 197, 253, 0.5) 100%);
2570
2692
  border-radius: 50%;
2571
2693
  filter: blur(40px);
2572
2694
  pointer-events: none;
@@ -2602,14 +2724,14 @@ export default {
2602
2724
  height: 100px;
2603
2725
  margin: 0 auto 24px;
2604
2726
  background: linear-gradient(135deg,
2605
- rgba(248, 205, 175, 0.8) 0%,
2606
- rgba(242, 202, 185, 0.5) 100%);
2727
+ rgba(147, 197, 253, 0.8) 0%,
2728
+ rgba(191, 219, 254, 0.5) 100%);
2607
2729
  border-radius: 50%;
2608
2730
  display: flex;
2609
2731
  align-items: center;
2610
2732
  justify-content: center;
2611
2733
  font-size: 48px;
2612
- color: #FF8C00;
2734
+ color: #0c5ee3;
2613
2735
  transition: all 0.3s ease;
2614
2736
  position: relative;
2615
2737
  overflow: visible;
@@ -2652,7 +2774,7 @@ export default {
2652
2774
  position: relative;
2653
2775
  width: 3px;
2654
2776
  height: 25px;
2655
- background: linear-gradient(180deg, #ff6822, #ff922b);
2777
+ background: linear-gradient(180deg, #0c5ee3, #3b82f6);
2656
2778
  border-radius: 2px;
2657
2779
  animation: arrowFlow 2.4s ease-in-out infinite;
2658
2780
  }
@@ -2667,7 +2789,7 @@ export default {
2667
2789
  height: 0;
2668
2790
  border-left: 6px solid transparent;
2669
2791
  border-right: 6px solid transparent;
2670
- border-top: 10px solid #ff922b;
2792
+ border-top: 10px solid #3b82f6;
2671
2793
  opacity: 0.7;
2672
2794
  }
2673
2795
 
@@ -2721,7 +2843,7 @@ export default {
2721
2843
  }
2722
2844
 
2723
2845
  .upload-panel.active .upload-visual {
2724
- background: linear-gradient(135deg, rgba(255, 140, 0, 0.2), rgba(255, 184, 77, 0.2));
2846
+ background: linear-gradient(135deg, rgba(12, 94, 227, 0.2), rgba(59, 130, 246, 0.2));
2725
2847
  transform: scale(1.05);
2726
2848
  }
2727
2849
 
@@ -2735,7 +2857,7 @@ export default {
2735
2857
  }
2736
2858
 
2737
2859
  .upload-panel:hover .upload-visual {
2738
- background: linear-gradient(135deg, rgba(255, 140, 0, 0.15), rgba(255, 184, 77, 0.15));
2860
+ background: linear-gradient(135deg, rgba(12, 94, 227, 0.15), rgba(59, 130, 246, 0.15));
2739
2861
  transform: scale(1.02);
2740
2862
  }
2741
2863
 
@@ -2762,7 +2884,7 @@ export default {
2762
2884
  }
2763
2885
 
2764
2886
  .upload-button {
2765
- background: linear-gradient(90deg, #ff6822, #ff922b);
2887
+ background: linear-gradient(90deg, #0c5ee3, #3b82f6);
2766
2888
  color: white;
2767
2889
  border: none;
2768
2890
  padding: 10px 24px;
@@ -2771,16 +2893,16 @@ export default {
2771
2893
  font-weight: 500;
2772
2894
  cursor: pointer;
2773
2895
  transition: all 0.3s ease;
2774
- box-shadow: 0 6px 20px rgba(255, 104, 34, 0.3);
2896
+ box-shadow: 0 6px 20px rgba(12, 94, 227, 0.3);
2775
2897
  margin-bottom: 24px;
2776
2898
  position: relative;
2777
2899
  z-index: 2;
2778
2900
  }
2779
2901
 
2780
2902
  .upload-button:hover {
2781
- background: linear-gradient(90deg, #e55a1c, #ff8520);
2903
+ background: linear-gradient(90deg, #084bb8, #0b56d0);
2782
2904
  transform: translateY(-2px);
2783
- box-shadow: 0 8px 25px rgba(255, 104, 34, 0.4);
2905
+ box-shadow: 0 8px 25px rgba(12, 94, 227, 0.4);
2784
2906
  }
2785
2907
 
2786
2908
  .upload-button:disabled {
@@ -2813,22 +2935,28 @@ export default {
2813
2935
  gap: 6px;
2814
2936
  }
2815
2937
 
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
- }
2938
+ .restrictions-title::before {
2939
+ content: "i" !important;
2940
+ width: 16px !important;
2941
+ height: 16px !important;
2942
+ border-radius: 50% !important;
2943
+ background: #0c5ee3 !important;
2944
+ background-image: none !important;
2945
+ color: #fff !important;
2946
+ display: inline-flex !important;
2947
+ align-items: center !important;
2948
+ justify-content: center !important;
2949
+ font-family: Arial, sans-serif !important;
2950
+ font-size: 11px !important;
2951
+ font-weight: 700 !important;
2952
+ line-height: 16px !important;
2953
+ margin-right: 0 !important;
2954
+ position: relative !important;
2955
+ top: 1px !important;
2956
+ }
2829
2957
 
2830
2958
  .restrictions-title.validating {
2831
- color: #ff8c00;
2959
+ color: #0c5ee3;
2832
2960
  animation: validatingPulse 1.5s ease-in-out infinite;
2833
2961
  }
2834
2962
 
@@ -2873,7 +3001,7 @@ export default {
2873
3001
  }
2874
3002
 
2875
3003
  .format-tag {
2876
- color: #ff8c00;
3004
+ color: #0c5ee3;
2877
3005
  font-size: 12px;
2878
3006
  font-weight: 500;
2879
3007
  text-transform: uppercase;
@@ -2881,7 +3009,7 @@ export default {
2881
3009
  }
2882
3010
 
2883
3011
  .size-highlight {
2884
- color: #ff6b03;
3012
+ color: #0c5ee3;
2885
3013
  font-weight: 600;
2886
3014
  }
2887
3015
 
@@ -2902,7 +3030,7 @@ export default {
2902
3030
  height: 100%;
2903
3031
  }
2904
3032
 
2905
- /* 右上角渐变橙点 */
3033
+ /* 右上角渐变蓝点 */
2906
3034
  .files-panel::after {
2907
3035
  content: '';
2908
3036
  position: absolute;
@@ -2911,10 +3039,10 @@ export default {
2911
3039
  width: 200px;
2912
3040
  height: 200px;
2913
3041
  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%);
3042
+ rgba(12, 94, 227, 0.8) 0%,
3043
+ rgba(37, 99, 235, 0.7) 30%,
3044
+ rgba(96, 165, 250, 0.6) 60%,
3045
+ rgba(147, 197, 253, 0.5) 100%);
2918
3046
  border-radius: 50%;
2919
3047
  filter: blur(40px);
2920
3048
  pointer-events: none;
@@ -2969,7 +3097,7 @@ export default {
2969
3097
  font-size: 16px;
2970
3098
  font-weight: 600;
2971
3099
  color: #1e293b;
2972
- text-shadow: 0 0 20px rgba(255, 140, 0, 0.1);
3100
+ text-shadow: 0 0 20px rgba(12, 94, 227, 0.1);
2973
3101
  margin-bottom: 12px;
2974
3102
  }
2975
3103
 
@@ -2992,7 +3120,7 @@ export default {
2992
3120
  }
2993
3121
 
2994
3122
  .file-card:hover {
2995
- border-color: #ff6b03;
3123
+ border-color: #0c5ee3;
2996
3124
  }
2997
3125
 
2998
3126
  .file-row {
@@ -3039,7 +3167,7 @@ export default {
3039
3167
  }
3040
3168
 
3041
3169
  .file-title:hover {
3042
- color: #ff6b03;
3170
+ color: #0c5ee3;
3043
3171
  }
3044
3172
 
3045
3173
  .file-meta {
@@ -3134,7 +3262,7 @@ export default {
3134
3262
 
3135
3263
  .progress-bar {
3136
3264
  height: 100%;
3137
- background: linear-gradient(90deg, #FF8C00, #ffb84d);
3265
+ background: linear-gradient(90deg, #0c5ee3, #60a5fa);
3138
3266
  border-radius: 3px;
3139
3267
  transition: width 0.6s ease;
3140
3268
  }
@@ -3276,7 +3404,7 @@ export default {
3276
3404
  }
3277
3405
 
3278
3406
  .file-local-path .path-value:hover {
3279
- color: #ff6b03;
3407
+ color: #0c5ee3;
3280
3408
  }
3281
3409
 
3282
3410
  /* Electron环境指示器样式 */
@@ -3310,7 +3438,7 @@ export default {
3310
3438
  }
3311
3439
 
3312
3440
  .start-upload-button {
3313
- background: linear-gradient(90deg, #ff6822, #ff922b);
3441
+ background: linear-gradient(90deg, #0c5ee3, #3b82f6);
3314
3442
  color: white;
3315
3443
  border: none;
3316
3444
  padding: 12px 24px;
@@ -3318,15 +3446,15 @@ export default {
3318
3446
  font-size: 14px;
3319
3447
  cursor: pointer;
3320
3448
  transition: all 0.3s ease;
3321
- box-shadow: 0 6px 20px rgba(255, 104, 34, 0.3);
3449
+ box-shadow: 0 6px 20px rgba(12, 94, 227, 0.3);
3322
3450
  position: relative;
3323
3451
  overflow: hidden;
3324
3452
  }
3325
3453
 
3326
3454
  .start-upload-button:hover {
3327
- background: linear-gradient(90deg, #e55a1c, #ff8520);
3455
+ background: linear-gradient(90deg, #084bb8, #0b56d0);
3328
3456
  transform: translateY(-2px);
3329
- box-shadow: 0 8px 25px rgba(255, 104, 34, 0.4);
3457
+ box-shadow: 0 8px 25px rgba(12, 94, 227, 0.4);
3330
3458
  }
3331
3459
 
3332
3460
  .start-upload-button:disabled {