text上加bindtap,安卓点击text没反应,苹果没有这个问题
发布于 5 年前 作者 panxiulan 1913 次浏览 来自 问答

如题:

xml:

<text bindtap=‘getVerificationCode’ style=‘position:absolute;right:70rpx;color: {{timeColor}};font-size:30rpx;’>{{time}}</text>

js:

getVerificationCode: function() {

var that = this

if (that.data.sendCodeNewrequst.mobileAccount.length != ‘11’ || that.data.timeColor == ‘#999999’) {

return;

}

that.getcode();

},

安卓根本就不执行getVerificationCode()方法,之前是好的,突然就点击没用了

3 回复

哈哈,不告诉你

你好,试了下,安卓的text绑定bintap事件是没有问题的,请提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

换成view试下

回到顶部