按钮单击事件无效
发布于 6 年前 作者 jie67 11551 次浏览 来自 问答

为什么我邦定的跳转事件,好象不起作用,在工具,远程调试都没有问题.

index.php

thml

<view id=“1” class=“clear mt10” bindtap=“joinActive”>参于活动</view>

index.js

joinActive: function () {

wx.navigateTo({

url: ‘…/active/active?activeid=’ + this.data.activeid,

})

},

10 回复

不是tabBar页,我没有tabBar,留个QQ不??大师远程帮我看看呢304589215,

在微信开发工具模拟器上点击事件可以,但在手机上就不行了

active是tabBar页面吗?是的话要用switchTab

我也是这个问题啊

找到原因了,我APP里面加PAGE

手机上跳转不了

url:’/pages/active/activeid=’ + this.data.activeid,

去掉也是一样.

在手机上周试,说是 Do not have joinActive handler in current page:

pages/index/index. please make sure that joinActive handler has beeen  defined in pages/index/index , or pages/indexs/index/index has beeen added into app.json

回到顶部