小白菜QaQ
小白菜QaQ
  • 发布:2023-09-20 17:23
  • 更新:2023-09-21 09:33
  • 阅读:104

uniapp 一个页面用v-if 分的页面,ios 左滑直接返回上一个页面的 怎么让他可以返回的是v-if的页面

分类:HBuilderX
    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;  
        }  

}

2023-09-20 17:23 负责人:无 分享
已邀请:
小白菜QaQ

小白菜QaQ (作者)

有没有官方可以回答一下 可以拦截ios或者禁止不可以左滑动

要回复问题请先登录注册