test.vue
40.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
<template>
<div class="bg-light text-dark font-sans min-h-screen">
<!-- 顶部导航栏 -->
<header class="bg-white border-b border-neutral-200 sticky top-0 z-50 transition-all duration-300 shadow-sm">
<div class="container mx-auto px-4 h-16 flex items-center justify-between">
<div class="flex items-center space-x-2">
<div
class="w-10 h-10 rounded-lg bg-primary flex items-center justify-center shadow-md shadow-primary/20">
<i class="fa fa-robot text-white text-xl"></i>
</div>
<h1 class="text-xl font-bold text-dark">AI工贸内容自动化平台</h1>
</div>
<!-- 主导航 -->
<nav class="hidden md:flex items-center space-x-8">
<a href="#" class="text-primary font-medium flex items-center relative group">
<i class="fa fa-file-text-o mr-1.5"></i> 内容创作
<span
class="absolute -bottom-6 left-0 w-full h-0.5 bg-primary transform scale-x-0 group-hover:scale-x-100 transition-transform origin-left duration-300"></span>
</a>
<a href="#"
class="text-neutral-500 hover:text-primary transition-custom flex items-center relative group">
<i class="fa fa-calendar-check-o mr-1.5"></i> 自动化任务
<span
class="absolute -bottom-6 left-0 w-full h-0.5 bg-primary transform scale-x-0 group-hover:scale-x-100 transition-transform origin-left duration-300"></span>
</a>
<a href="#"
class="text-neutral-500 hover:text-primary transition-custom flex items-center relative group">
<i class="fa fa-bar-chart mr-1.5"></i> 数据分析
<span
class="absolute -bottom-6 left-0 w-full h-0.5 bg-primary transform scale-x-0 group-hover:scale-x-100 transition-transform origin-left duration-300"></span>
</a>
<a href="#"
class="text-neutral-500 hover:text-primary transition-custom flex items-center relative group">
<i class="fa fa-cog mr-1.5"></i> 设置
<span
class="absolute -bottom-6 left-0 w-full h-0.5 bg-primary transform scale-x-0 group-hover:scale-x-100 transition-transform origin-left duration-300"></span>
</a>
</nav>
<!-- 用户区域 -->
<div class="flex items-center space-x-4">
<button
class="text-neutral-500 hover:text-primary transition-custom relative p-2 rounded-full hover:bg-neutral-100">
<i class="fa fa-bell-o text-xl"></i>
<span
class="absolute -top-1 -right-1 w-4 h-4 bg-secondary rounded-full text-white text-xs flex items-center justify-center animate-pulse">3</span>
</button>
<div class="flex items-center space-x-2 group relative">
<div
class="w-8 h-8 rounded-full bg-neutral-200 overflow-hidden border-2 border-transparent group-hover:border-primary transition-custom">
<img src="https://picsum.photos/200/200" alt="用户头像" class="w-full h-full object-cover">
</div>
<span class="hidden md:inline text-sm font-medium">张经理</span>
<i
class="fa fa-angle-down text-xs text-neutral-400 group-hover:text-primary transition-custom"></i>
<!-- 用户下拉菜单 -->
<div
class="absolute right-0 top-full mt-2 w-48 bg-white rounded-lg shadow-elevated border border-neutral-200 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-300 transform translate-y-2 group-hover:translate-y-0 z-50">
<div class="p-3 border-b border-neutral-100">
<p class="font-medium text-sm">张经理</p>
<p class="text-xs text-neutral-500">zhang@example.com</p>
</div>
<div class="py-1">
<a href="#"
class="block px-4 py-2 text-sm text-neutral-700 hover:bg-neutral-100 hover:text-primary transition-custom">
<i class="fa fa-user-o mr-2"></i>个人资料
</a>
<a href="#"
class="block px-4 py-2 text-sm text-neutral-700 hover:bg-neutral-100 hover:text-primary transition-custom">
<i class="fa fa-cog mr-2"></i>账户设置
</a>
<a href="#"
class="block px-4 py-2 text-sm text-neutral-700 hover:bg-neutral-100 hover:text-primary transition-custom">
<i class="fa fa-question-circle-o mr-2"></i>帮助中心
</a>
<a href="#"
class="block px-4 py-2 text-sm text-red-600 hover:bg-red-50 transition-custom">
<i class="fa fa-sign-out mr-2"></i>退出登录
</a>
</div>
</div>
</div>
</div>
</div>
</header>
<main class="container mx-auto px-4 py-6 max-w-7xl">
<!-- 页面标题与状态 -->
<div class="mb-8">
<div class="flex flex-col md:flex-row md:items-center md:justify-between">
<div>
<h2
class="text-[clamp(1.5rem,3vw,2rem)] font-bold mb-1 bg-clip-text text-transparent bg-gradient-to-r from-dark to-neutral-500">
智能文章创作中心</h2>
<p class="text-neutral-500">高效生成符合Google标准的工贸企业专业内容</p>
</div>
<div class="mt-4 md:mt-0 flex items-center space-x-3">
<div
class="flex items-center text-sm text-neutral-500 bg-white px-3 py-1.5 rounded-full border border-neutral-200">
<span class="w-2 h-2 bg-green-500 rounded-full mr-2"></span>
系统正常运行中
</div>
<button
class="text-primary hover:text-primary/80 text-sm font-medium flex items-center bg-primary/5 px-3 py-1.5 rounded-full transition-custom hover:bg-primary/10">
<i class="fa fa-question-circle mr-1"></i> 帮助
</button>
</div>
</div>
</div>
<!-- 主内容区 -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
<!-- 左侧功能区 -->
<div class="lg:col-span-1 space-y-6">
<!-- 内容创作卡片 -->
<div
class="bg-white rounded-xl shadow-card hover:shadow-card-hover transition-all duration-300 p-5 border border-neutral-200 card-gradient">
<h3 class="text-lg font-semibold mb-4 flex items-center">
<i class="fa fa-pencil-square-o text-primary mr-2"></i>内容创作设置
</h3>
<!-- 关键词输入 -->
<div class="mb-5">
<label class="block text-sm font-medium text-neutral-500 mb-1.5">核心关键词</label>
<div class="relative">
<input type="text" placeholder="输入产品名、行业术语等"
class="w-full px-3.5 py-2.5 border border-neutral-300 rounded-lg focus:ring-2 focus:ring-primary/30 focus:border-primary outline-none transition-custom"
v-model="form.keywords">
<button
class="absolute right-2 top-1/2 -translate-y-1/2 text-neutral-400 hover:text-primary transition-custom">
<i class="fa fa-times-circle"></i>
</button>
</div>
</div>
<!-- 模型选择 -->
<div class="mb-5">
<label class="block text-sm font-medium text-neutral-500 mb-1.5">AI模型选择</label>
<select
class="w-full px-3.5 py-2.5 border border-neutral-300 rounded-lg focus:ring-2 focus:ring-primary/30 focus:border-primary outline-none transition-custom appearance-none bg-white"
v-model="form.model">
<option v-for="model in models" :key="model" :value="model">{{ model }}</option>
</select>
</div>
<!-- 文章类型选择 -->
<div class="mb-5">
<label class="block text-sm font-medium text-neutral-500 mb-1.5">文章类型</label>
<select
class="w-full px-3.5 py-2.5 border border-neutral-300 rounded-lg focus:ring-2 focus:ring-primary/30 focus:border-primary outline-none transition-custom appearance-none bg-white"
v-model="form.articleType">
<option v-for="type in articleTypes" :key="type" :value="type">{{ type }}</option>
</select>
</div>
<!-- 话题参考来源 -->
<div class="mb-5">
<label class="block text-sm font-medium text-neutral-500 mb-1.5">话题参考来源</label>
<div class="flex flex-wrap gap-2">
<label v-for="source in sources" :key="source.name"
class="inline-flex flex items-center px-3 py-1.5 border border-neutral-300 rounded-lg cursor cursor-pointer hover:border-primary transition-custom bg-white transition-custom">
<input type="checkbox" class="mr-2 accent-primary" v-model="source.checked">
<span class="text-sm">{{ source.name }}</span>
</label>
</div>
</div>
<!-- 语言选择 -->
<div class="mb-5">
<label class="block text-sm font-medium text-neutral-500 mb-1.5">目标语言</label>
<select
class="w-full px-3.5 py-2.5 border border-neutral-300 rounded-lg focus:ring-2 focus:ring-primary/30 focus:border-primary outline-none transition-custom appearance-none bg-white"
v-model="form.language">
<option v-for="lang in languages" :key="lang" :value="lang">{{ lang }}</option>
</select>
</div>
<!-- 文章应用平台 -->
<div class="mb-5">
<label class="block text-sm font-medium text-neutral-500 mb-1.5">文章应用平台</label>
<div class="grid grid-cols-2 gap-2">
<label v-for="platform in platforms" :key="platform"
class="inline-flex items-center px-3 py-2 border border-neutral-300 rounded-lg cursor-pointer hover:border-primary transition-custom bg-white">
<input type="radio" name="platform" class="mr-2 accent-primary" :value="platform"
v-model="form.selectedPlatform">
<span class="text-sm">{{ platform }}</span>
</label>
</div>
</div>
<!-- 文章长度 -->
<div class="mb-5">
<div class="flex justify-between items-center mb-1.5">
<label class="block text-sm font-medium text-neutral-500">文章长度</label>
<span class="text-xs font-medium text-primary">{{ form.articleLength }}字</span>
</div>
<input type="range" min="300" max="2000" step="100"
class="w-full h-2 bg-neutral-200 rounded-lg appearance-none cursor-pointer accent-primary"
v-model.number="form.articleLength">
<div class="flex justify-between mt-1">
<span class="text-xs text-neutral-500">短</span>
<span class="text-xs text-neutral-500">中</span>
<span class="text-xs text-neutral-500">长</span>
</div>
</div>
<!-- 生成按钮 -->
<button
class="w-full bg-primary hover:bg-primary/90 text-white py-2.5 px-4 rounded-lg font-medium transition-custom flex items-center justify-center shadow-md shadow-primary/20 hover:shadow-lg hover:shadow-primary/30 transform hover:-translate-y-0.5 active:translate-y-0"
@click="generateArticle" :disabled="isGenerating">
<i :class="isGenerating ? 'fa fa-circle-o-notch fa-spin mr-2' : 'fa fa-magic mr-2'"></i>
{{ isGenerating ? '生成中...' : '生成文章' }}
</button>
</div>
<!-- 自动化任务卡片 -->
<div
class="bg-white rounded-xl shadow-card hover:shadow-card-hover transition-all duration-300 p-5 border border-neutral-200">
<div class="flex justify-between items-center mb-4">
<h3 class="text-lg font-semibold flex items-center">
<i class="fa fa-calendar-plus-o text-secondary mr-2"></i>自动化任务
</h3>
<button
class="text-xs bg-secondary/10 hover:bg-secondary/20 text-secondary px-2.5 py-1 rounded transition-custom transform hover:-translate-y-0.5 active:translate-y-0"
@click="addNewTask">
<i class="fa fa-plus mr-1"></i> 新建任务
</button>
</div>
<!-- 任务列表 -->
<div
class="space-y-3 max-h-64 overflow-y-auto pr-1 scrollbar-thin scrollbar-thumb-neutral-300 scrollbar-track-transparent">
<div v-for="task in tasks" :key="task.id"
class="border border-neutral-200 rounded-lg p-3 hover:border-primary/50 transition-custom hover-lift bg-white">
<div class="flex justify-between items-start">
<div>
<h4 class="font-medium text-sm">{{ task.name }}</h4>
<p class="text-xs text-neutral-500 mt-0.5">{{ task.schedule }}</p>
</div>
<span
:class="task.status === '运行中' ? 'px-2 py-0.5 text-xs bg-green-100 text-green-800 rounded-full' : 'px-2 py-0.5 text-xs bg-neutral-100 text-neutral-600 rounded-full'">
{{ task.status }}
</span>
</div>
<div class="flex justify-between items-center mt-2">
<span class="text-xs text-neutral-500">类型: {{ task.type }}</span>
<div class="flex space-x-1">
<button
class="text-neutral-400 hover:text-primary p-1.5 rounded-full hover:bg-primary/5 transition-custom">
<i class="fa fa-pencil text-xs"></i>
</button>
<button
class="text-neutral-400 hover:text-red-500 p-1.5 rounded-full hover:bg-red-50 transition-custom">
<i class="fa fa-trash-o text-xs"></i>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 右侧预览与编辑区 -->
<div class="lg:col-span-2 space-y-6">
<!-- 文章预览卡片 -->
<div
class="bg-white rounded-xl shadow-card hover:shadow-card-hover transition-all duration-300 p-5 border border-neutral-200">
<div class="flex flex-wrap justify-between items-center mb-5 gap-3">
<h3 class="text-lg font-semibold flex items-center">
<i class="fa fa-eye text-primary mr-2"></i>文章预览
</h3>
<div class="flex space-x-2">
<button
class="text-neutral-500 hover:text-primary p-2 rounded-full hover:bg-neutral-100 transition-custom transform hover:-translate-y-0.5 active:translate-y-0">
<i class="fa fa-expand"></i>
</button>
<button
class="text-neutral-500 hover:text-primary p-2 rounded-full hover:bg-neutral-100 transition-custom transform hover:-translate-y-0.5 active:translate-y-0">
<i class="fa fa-refresh"></i>
</button>
<button
class="text-neutral-500 hover:text-primary p-2 rounded-full hover:bg-neutral-100 transition-custom transform hover:-translate-y-0.5 active:translate-y-0">
<i class="fa fa-cog"></i>
</button>
</div>
</div>
<!-- 文章内容预览 -->
<div class="border border-neutral-200 rounded-lg bg-neutral-100/50 p-6 h-96 overflow-y-auto scrollbar-thin scrollbar-thumb-neutral-300 scrollbar-track-transparent"
:class="{ 'ring-2 ring-primary/30': showPreviewHighlight }">
<div class="flex flex-wrap gap-2 mb-4">
<span class="px-2.5 py-0.5 text-xs bg-primary/10 text-primary rounded-full">行业分析</span>
<span
class="px-2.5 py-0.5 text-xs bg-green-100 text-green-700 rounded-full">SEO优化</span>
<span class="px-2.5 py-0.5 text-xs bg-blue-100 text-blue-700 rounded-full">英语</span>
</div>
<h1 class="text-2xl font-bold mb-5">不锈钢厨具跨境出口市场分析</h1>
<p class="mb-4 text-neutral-700 leading-relaxed">
随着全球经济的复苏,不锈钢厨具的跨境出口市场呈现出稳步增长的趋势。消费者对于高品质、耐用性强的厨房用品需求持续上升,特别是在欧美市场。
</p>
<p class="mb-6 text-neutral-700 leading-relaxed">
根据最新的行业报告,北美和欧洲仍然是不锈钢厨具的主要消费市场,尤其是美国、德国和法国等发达国家。这些地区的消费者更注重产品质量和环保性能,愿意为高品质产品支付溢价。
</p>
<div
class="bg-primary/5 border-l-4 border-primary p-4 rounded-r-lg mb-6 transform hover:translate-x-1 transition-transform">
<p class="text-sm text-primary/80 italic">
跨境电商平台的数据显示,具有环保特性和多功能设计的不锈钢厨具更受消费者青睐,这类产品的复购率比普通产品高出25%,客户评价也普遍高出0.5-1个星级。
</p>
</div>
<h2 class="text-xl font-semibold mb-3 mt-6">2023年市场趋势分析</h2>
<ul class="space-y-3 mb-6 pl-1">
<li class="flex items-start group">
<span
class="w-5 h-5 rounded-full bg-primary text-white text-xs flex items-center justify-center mt-0.5 mr-2 flex-shrink-0 group-hover:scale-110 transition-transform"></span>
<p class="text-neutral-700 leading-relaxed">
可持续发展理念推动环保型不锈钢厨具需求增长,可回收材料制成的产品销量同比增长18%,尤其在欧洲市场表现突出。</p>
</li>
<li class="flex items-start group">
<span
class="w-5 h-5 rounded-full bg-primary text-white text-xs flex items-center justify-center mt-0.5 mr-2 flex-shrink-0 group-hover:scale-110 transition-transform"></span>
<p class="text-neutral-700 leading-relaxed">
智能化成为新的产品发展方向,智能不锈钢厨具的出口量同比增长30%,特别是带有温度控制和自动清洁功能的产品在北美市场供不应求。</p>
</li>
<li class="flex items-start group">
<span
class="w-5 h-5 rounded-full bg-primary text-white text-xs flex items-center justify-center mt-0.5 mr-2 flex-shrink-0 group-hover:scale-110 transition-transform"></span>
<p class="text-neutral-700 leading-relaxed">
定制化需求上升,针对不同地区饮食习惯设计的专用厨具更受欢迎,例如亚洲市场偏好的小型炊具和欧洲市场偏好的大型烤箱用具。</p>
</li>
</ul>
<!-- 新增内容 - 市场数据图表 -->
<div class="mt-8 bg-white p-4 rounded-lg border border-neutral-200 shadow-sm">
<h3 class="text-base font-medium mb-3">主要出口市场占比</h3>
<div class="h-48">
<!-- 这里是图表占位 -->
<div class="w-full h-full flex items-end justify-around gap-2">
<div class="flex flex-col items-center w-1/5">
<div class="bg-primary rounded-t-lg w-full" style="height: 85%"></div>
<span class="text-xs mt-1">北美 35%</span>
</div>
<div class="flex flex-col items-center w-1/5">
<div class="bg-secondary rounded-t-lg w-full" style="height: 70%"></div>
<span class="text-xs mt-1">欧洲 30%</span>
</div>
<div class="flex flex-col items-center w-1/5">
<div class="bg-green-500 rounded-t-lg w-full" style="height: 45%"></div>
<span class="text-xs mt-1">东南亚 18%</span>
</div>
<div class="flex flex-col items-center w-1/5">
<div class="bg-purple-500 rounded-t-lg w-full" style="height: 30%"></div>
<span class="text-xs mt-1">中东 12%</span>
</div>
<div class="flex flex-col items-center w-1/5">
<div class="bg-yellow-500 rounded-t-lg w-full" style="height: 20%"></div>
<span class="text-xs mt-1">其他 5%</span>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 编辑与发布工具栏 -->
<div
class="bg-white rounded-xl shadow-card hover:shadow-card-hover transition-all duration-300 p-5 border border-neutral-200">
<h3 class="text-lg font-semibold mb-4">内容操作</h3>
<div class="grid grid-cols-2 md:grid-cols-4 gap-3 mb-4">
<button
class="border border-neutral-200 rounded-lg p-3 text-center hover:border-primary hover:bg-primary/5 transition-custom transform hover:-translate-y-0.5 active:translate-y-0">
<i class="fa fa-paragraph text-primary block mb-1.5"></i>
<span class="text-sm">段落调整</span>
</button>
<button
class="border border-neutral-200 rounded-lg p-3 text-center hover:border-primary hover:bg-primary/5 transition-custom transform hover:-translate-y-0.5 active:translate-y-0">
<i class="fa fa-key text-primary block mb-1.5"></i>
<span class="text-sm">关键词优化</span>
</button>
<button
class="border border-neutral-200 rounded-lg p-3 text-center hover:border-primary hover:bg-primary/5 transition-custom transform hover:-translate-y-0.5 active:translate-y-0">
<i class="fa fa-language text-primary block mb-1.5"></i>
<span class="text-sm">多语言翻译</span>
</button>
<button
class="border border-neutral-200 rounded-lg p-3 text-center hover:border-primary hover:bg-primary/5 transition-custom transform hover:-translate-y-0.5 active:translate-y-0">
<i class="fa fa-file-pdf-o text-primary block mb-1.5"></i>
<span class="text-sm">导出文档</span>
</button>
</div>
<div class="flex flex-col sm:flex-row gap-3">
<button
class="flex-1 bg-white border border-secondary text-secondary hover:bg-secondary/5 font-medium py-2.5 px-4 rounded-lg transition-custom flex items-center justify-center transform hover:-translate-y-0.5 active:translate-y-0">
<i class="fa fa-calendar mr-2"></i> 添加到自动化任务
</button>
<button
class="flex-1 bg-secondary hover:bg-secondary/90 text-white font-medium py-2.5 px-4 rounded-lg transition-custom flex items-center justify-center shadow-md shadow-secondary/20 hover:shadow-lg hover:shadow-secondary/30 transform hover:-translate-y-0.5 active:translate-y-0">
<i class="fa fa-paper-plane mr-2"></i> 发布到平台
</button>
</div>
</div>
<!-- 内容质量分析 -->
<div
class="bg-white rounded-xl shadow-card hover:shadow-card-hover transition-all duration-300 p-5 border border-neutral-200">
<h3 class="text-lg font-semibold mb-4">内容质量分析</h3>
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
<!-- 原创度 -->
<div
class="border border-neutral-200 rounded-lg p-4 hover:border-green-500/50 transition-custom group">
<div class="flex justify-between items-start mb-2">
<h4 class="text-sm font-medium">原创度评分</h4>
<span
class="text-lg font-bold text-green-600 group-hover:scale-110 transition-transform">96%</span>
</div>
<div class="w-full bg-neutral-200 rounded-full h-2 overflow-hidden">
<div class="bg-green-600 h-2 rounded-full"
:style="{ width: '96%', transition: 'width 1s ease-out' }"></div>
</div>
<p class="text-xs text-neutral-500 mt-2">符合Google原创性标准</p>
</div>
<!-- SEO评分 -->
<div
class="border border-neutral-200 rounded-lg p-4 hover:border-primary/50 transition-custom group">
<div class="flex justify-between items-start mb-2">
<h4 class="text-sm font-medium">SEO优化评分</h4>
<span
class="text-lg font-bold text-primary group-hover:scale-110 transition-transform">92/100</span>
</div>
<div class="w-full bg-neutral-200 rounded-full h-2 overflow-hidden">
<div class="bg-primary h-2 rounded-full"
:style="{ width: '92%', transition: 'width 1s ease-out' }"></div>
</div>
<p class="text-xs text-neutral-500 mt-2">关键词密度: 2.3% (最佳范围)</p>
</div>
<!-- 可读性 -->
<div
class="border border-neutral-200 rounded-lg p-4 hover:border-secondary/50 transition-custom group">
<div class="flex justify-between items-start mb-2">
<h4 class="text-sm font-medium">可读性评分</h4>
<span
class="text-lg font-bold text-secondary group-hover:scale-110 transition-transform">87/100</span>
</div>
<div class="w-full bg-neutral-200 rounded-full h-2 overflow-hidden">
<div class="bg-secondary h-2 rounded-full"
:style="{ width: '87%', transition: 'width 1s ease-out' }"></div>
</div>
<p class="text-xs text-neutral-500 mt-2">适合目标市场阅读水平</p>
</div>
</div>
<!-- 新增:详细分析按钮 -->
<div class="mt-4 text-center">
<button
class="text-primary hover:text-primary/80 text-sm font-medium flex items-center mx-auto transition-custom">
<i class="fa fa-bar-chart mr-1.5"></i> 查看详细分析报告
<i class="fa fa-angle-right ml-1 text-xs"></i>
</button>
</div>
</div>
</div>
</div>
</main>
<!-- 页脚 -->
<footer class="bg-white border-t border-neutral-200 mt-10 py-6">
<div class="container mx-auto px-4 max-w-7xl">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="flex items-center mb-4 md:mb-0">
<div class="w-8 h-8 rounded-lg bg-primary flex items-center justify-center mr-2">
<i class="fa fa-robot text-white text-sm"></i>
</div>
<span class="text-sm text-neutral-500">© 2023 AI工贸内容自动化平台</span>
</div>
<div class="flex flex-wrap justify-center gap-x-6 gap-y-2">
<a href="#" class="text-sm text-neutral-500 hover:text-primary transition-custom">使用条款</a>
<a href="#" class="text-sm text-neutral-500 hover:text-primary transition-custom">隐私政策</a>
<a href="#" class="text-sm text-neutral-500 hover:text-primary transition-custom">联系支持</a>
<a href="#" class="text-sm text-neutral-500 hover:text-primary transition-custom">API文档</a>
</div>
</div>
</div>
</footer>
</div>
</template>
<script>
import { ref, onMounted, nextTick } from 'vue'
export default {
name: 'ContentAutomationPlatform',
setup() {
// 表单数据
const form = ref({
keywords: '不锈钢厨具 跨境出口',
model: 'GPT-4',
articleType: '行业趋势分析',
language: '英语',
selectedPlatform: '官网',
articleLength: 800
})
// 下拉选项数据
const models = ref(['GPT-4', 'GPT-3.5 Turbo', 'Claude 2', '文心一言', '通义千问'])
const articleTypes = ref(['产品介绍', '行业趋势分析', '跨境电商Listing', '售后指南'])
const languages = ref(['英语', '中文', '西班牙语', '法语'])
const platforms = ref(['官网', '微信公众号', 'LinkedIn', '小红书'])
const sources = ref([
{ name: 'Google', checked: true },
{ name: '百度', checked: true },
{ name: '新闻', checked: false },
{ name: '行业报告', checked: false }
])
// 任务数据
const tasks = ref([
{
id: 1,
name: '每周行业分析',
schedule: '每周一 9:00 生成',
status: '运行中',
type: '行业趋势分析'
},
{
id: 2,
name: '产品介绍更新',
schedule: '每月1日 10:00 生成',
status: '运行中',
type: '产品介绍'
},
{
id: 3,
name: '亚马逊Listing优化',
schedule: '每两周周五 14:00',
status: '已暂停',
type: '跨境电商Listing'
}
])
// 状态管理
const isGenerating = ref(false)
const showPreviewHighlight = ref(false)
// 方法
const generateArticle = () => {
isGenerating.value = true
// 模拟生成过程
setTimeout(() => {
isGenerating.value = false
// 生成完成后,给文章预览区域添加高亮动画
showPreviewHighlight.value = true
setTimeout(() => {
showPreviewHighlight.value = false
}, 2000)
}, 2000)
}
const addNewTask = () => {
alert('新建自动化任务面板将在这里打开')
}
// 页面滚动效果
const handleScroll = () => {
const header = document.querySelector('header')
if (window.scrollY > 10) {
header.classList.add('shadow-md')
header.classList.remove('shadow-sm')
} else {
header.classList.remove('shadow-md')
header.classList.add('shadow-sm')
}
}
// 按钮点击效果
const handleButtonClick = (event) => {
const button = event.target.closest('button')
if (button) {
button.classList.add('scale-98')
setTimeout(() => {
button.classList.remove('scale-98')
}, 150)
}
}
onMounted(() => {
window.addEventListener('scroll', handleScroll)
document.addEventListener('click', handleButtonClick)
// 为评分条添加动画效果
setTimeout(() => {
const progressBars = document.querySelectorAll('.rounded-full.h-2:not(.bg-neutral-200)')
progressBars.forEach(bar => {
const width = bar.style.width
bar.style.width = '0%'
setTimeout(() => {
bar.style.width = width
}, 300)
})
}, 500)
})
return {
form,
models,
articleTypes,
languages,
platforms,
sources,
tasks,
isGenerating,
showPreviewHighlight,
generateArticle,
addNewTask
}
}
}
</script>
<style>
@import url('https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
:root {
--primary: #165DFF;
--secondary: #FF7D00;
--dark: #1D2939;
--light: #F9FAFB;
--neutral-100: #F3F4F6;
--neutral-200: #E5E7EB;
--neutral-300: #D1D5DB;
--neutral-400: #9CA3AF;
--neutral-500: #6B7280;
--shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
--shadow-card-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
--shadow-elevated: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
body {
font-family: 'Inter', 'system-ui', 'sans-serif';
}
.content-auto {
content-visibility: auto;
}
.text-balance {
text-wrap: balance;
}
.transition-custom {
transition: all 0.25s ease;
}
.hover-lift:hover {
transform: translateY(-0.25rem);
transition: all 0.3s ease;
}
.card-gradient {
background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(22, 93, 255, 0.03) 100%);
}
/* 滚动条样式 */
.scrollbar-thin::-webkit-scrollbar {
width: 6px;
}
.scrollbar-thin::-webkit-scrollbar-track {
background: transparent;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
background: var(--neutral-300);
border-radius: 3px;
}
.scrollbar-thin::-webkit-scrollbar-thumb:hover {
background: var(--neutral-400);
}
</style>