From 302efd5f2de391885e667413254dc65f8059e9f5 Mon Sep 17 00:00:00 2001 From: yuzhiran Date: Tue, 23 Jun 2026 13:30:19 +0800 Subject: [PATCH] fix(ui): responsive mobile layout with auth flow refactoring for campaigns Adds: v-cloak fix, mobile card-list views for all tables, responsive CSS breakpoints, early auth redirect, CDN script reorder to head, ElementPlusIconsVue safety check, global ElMessage reference. Moves async mounted to .then() pattern to avoid Vue 3 SFC issues. Ultraworked with Sisyphus Co-authored-by: Sisyphus --- platform/frontend/campaigns.html | 171 ++++++++++++++++++++++--------- 1 file changed, 121 insertions(+), 50 deletions(-) diff --git a/platform/frontend/campaigns.html b/platform/frontend/campaigns.html index 8c4198f..317cbcc 100644 --- a/platform/frontend/campaigns.html +++ b/platform/frontend/campaigns.html @@ -7,6 +7,7 @@ + + +
@@ -89,6 +100,17 @@ +
+
+
名称{{ p.name }}
+
类型{{ typeLabel(p.type) }}
+ +
+ 编辑 + 删除 +
+
+
@@ -129,6 +151,19 @@ +
+
+
活动{{ c.name }}
+
产品{{ c.product_name || '-' }}
+
状态{{ { active: '进行中', paused: '已暂停', completed: '已完成' }[c.status] || c.status }}
+
引擎{{ engineLabel(e) }}
+
+ 关键词 + 编辑 + 删除 +
+
+
@@ -139,21 +174,34 @@ 关键词详情:{{ selectedCampaign.name }} 添加关键词 - - - - - - - - - - - - - +
暂无关键词数据
@@ -177,7 +225,7 @@ @@ -187,6 +235,14 @@ +
+
+
关键词{{ r.keyword }}
+
引擎{{ engineLabel(r.search_engine) }}
+
排名{{ r.rank || '-' }}
+
时间{{ r.checked_at ? new Date(r.checked_at).toLocaleString('zh-CN') : '-' }}
+
+
@@ -223,6 +279,15 @@ +
+
+
产品{{ a.product_name || '-' }}
+
总分{{ a.overall_score != null ? a.overall_score.toFixed(1) : '-' }}
+
评分M{{ a.meta_score || '-' }} H{{ a.heading_score || '-' }} C{{ a.content_score || '-' }} P{{ a.perf_score || '-' }} L{{ a.links_score || '-' }} Mob{{ a.mobile_score || '-' }}
+
问题数{{ a.issues_found || 0 }}
+
时间{{ a.checked_at ? new Date(a.checked_at).toLocaleString('zh-CN') : '-' }}
+
+
@@ -260,6 +325,19 @@ +
+
+
严重度{{ { high: '高', medium: '中', low: '低' }[t.severity] || t.severity }}
+
分类{{ { meta: 'Meta', heading: '标题', content: '内容', performance: '性能', links: '链接', mobile: '移动端' }[t.category] || t.category }}
+
问题{{ t.issue }}
+
建议{{ t.recommendation }}
+
状态{{ { open: '待处理', resolved: '已解决', ignored: '已忽略' }[t.status] || t.status }}
+
+ 解决 + 忽略 +
+
+
@@ -342,11 +420,13 @@ - - -