button open-type="feedback"

发布于 6 年前作者 tanjuan1682 次浏览最后编辑 6 年前来自 ask

用户点击button opten-type=“feedback”,跳转到帮助反馈页面时,怎么在点击的时候加条件判断,满足条件时再跳转

2 回复
jie36
jie361 楼6 年前

具体怎么操作啊?是<button wx:if=“{{hasNet}}” open-type=“feedback”></button>吗?,在什么时候setData比较合适呢,如果在点击的时候setData,那么此次绑定的hasNet,在此次无法生效

tao42
tao422 楼4 年前

绑定data试试