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.

70 lines
1.7 KiB

3 years ago
// index.js
3 years ago
const app = getApp();
3 years ago
Page({
data: {
3 years ago
active: 0,
3 years ago
height:app.globalData.navBarHeight + app.globalData.statusBarHeight,
statusBarHeight:app.globalData.statusBarHeight,
navBarHeight:app.globalData.navBarHeight,
3 years ago
navData: [{
text: '品牌洞察',
3 years ago
component: 'brand-child'
3 years ago
},
{
text: '车型洞察',
3 years ago
component: 'modal-child'
3 years ago
},
{
text: '事件洞察',
3 years ago
component: 'event-child'
3 years ago
},
{
text: '主题分析',
3 years ago
component: 'theme-child'
3 years ago
}
],
3 years ago
recommandBrand: [
{
img: "./cars/audi.jpg",
title: "奥迪"
},
{
img: "./cars/audi.jpg",
title: "奥迪"
},
{
img: "./cars/audi.jpg",
title: "奥迪"
},
{
img: "./cars/audi.jpg",
title: "奥迪"
},
{
img: "./cars/audi.jpg",
title: "奥迪"
},
{
img: "./cars/audi.jpg",
title: "奥迪"
},
{
img: "./cars/audi.jpg",
title: "奥迪"
}
],
dataArr:[{title: 'a', up: false}, {title: 'b', up: false}],
brandForm: {
brand: ''
}
3 years ago
},
onShow() {
this.getTabBar().init();
},
3 years ago
changeTab(val) {
let n = val.detail.index;
this.setData({
active: n
})
}
3 years ago
});