You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
717 B
JavaScript

2 years ago
Page({
data: {
applyType: 0,
mainButton: {
buttonText: "主要操作"
}
},
onLoad(query) {
var that = this;
this.setData({
applyType: query.applyType
});
},
goBack() {
var that = this;
wx.navigateBack(-1);
// wx.switchTab({
// url: "../index/index"
// });
// if (that.data.applyType == 0) {
// wx.switchTab({
// url: "../index/index"
// });
// } else {
// wx.navigateBack(-2);
// }
2 years ago
},
goIndex(){
var that = this;
wx.switchTab({
url: '../index/index',
})
}
});