From 12793dabd64c2f833da724500ddc9a8e4ee2c4a4 Mon Sep 17 00:00:00 2001 From: wikiboss Date: Thu, 8 Oct 2026 18:50:42 +0800 Subject: [PATCH] =?UTF-8?q?fix(cases):=20=E7=A7=BB=E9=99=A4=E6=A1=88?= =?UTF-8?q?=E4=BE=8B=E7=8B=AC=E7=AB=8B=E9=A1=B5=E6=88=90=E6=9E=9C=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=8C=87=E6=A0=87=E5=A2=99=E6=9D=BF=E5=9D=97=EF=BC=8C?= =?UTF-8?q?=E5=8E=BB=E9=99=A4=E6=B3=9B=E5=8C=96=E5=A4=A7=E9=A2=9D=E6=95=B0?= =?UTF-8?q?=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../view/web/official_case_show/list.html | 40 ------------------- .../view/web/official_case_show/list_e.html | 39 ++---------------- tests/run_tests.py | 2 +- tests/test_natural_copywriting.py | 17 +++++++- 4 files changed, 21 insertions(+), 77 deletions(-) diff --git a/addons/official/view/web/official_case_show/list.html b/addons/official/view/web/official_case_show/list.html index f538ab6..e8c127c 100644 --- a/addons/official/view/web/official_case_show/list.html +++ b/addons/official/view/web/official_case_show/list.html @@ -281,46 +281,6 @@ - -
-
-
- -

累计交付数据 · 用上线运行指标说话

-

- 系统好不好用,数据最诚实。以下为纳海川自主研发系统在客户真实生产环境中的运营汇总数据。 -

-
-
- -
-
-
50亿+
-
系统累计支撑交易额
-
多商户与供应链结算总和
-
-
-
200+
-
标杆政企与行业组织
-
商贸/制造/新零售深度合作
-
-
-
50+
-
自主软件著作权资产
-
核心工业级软件工程沉淀
-
-
-
99.8%
-
项目按期高质量交付率
-
严苛敏捷 TDD 全流程审计
-
-
-
-
-
服务涵盖政企金融、先进制造、新零售及现代物流领域的领先组织 diff --git a/addons/official/view/web/official_case_show/list_e.html b/addons/official/view/web/official_case_show/list_e.html index 66b4074..ca22b5b 100644 --- a/addons/official/view/web/official_case_show/list_e.html +++ b/addons/official/view/web/official_case_show/list_e.html @@ -55,7 +55,7 @@

-
+
65%
时效提升
@@ -97,7 +97,7 @@

-
+
70%
结账耗时缩短
@@ -139,7 +139,7 @@

-
+
42%
周转率提升
@@ -181,7 +181,7 @@

-
+
<1.5s
规章响应
@@ -199,37 +199,6 @@
- -
-
- 数据实证 -

- 数字见证力量 · 严谨量化成效 -

-

- 以客观业务数据指标为交付尺度,创造确定性价值。 -

-
-
-
-
50亿+
-
支撑交易总额
-
-
-
200+
-
标杆合作组织
-
-
-
50+
-
自主软件著作权
-
-
-
99.8%
-
按期交付率
-
-
-
-

diff --git a/tests/run_tests.py b/tests/run_tests.py index 675f2cc..bae9fe4 100644 --- a/tests/run_tests.py +++ b/tests/run_tests.py @@ -69,7 +69,7 @@ def test_cases_page(): res.assert_true('纳海川' in mobile_html, "移动端模板必须包含品牌名【纳海川】") res.assert_true('nhc-case-filter' in mobile_html, "移动端模板必须包含多维案例筛选器") res.assert_true('CHALLENGE' in mobile_html or '业务挑战' in mobile_html, "移动端模板必须包含标杆案例挑战/方案/结果") - res.assert_true('nhc-case-metrics' in mobile_html, "移动端模板必须包含数据指标墙") + res.assert_true('nhc-case-metrics' in mobile_html, "移动端模板必须包含标杆案例量化指标") return res.summary() diff --git a/tests/test_natural_copywriting.py b/tests/test_natural_copywriting.py index 5c5b218..4b8e1f8 100644 --- a/tests/test_natural_copywriting.py +++ b/tests/test_natural_copywriting.py @@ -74,7 +74,6 @@ class TestNaturalCopywriting(unittest.TestCase): self.assertIn('带着您的系统需求或技术难题,直接与架构师沟通', self.services_html, "服务页CTA必须杜绝翻译腔") # 案例页务实表达 - self.assertIn('累计交付数据 · 用上线运行指标说话', self.cases_html, "案例页指标墙标题必须务实") self.assertIn('面临类似的业务系统瓶颈?我们可以提供针对性方案', self.cases_html, "案例页CTA必须直面业务痛点") # 关于我们与联系我们 @@ -85,5 +84,21 @@ class TestNaturalCopywriting(unittest.TestCase): """首屏Hero必须彻底移除用户指明的'50+ 国家软件著作权资产'""" self.assertNotIn('国家软件著作权资产', self.index_html, "首屏Hero严禁包含用户要求去掉的'国家软件著作权资产'") + def test_user_removal_of_cases_data_wall(self): + """案例独立页(PC与移动端)必须彻底移除'50亿+ 交易额'等悬浮泛化数字指标墙""" + # PC端 + self.assertNotIn('nhc-case-metrics-section', self.cases_html, "PC案例页必须彻底移除成果数据指标墙大板块") + self.assertNotIn('系统累计支撑交易额', self.cases_html, "PC案例页严禁展示浮夸的'系统累计支撑交易额'") + self.assertNotIn('标杆政企与行业组织', self.cases_html, "PC案例页严禁展示浮夸的'标杆政企与行业组织'") + self.assertNotIn('项目按期高质量交付率', self.cases_html, "PC案例页严禁展示浮夸的'项目按期高质量交付率'") + + # 移动端 + mobile_path = os.path.join(ROOT_DIR, 'addons/official/view/web/official_case_show/list_e.html') + with open(mobile_path, 'r', encoding='utf-8') as f: + mobile_html = f.read() + self.assertNotIn('支撑交易总额', mobile_html, "移动端案例页严禁展示'支撑交易总额'") + self.assertNotIn('标杆合作组织', mobile_html, "移动端案例页严禁展示'标杆合作组织'") + self.assertNotIn('按期交付率', mobile_html, "移动端案例页严禁展示'按期交付率'") + if __name__ == '__main__': unittest.main()