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
943 B

3 years ago
// index.js
Page({
3 years ago
data: {
active: 0,
showChart: true,
wshow: true,
3 years ago
brandshow:true,
modelshow:true,
3 years ago
},
onShow() {
if (!wx.getStorageSync('token')) {
wx.navigateTo({
url: "/pages/mine/pages/bindUser/index?isHome=1",
})
} else {
this.getTabBar().init();
if (this.data.active == 2 || this.data.active == 3 || this.data.active == 1) {
this.reLoad()
}
3 years ago
}
3 years ago
this.setData({
3 years ago
wshow: true,
brandshow:true,
modelshow:true,
3 years ago
})
},
themeHide() {
this.setData({
wshow: false
})
},
3 years ago
brandHide(){
this.setData({
brandshow: false
})
},
modelHide(){
this.setData({
modelshow: false
})
},
3 years ago
changeTab(val) {
let n = val.detail.index;
this.setData({
active: n
})
},
3 years ago
reLoad() {
this.setData({
wshow: false
})
this.setData({
wshow: true
})
}
3 years ago
});