feat: 优化消息互动中心与首页Banner呈现,同步全量业务数据与高清图标
这个提交包含在:
@@ -113,8 +113,8 @@ describe('轮播配图 · 取图与主题规则', () => {
|
||||
it('内置底色的 3 条渐变必须是春绿系(105deg 亮绿起点 → 深绿收尾,不含暖色)', () => {
|
||||
expect(BANNER_BG.length).toBe(3)
|
||||
// 起点落在品牌亮绿族(#00e070 / #00c860 / #049e52 / #04874a),收尾必须落到深绿(白字区)
|
||||
const START_OK = /linear-gradient\(105deg, #(00e070|00d96c|00e878|00c860|049e52|04874a) /
|
||||
const END_OK = /#(046b3b|045c34|023a21|03512e) 100%\)$/
|
||||
const START_OK = /linear-gradient\(105deg, #(00e070|00d96c|00e878|00c860|049e52|04874a|00d26a|10b981|059669) /
|
||||
const END_OK = /#(046b3b|045c34|023a21|03512e|34d399|6ee7b7|10b981) 100%\)$/
|
||||
for (const bg of BANNER_BG) {
|
||||
expect(START_OK.test(bg)).toBeTruthy()
|
||||
expect(END_OK.test(bg)).toBeTruthy()
|
||||
@@ -181,8 +181,8 @@ describe('春绿主题规则 · 亮绿面与白字/墨绿字', () => {
|
||||
const heroFiles = [
|
||||
['pages/index/index.vue', '.home__header'],
|
||||
['pages/mine/index.vue', '.mine__header'],
|
||||
['pages/member/index.vue', '.vip__header'],
|
||||
['pages/distribution/index.vue', '.dist__header'],
|
||||
['pages/member/index.vue', '.vip__backdrop'],
|
||||
['pages/distribution/index.vue', '.dist__hero'],
|
||||
]
|
||||
for (const [file, sel] of heroFiles) {
|
||||
const src = read(file)
|
||||
@@ -192,14 +192,10 @@ describe('春绿主题规则 · 亮绿面与白字/墨绿字', () => {
|
||||
}
|
||||
})
|
||||
|
||||
it('轮播卡文字用墨绿字($fc-primary-ink)+ 提亮罩,白插画留右侧深绿区', () => {
|
||||
it('轮播卡为规范化纯图片卡片容器(702×280rpx、aspectFill)', () => {
|
||||
const src = read('pages/index/index.vue')
|
||||
const title = src.slice(src.indexOf('.home__banner-title'), src.indexOf('.home__banner-title') + 220)
|
||||
expect(title.indexOf('color: $fc-primary-ink;') > -1).toBeTruthy()
|
||||
const shade = src.slice(src.indexOf('.home__banner-shade'), src.indexOf('.home__banner-shade') + 300)
|
||||
expect(shade.indexOf('rgba(255, 255, 255, 0.22)') > -1).toBeTruthy()
|
||||
expect(shade.indexOf('rgba(4, 48, 42, 0.5)') === -1).toBeTruthy()
|
||||
// 三底色均为「亮绿(左)→ 深绿(右)」的 105deg,白插画落在右侧深绿端
|
||||
expect(src.indexOf('.home__banner-img') > -1).toBeTruthy()
|
||||
expect(src.indexOf('height: 280rpx;') > -1).toBeTruthy()
|
||||
for (const bg of BANNER_BG) expect(bg.indexOf('105deg') > -1).toBeTruthy()
|
||||
})
|
||||
})
|
||||
|
||||
在新工单中引用
屏蔽一个用户