You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1015 B

3 years ago
// index.js
// 获取应用实例
const app = getApp()
Page({
data: {
3 years ago
active: 0,
navData: [{
text: '数据',
component: 'data-child'
3 years ago
},
{
3 years ago
text: '传播媒体',
3 years ago
component: 'media-child'
3 years ago
},
{
3 years ago
text: '传播声量',
3 years ago
component: 'sound-child'
3 years ago
},
{
3 years ago
text: '晴雨表',
3 years ago
component: 'barometer-child'
3 years ago
},
{
3 years ago
text: '尾翼洞察',
component: 'insight-child'
},
{
text: '事件',
component: 'event-child'
3 years ago
},
{
3 years ago
text: '热议图谱',
3 years ago
component: 'atlas-child'
3 years ago
},
{
3 years ago
text: '用户画像',
3 years ago
component: 'portrait-child'
3 years ago
},
{
3 years ago
text: '热销排行',
3 years ago
component: 'ranking-child'
3 years ago
},
3 years ago
],
3 years ago
},
3 years ago
3 years ago
onShow() {
3 years ago
this.getTabBar().init();
3 years ago
},
3 years ago
onLoad: function (options) {
3 years ago
3 years ago
},
3 years ago
changeTab(val) {
let n = val.detail.index;
this.setData({
active: n
})
}
3 years ago
})