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.
49 lines
1.1 KiB
49 lines
1.1 KiB
// index.js
|
|
const app = getApp();
|
|
Page({
|
|
data: {
|
|
active: 0,
|
|
height:app.globalData.navBarHeight + app.globalData.statusBarHeight,
|
|
statusBarHeight:app.globalData.statusBarHeight,
|
|
navBarHeight:app.globalData.navBarHeight,
|
|
navData: [{
|
|
text: '品牌洞察',
|
|
component: 'brand-child'
|
|
},
|
|
{
|
|
text: '车型洞察',
|
|
component: 'modal-child'
|
|
},
|
|
{
|
|
text: '事件洞察',
|
|
component: 'event-child'
|
|
},
|
|
{
|
|
text: '主题分析',
|
|
component: 'theme-child'
|
|
}
|
|
],
|
|
dataArr:[{title: 'a', up: false}, {title: 'b', up: false}],
|
|
brandForm: {
|
|
brand: ''
|
|
}
|
|
},
|
|
onLoad() {
|
|
|
|
},
|
|
onShow() {
|
|
if(!wx.getStorageSync('token')) {
|
|
wx.navigateTo({
|
|
url: "/pages/mine/pages/bindUser/index",
|
|
})
|
|
} else {
|
|
this.getTabBar().init();
|
|
}
|
|
},
|
|
changeTab(val) {
|
|
let n = val.detail.index;
|
|
this.setData({
|
|
active: n
|
|
})
|
|
}
|
|
}); |