75 lines
2.1 KiB
JavaScript
75 lines
2.1 KiB
JavaScript
const {
|
|
createLearningCenterPageData: createBaseLearningCenterPageData
|
|
} = require('../../../../utils/static-ux/learning')
|
|
const { ROUTES, openStaticRoute } = require('../../../../utils/static-ux/route-map')
|
|
|
|
function createLearningCenterPageData() {
|
|
const baseData = createBaseLearningCenterPageData()
|
|
|
|
return {
|
|
...baseData,
|
|
heroTitle: '先继续上次学习,再回看静态记录',
|
|
heroDescription: '学习中心不再承接旧后台列表,而是把最值得继续的学习动作放到最上面。',
|
|
quickDeck: [
|
|
{
|
|
key: 'qa-history',
|
|
title: 'AI历史',
|
|
description: '继续查看中医问答与辨证分析的静态记录页',
|
|
route: ROUTES.tcm.aiHistory,
|
|
domain: 'tcm'
|
|
},
|
|
{
|
|
key: 'assets',
|
|
title: '学习资产',
|
|
description: '回到笔记、书架、收藏和历史四类资产入口',
|
|
route: `${ROUTES.tcm.assets}?kind=notes`,
|
|
domain: 'tcm'
|
|
},
|
|
{
|
|
key: 'interpret',
|
|
title: '命理解读',
|
|
description: '进入易学侧的静态问题解读页',
|
|
route: `${ROUTES.mingli.interpret}?scene=result`,
|
|
domain: 'mingli'
|
|
},
|
|
{
|
|
key: 'bazi',
|
|
title: '八字排盘',
|
|
description: '继续查看静态排盘结果与四柱结构',
|
|
route: `${ROUTES.mingli.bazi}?scene=result`,
|
|
domain: 'mingli'
|
|
}
|
|
],
|
|
recentItems: [
|
|
{
|
|
key: 'recent-reading',
|
|
title: '典籍阅读',
|
|
description: '回到《黄帝内经素问》的静态阅读页。',
|
|
route: `${ROUTES.tcm.section}?scene=reader-a`
|
|
},
|
|
{
|
|
key: 'recent-yixue',
|
|
title: '易学阅读',
|
|
description: '继续浏览《滴天髓》的静态阅读页。',
|
|
route: `${ROUTES.mingli.section}?scene=reader-a`
|
|
}
|
|
]
|
|
}
|
|
}
|
|
|
|
function showNavigate(route) {
|
|
openStaticRoute(route, wx)
|
|
}
|
|
|
|
Page({
|
|
data: createLearningCenterPageData(),
|
|
|
|
handleRouteTap(event) {
|
|
showNavigate(event.currentTarget.dataset.route)
|
|
}
|
|
})
|
|
|
|
module.exports = {
|
|
createLearningCenterPageData
|
|
}
|