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.

43 lines
718 B

3 years ago
// index.js
Page({
3 years ago
data: {
active: 0,
showChart: true,
wshow: true,
},
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({
wshow: true
})
},
themeHide() {
this.setData({
wshow: false
})
},
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
});