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.
30 lines
475 B
30 lines
475 B
const _app = getApp<IAppOption>(); |
|
|
|
Page({ |
|
data: { |
|
current: 0, |
|
}, |
|
onLoad() {}, |
|
handleTap1() { |
|
if (this.data.current <= 0) { |
|
wx.navigateBack(); |
|
return; |
|
} |
|
this.setData({ |
|
current: this.data.current - 1, |
|
}); |
|
}, |
|
handleTap2() { |
|
if (this.data.current >= 2) { |
|
wx.navigateTo({ |
|
url: "/pages/7/index", |
|
}); |
|
return; |
|
} |
|
this.setData({ |
|
current: this.data.current + 1, |
|
}); |
|
}, |
|
}); |
|
|
|
export {};
|
|
|