-
预约专家在线联调演示
+
+
申请开通沙箱演示账号
+ 30分钟响应承诺
+
diff --git a/public/assets/addons/official/css/modern_nhc.css b/public/assets/addons/official/css/modern_nhc.css
index 9551a9f..ddc8941 100644
--- a/public/assets/addons/official/css/modern_nhc.css
+++ b/public/assets/addons/official/css/modern_nhc.css
@@ -1115,6 +1115,97 @@ img {
margin-top: 4px;
}
+/* 微缩系统功能界面视窗与联合终验背书 (High-Fidelity Interface Window) */
+.nhc-case-preview-window {
+ margin: 16px 0;
+ background: #F8FAFC;
+ border: 1px solid var(--border-color);
+ border-radius: var(--radius-sm);
+ overflow: hidden;
+ box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
+}
+
+.nhc-window-bar {
+ display: flex;
+ align-items: center;
+ gap: 6px;
+ padding: 6px 12px;
+ background: #F1F5F9;
+ border-bottom: 1px solid var(--border-color);
+}
+
+.nhc-window-dot {
+ width: 6px;
+ height: 6px;
+ border-radius: 50%;
+ display: inline-block;
+}
+
+.nhc-window-dot:nth-child(1) { background: #F87171; }
+.nhc-window-dot:nth-child(2) { background: #FBBF24; }
+.nhc-window-dot:nth-child(3) { background: #34D399; }
+
+.nhc-window-title {
+ font-size: 11px;
+ color: var(--text-muted);
+ margin-left: 6px;
+ font-weight: 500;
+ letter-spacing: 0.5px;
+}
+
+.nhc-window-screen {
+ padding: 10px 14px;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ flex-wrap: wrap;
+ gap: 8px;
+ background: #FFFFFF;
+}
+
+.nhc-window-module-tag {
+ display: inline-flex;
+ align-items: center;
+ padding: 2px 8px;
+ background: var(--primary-light);
+ color: var(--primary);
+ font-size: 11px;
+ font-weight: 600;
+ border-radius: 2px;
+}
+
+.nhc-window-stats-row {
+ display: flex;
+ gap: 12px;
+ font-size: 11px;
+ color: var(--text-secondary);
+}
+
+.nhc-window-stats-row strong {
+ color: var(--primary);
+}
+
+.nhc-case-proof-bar {
+ margin-top: 14px;
+ padding: 8px 12px;
+ background: #F0FDF4;
+ border: 1px solid #BBF7D0;
+ border-radius: 4px;
+ font-size: 11px;
+ color: #166534;
+ display: flex;
+ align-items: center;
+ gap: 6px;
+ line-height: 1.4;
+}
+
+.nhc-proof-icon {
+ flex-shrink: 0;
+ display: inline-flex;
+ align-items: center;
+ color: #15803D;
+}
+
/* 标准化交付流程 (Process Section) */
.nhc-process {
padding: 96px 0;
diff --git a/tests/run_tests.py b/tests/run_tests.py
index c23eda9..8e795b2 100644
--- a/tests/run_tests.py
+++ b/tests/run_tests.py
@@ -225,6 +225,15 @@ def test_no_ai_flavor_suite():
res.assert_true(test_result.wasSuccessful(), f"去AI味全量断言通过 (共 {test_result.testsRun} 项)")
return res.summary()
+def test_client_rigor_suite():
+ res = TestResult("客户严谨度与大厂背书专项测试 (ClientRigor)")
+ from tests.test_client_rigor_enhancements import TestClientRigorEnhancements
+ suite = unittest.TestLoader().loadTestsFromTestCase(TestClientRigorEnhancements)
+ runner = unittest.TextTestRunner(verbosity=0)
+ test_result = runner.run(suite)
+ res.assert_true(test_result.wasSuccessful(), f"客户视角严谨度断言全部通过 (共 {test_result.testsRun} 项)")
+ return res.summary()
+
def main():
import unittest
results = [
@@ -234,7 +243,8 @@ def main():
test_nav_megamenu(),
test_about_page(),
test_contact_page(),
- test_no_ai_flavor_suite()
+ test_no_ai_flavor_suite(),
+ test_client_rigor_suite()
]
sys.exit(0 if all(results) else 1)
diff --git a/tests/test_client_rigor_enhancements.py b/tests/test_client_rigor_enhancements.py
new file mode 100644
index 0000000..2609469
--- /dev/null
+++ b/tests/test_client_rigor_enhancements.py
@@ -0,0 +1,64 @@
+# -*- coding: utf-8 -*-
+"""
+客户视角严谨度与大厂背书优化专项测试 (Client Rigor & Enterprise Trust Enhancements)
+测试用例覆盖:
+1. 标杆案例:具备微缩系统界面视窗/交互特征与联合终验背书
+2. 资质合规:具备标准化权威认证编号(ISO9001/ISO27001/等保三级/国家软著登记号)
+3. 演示沙箱:具备极速时效响应承诺(30分钟建联与7天专属脱敏沙箱)
+"""
+import os
+import re
+import unittest
+
+ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+
+class TestClientRigorEnhancements(unittest.TestCase):
+
+ def setUp(self):
+ self.index_html_path = os.path.join(ROOT_DIR, 'addons/official/view/web/official_home/index.html')
+ self.cases_html_path = os.path.join(ROOT_DIR, 'addons/official/view/web/official_case_show/list.html')
+ self.about_html_path = os.path.join(ROOT_DIR, 'addons/official/view/web/official_home/single.html')
+ self.about_mobile_path = os.path.join(ROOT_DIR, 'addons/official/view/web/official_home/single_e.html')
+ self.product_html_path = os.path.join(ROOT_DIR, 'addons/official/view/web/official_product/product_page.html')
+
+ with open(self.index_html_path, 'r', encoding='utf-8') as f:
+ self.index_html = f.read()
+ with open(self.cases_html_path, 'r', encoding='utf-8') as f:
+ self.cases_html = f.read()
+ with open(self.about_html_path, 'r', encoding='utf-8') as f:
+ self.about_html = f.read()
+ with open(self.about_mobile_path, 'r', encoding='utf-8') as f:
+ self.about_mobile = f.read()
+ with open(self.product_html_path, 'r', encoding='utf-8') as f:
+ self.product_html = f.read()
+
+ def test_case_interface_preview_and_acceptance(self):
+ """标杆案例必须具备微缩系统界面特征与联合终验背书"""
+ # 案例页必须具备界面视窗或系统交互特征
+ self.assertTrue('nhc-case-preview-window' in self.cases_html or '系统功能界面' in self.cases_html or '界面预览' in self.cases_html,
+ "案例独立页必须包含系统功能界面视窗")
+ # 必须包含客户终验与上线运行凭证
+ self.assertTrue('联合终验' in self.cases_html or '平稳运行' in self.cases_html or '验收' in self.cases_html,
+ "案例独立页必须包含明确的验收与生产运行记录")
+
+ def test_authoritative_certifications_and_copyright_numbers(self):
+ """关于我们资质板块必须展示规整的权威认证编号与等保合规"""
+ # ISO 与 等保
+ self.assertIn('ISO9001', self.about_html, "PC 关于我们必须包含 ISO9001 质量认证")
+ self.assertIn('ISO27001', self.about_html, "PC 关于我们必须包含 ISO27001 安全认证")
+ self.assertIn('等保三级', self.about_html, "PC 关于我们必须包含等保三级安全测评背书")
+ # 软著证书登记号规范
+ self.assertTrue(re.search(r'202\dSR\d{6,}', self.about_html),
+ "PC 关于我们必须展示真实的计算机软件著作权登记号示例 (如 2023SRxxxxxx)")
+
+ # 移动端同步
+ self.assertIn('ISO', self.about_mobile, "移动端关于我们必须同步展示权威资质")
+ self.assertIn('等保三级', self.about_mobile, "移动端关于我们必须同步展示等保三级")
+
+ def test_demo_sandbox_rigorous_commitment(self):
+ """产品页演示沙箱必须具备极速建联与真实脱敏环境承诺"""
+ self.assertTrue('30分钟' in self.product_html or '专属演示账号' in self.product_html or '脱敏' in self.product_html,
+ "产品页沙箱必须承诺快速下发专属演示账号与脱敏数据环境")
+
+if __name__ == '__main__':
+ unittest.main()