chore: complete infrastructure config, contracts, reference images and ui redesign artifacts
This commit is contained in:
@@ -103,6 +103,38 @@ assert.match(premaritalTemplate, /service-topics/, '婚前辅导页缺少四项
|
||||
assert.match(premaritalTemplate, /预约辅导/, '婚前辅导页缺少预约按钮')
|
||||
assert.match(premaritalTemplate, /服务状态/, '婚前辅导页缺少服务状态')
|
||||
|
||||
const contentTemplate = read('miniapp/pages/content/content.wxml')
|
||||
const contentLogic = read('miniapp/pages/content/content.js')
|
||||
assert.match(contentTemplate, /content-categories/, '婚恋课堂缺少分类导航')
|
||||
assert.match(contentTemplate, /content-list/, '婚恋课堂缺少内容列表')
|
||||
assert.match(contentTemplate, /viewCount/, '婚恋课堂缺少真实浏览量')
|
||||
assert.match(contentTemplate, /publishAtText/, '婚恋课堂缺少发布日期')
|
||||
assert.match(contentLogic, /\/content\/categories/, '婚恋课堂分类必须来自正式接口')
|
||||
assert.match(contentLogic, /\/content\/articles/, '婚恋课堂文章必须来自正式接口')
|
||||
assert.doesNotMatch(contentLogic, /id:\s*['"]1['"]/, '婚恋课堂不得保留演示文章')
|
||||
|
||||
const antiFraudTemplate = read('miniapp/pages/anti-fraud/anti-fraud.wxml')
|
||||
assert.match(antiFraudTemplate, /ui-service-hero/, '婚恋反诈必须使用独立主视觉')
|
||||
assert.match(antiFraudTemplate, /risk-grid/, '婚恋反诈缺少四类风险')
|
||||
assert.match(antiFraudTemplate, /举报可疑行为/, '婚恋反诈缺少举报入口')
|
||||
assert.match(antiFraudTemplate, /安全求助/, '婚恋反诈缺少求助入口')
|
||||
|
||||
const stationTemplate = read('miniapp/pages/service-station/service-station.wxml')
|
||||
const stationLogic = read('miniapp/pages/service-station/service-station.js')
|
||||
for (const label of ['地址', '联系电话', '开放时间', '服务项目', '地图定位', '预约到站服务']) {
|
||||
assert.ok(stationTemplate.includes(label), `服务站缺少 ${label}`)
|
||||
}
|
||||
assert.match(stationLogic, /wx\.makePhoneCall/, '服务站电话必须使用微信原生拨号')
|
||||
assert.match(stationLogic, /wx\.openLocation/, '服务站定位必须使用微信原生地图')
|
||||
assert.match(stationLogic, /api\.get\(['"]\/home['"]\)/, '服务站必须读取真实首页服务站数据')
|
||||
assert.doesNotMatch(stationLogic, /00000000/, '服务站不得保留演示电话')
|
||||
|
||||
for (const envFile of ['miniapp/env.js', 'miniapp/env.ts']) {
|
||||
const envSource = read(envFile)
|
||||
assert.match(envSource, /getAccountInfoSync/, `${envFile} 必须通过微信运行版本识别开发环境`)
|
||||
assert.match(envSource, /envVersion\s*===\s*['"]develop['"]/, `${envFile} 必须将 develop 环境指向本地 API`)
|
||||
}
|
||||
|
||||
const theme = read('miniapp/app.wxss')
|
||||
for (const token of [
|
||||
'--mini-night-start',
|
||||
|
||||
Reference in New Issue
Block a user