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