feat(api): 添加帮助中心反馈系统和VIP服务功能
- 在ApiClient中新增submitFeedback、myFeedback、helpArticles、helpArticleDetail、 siteArticles、promotions、vipPackages、createVipOrder、vipOrders等方法 - 添加帮助文章和站点资讯的参数验证逻辑 - 更新测试文件添加新的API方法测试用例 - 在HTML页面中添加反馈、帮助和VIP服务相关页面的脚本引用 - 更新加入家谱页面为完整的申请流程界面 - 修改资讯详情页面为站点资讯展示页面 - 更新AxiosRequestUtil中认证处理逻辑 - 添加世系树渲染的HTML生成函数用于页面复用 - 更新文档中的API契约说明和页面规划
This commit is contained in:
@@ -37,14 +37,16 @@ test('官网静态信息页面均有独立入口', () => {
|
||||
});
|
||||
});
|
||||
|
||||
test('新闻页提供分类与现有详情跳转', () => {
|
||||
test('新闻页提供真实 PC 文章分类与详情入口', () => {
|
||||
if (!exists('news.html')) return;
|
||||
|
||||
const source = read('news.html');
|
||||
assert.match(source, /href="#platform"/);
|
||||
assert.match(source, /href="#culture"/);
|
||||
assert.match(source, /href="notice-detail\.html"/);
|
||||
assert.match(source, /href="article-detail\.html"/);
|
||||
assert.match(source, /href="news\.html"/);
|
||||
assert.match(source, /href="news\.html\?articleType=news"/);
|
||||
assert.match(source, /href="news\.html\?articleType=notice"/);
|
||||
assert.match(source, /href="news\.html\?articleType=download"/);
|
||||
assert.match(source, /data-site-news-list/);
|
||||
assert.match(source, /src="public\/js\/site-news-pages\.js"/);
|
||||
});
|
||||
|
||||
test('法律页面明确等待法务确认', () => {
|
||||
@@ -54,14 +56,14 @@ test('法律页面明确等待法务确认', () => {
|
||||
});
|
||||
});
|
||||
|
||||
test('工单功能入口显示待开发状态并保留帮助中心跳转', () => {
|
||||
test('工单功能入口开放真实反馈记录并保留帮助中心跳转', () => {
|
||||
['submit-ticket.html', 'my-tickets.html', 'ticket-detail.html'].forEach((page) => {
|
||||
if (!exists(page)) return;
|
||||
const source = read(page);
|
||||
|
||||
assert.match(source, /data-feature-status="pending"/);
|
||||
assert.match(source, /src="public\/js\/pending-pages\.js"/);
|
||||
assert.match(source, /href="help\.html"\s+data-feature-link="available"/);
|
||||
assert.doesNotMatch(source, /data-feature-status="pending"|pending-pages\.js/);
|
||||
assert.match(source, /src="public\/js\/feedback-pages\.js"/);
|
||||
assert.match(source, /href="help\.html"/);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user