feat: migrate static pages to native tabbar

This commit is contained in:
2026-04-23 21:25:24 +08:00
parent f3cd0c3a98
commit cd30f57f2c
116 changed files with 7143 additions and 311 deletions

48
utils/static-ux/mingli.js Normal file
View File

@@ -0,0 +1,48 @@
const { cloneList, resolveScene } = require('./shared')
const { ROUTES } = require('./route-map')
const MINGLI_QUICK_CARDS = Object.freeze([
{
key: 'hall',
title: '易学阁',
subtitle: '总览入口',
route: ROUTES.mingli.hall,
icon: '阁'
},
{
key: 'bazi',
title: '八字排盘',
subtitle: '静态排盘结果',
route: ROUTES.mingli.bazi,
icon: '盘'
},
{
key: 'interpret',
title: '命理解读',
subtitle: '问题与解读',
route: ROUTES.mingli.interpret,
icon: '解'
}
])
function createMingliHallPageData() {
return {
title: '易学阁',
quickCards: cloneList(MINGLI_QUICK_CARDS)
}
}
function createBaziPageData(rawScene) {
const scene = resolveScene(rawScene, ['default', 'result'], 'default')
return {
title: '八字排盘',
scene,
quickCards: cloneList(MINGLI_QUICK_CARDS)
}
}
module.exports = {
createMingliHallPageData,
createBaziPageData
}