tabbar跳转有条件时,怎么实现?

小程序 文章 2020-09-07 09:01 609 0 全屏看文

AI助手支持GPT4.0

tabbar跳转有条件时,怎么实现?How to implement tabbar jump conditional?

tabbar跳转有条件时,怎么实现?

当满足需求时,点击tabbar的某一项才跳转,否则就toast提醒,怎么实现?

When the requirements are met, click one of the tabbar items to jump. Otherwise, a toast reminder will be given. How to achieve this?

回答:

寂然😘:

在tabbar跳转页面进行参数判断,符合条件展示内容,不符合条件返回来源页

迷失的故渊:

你如何想实现不跳转页面提示 只能用自定义导航

wang li:用全局变量传值,页面周期onShow判断

-EOF-

AI助手支持GPT4.0