// index.js // 获取应用实例 const app = getApp() Page({ data: { tabbar: {}, condition: ['二十四小时', '最近七天', '最近三十天', '自定义'], toplist: [{ url: '', title: '入库数据总量', num: '0' }, { url: '', title: '微博数据', num: '0' }, { url: '', title: '其他数据', num: '0' }, { url: '', title: '短视频数据', num: '0' }, { url: '', title: '微信数据', num: '0' }, { url: '', title: 'APP数据', num: '0' }, { url: '', title: '论坛数据', num: '0' }, { url: '', title: '新闻数据', num: '0' }, ], }, onShow() { this.getTabBar().init(); }, onLoad: function (options) { }, })