onBackPress(e) {
console.log(e)
console.log(this.dengluShow, '----')
if (e.from == 'backbutton') {
if (this.step == 1) {
uni.switchTab({
url: '/pages/MainPackage/publish'
});
}
if (this.game_id == 33 || this.game_id == 36) {
if (this.zhanghaoShow) {
if (!this.dengluShow) {
if (this.game_id == 33) {
this.zhanghaoBack();
this.step = 2;
} else if (this.game_id == 36) {
this.hpzhanghaoBack();
this.step = 2;
}
}
} else {
if (this.step == 2) {
this.step = 1;
}
}
} else {
if (this.step == 2) {
this.step = 1;
}
}
if (this.step == 3) {
this.step = 2;
}
return true;
}
}
1 个回复
小白菜QaQ (作者)
有没有官方可以回答一下 可以拦截ios或者禁止不可以左滑动