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.
31 lines
546 B
31 lines
546 B
// index.js
|
|
|
|
Page({
|
|
data: {
|
|
active:0,
|
|
showChart: true,
|
|
wshow:true,
|
|
},
|
|
onShow() {
|
|
this.getTabBar().init();
|
|
console.log(this.data.active)
|
|
if(this.data.active==2 || this.data.active==3){
|
|
this.reLoad()
|
|
}
|
|
},
|
|
changeTab(val) {
|
|
let n = val.detail.index;
|
|
this.setData({
|
|
active: n
|
|
})
|
|
},
|
|
reLoad(){
|
|
this.setData({
|
|
wshow:false
|
|
})
|
|
this.setData({
|
|
wshow:true
|
|
})
|
|
}
|
|
});
|