| | |
| | | |
| | | /** 获取首页数据 */ |
| | | function mockFetchHome() { |
| | | const { delay } = require('../_utils/delay'); |
| | | const { |
| | | delay |
| | | } = require('../_utils/delay'); |
| | | return delay().then(() => { |
| | | return { |
| | | tabList: [ |
| | | { |
| | | tabList: [{ |
| | | text: '图书服务', |
| | | key: 0, |
| | | icon: '/static/images/home/zhutichuban@2x.png', |
| | |
| | | text: '数字阅读', |
| | | key: 1, |
| | | icon: '/static/images/home/shuziyuedu@2x.png', |
| | | url: '', |
| | | url: '/pages/home/digitalRead/index', |
| | | }, |
| | | { |
| | | text: '数字课程', |
| | | key: 2, |
| | | icon: '/static/images/home/shuzikecheng@2x.png', |
| | | url: '', |
| | | url: '/pages/digitalCourses/index', |
| | | }, |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | text: '数字教材', |
| | | key: 3, |
| | | icon: '/static/images/home/shuzijiaocai@2x.png', |
| | | url: '', |
| | | url: '/pages/digitalTextbooks/index', |
| | | }, |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | text: '专题讨论', |
| | | key: 4, |
| | | icon: '/static/images/home/zhuantitaolun@2x.png', |
| | | url: '', |
| | | url: '/pages/specialDiscussion/index', |
| | | }, |
| | | { |
| | | text: '线上书展', |
| | |
| | | /** 获取首页数据 */ |
| | | export function fetchHome() { |
| | | return mockFetchHome(); |
| | | } |
| | | } |