feat: redesign public relationship services
This commit is contained in:
@@ -84,6 +84,25 @@ for (const label of ['我的红娘', '我的咨询', '我的活动', '我的预
|
||||
assert.ok(mineTemplate.includes(label), `我的页缺少入口 ${label}`)
|
||||
}
|
||||
|
||||
const matchmakerTemplate = read('miniapp/pages/matchmaker/matchmaker.wxml')
|
||||
const matchmakerLogic = read('miniapp/pages/matchmaker/matchmaker.js')
|
||||
const counselingTemplate = read('miniapp/pages/counseling-intro/counseling-intro.wxml')
|
||||
const premaritalTemplate = read('miniapp/pages/premarital-intro/premarital-intro.wxml')
|
||||
for (const template of [matchmakerTemplate, counselingTemplate, premaritalTemplate]) {
|
||||
assert.match(template, /ui-service-hero/, 'B 组服务页必须统一使用 service-hero')
|
||||
}
|
||||
for (const label of ['公益免费', '真实匹配', '隐私保护']) {
|
||||
assert.ok(matchmakerTemplate.includes(label), `红娘页缺少服务承诺 ${label}`)
|
||||
}
|
||||
assert.match(matchmakerTemplate, /activeService|申请状态/, '红娘页缺少申请状态')
|
||||
assert.doesNotMatch(matchmakerLogic, /matchStore\.(?:like|pass)\s*\(/, '红娘不得替用户 Like 或 Pass')
|
||||
assert.match(counselingTemplate, /service-topics/, '咨询页缺少四项咨询主题')
|
||||
assert.match(counselingTemplate, /预约咨询/, '咨询页缺少预约按钮')
|
||||
assert.match(counselingTemplate, /服务状态/, '咨询页缺少服务状态')
|
||||
assert.match(premaritalTemplate, /service-topics/, '婚前辅导页缺少四项辅导主题')
|
||||
assert.match(premaritalTemplate, /预约辅导/, '婚前辅导页缺少预约按钮')
|
||||
assert.match(premaritalTemplate, /服务状态/, '婚前辅导页缺少服务状态')
|
||||
|
||||
const theme = read('miniapp/app.wxss')
|
||||
for (const token of [
|
||||
'--mini-night-start',
|
||||
|
||||
Reference in New Issue
Block a user