小程序
小游戏
企业微信
微信支付
扫描小程序码分享
如题, 某些机型的input组件的 bindtap 事件没有反应,这是什么bug?
3 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
input 组件里点击就会弹起键盘了,监听 bindfocus 试试
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
嗯嗯,好的~
麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
"benchmarkLevel": null,
"brand": "iPhone",
"createTime": 1550741269000,
"fontSizeSetting": 17,
"language": "zh_CN",
"lastModifyTime": 1554792001000,
"model": "iPhone 7 Plus<iPhone9,2>",
"openId": "",
"pixelRatio": 3,
"platform": "ios",
"screenHeight": 736,
"screenWidth": 414,
"sdkVersion": "2.6.5",
"statusBarHeight": 20,
"system": "iOS 12.2",
"version": "7.0.3",
"windowHeight": 624,
"windowWidth": 414
代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)也提供下
<view bindtap='selectPrice' data-type='{{0}}' data-index='{{index}}' class='app_v2 {{selectIndex[0]==index?"app_v3":""}}' wx:for="{{priceList}}">{{item==0?"不加价":"加"+item+"元"}}</view>
</view>
<input maxlength='6' bindtap='customPriceTap' bindinput='customPriceInput' data-type='{{0}}' placeholder-style='color:#999;' placeholder='自定义'class='app_v4' value='{{custumPrice[0] > 0 ? custumPrice[0] : ""}}'></input>
customPriceInput: function (e) {
this.data.custumPrice[e.currentTarget.dataset.type] = e.detail.value;
},
customPriceTap: function (e) {
this.data.selectIndex[e.currentTarget.dataset.type] = -1;
this.setData({
selectIndex: this.data.selectIndex
})
这里我把它封装成一个组件的, 正常来说bindtap触发之后,那个选择加价就不应该会亮的,
https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html,按照提示提供下可运行的代码片段
https://developers.weixin.qq.com/s/FU4auvmn7I7s
版本的问题吗?
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
input 组件里点击就会弹起键盘了,监听 bindfocus 试试
嗯嗯,好的~
麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
"benchmarkLevel": null,
"brand": "iPhone",
"createTime": 1550741269000,
"fontSizeSetting": 17,
"language": "zh_CN",
"lastModifyTime": 1554792001000,
"model": "iPhone 7 Plus<iPhone9,2>",
"openId": "",
"pixelRatio": 3,
"platform": "ios",
"screenHeight": 736,
"screenWidth": 414,
"sdkVersion": "2.6.5",
"statusBarHeight": 20,
"system": "iOS 12.2",
"version": "7.0.3",
"windowHeight": 624,
"windowWidth": 414
代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)也提供下
<view bindtap='selectPrice' data-type='{{0}}' data-index='{{index}}' class='app_v2 {{selectIndex[0]==index?"app_v3":""}}' wx:for="{{priceList}}">{{item==0?"不加价":"加"+item+"元"}}</view>
</view>
<input maxlength='6' bindtap='customPriceTap' bindinput='customPriceInput' data-type='{{0}}' placeholder-style='color:#999;' placeholder='自定义'class='app_v4' value='{{custumPrice[0] > 0 ? custumPrice[0] : ""}}'></input>
customPriceInput: function (e) {
this.data.custumPrice[e.currentTarget.dataset.type] = e.detail.value;
},
customPriceTap: function (e) {
this.data.selectIndex[e.currentTarget.dataset.type] = -1;
this.setData({
selectIndex: this.data.selectIndex
})
},
这里我把它封装成一个组件的, 正常来说bindtap触发之后,那个选择加价就不应该会亮的,
https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html,按照提示提供下可运行的代码片段
https://developers.weixin.qq.com/s/FU4auvmn7I7s
版本的问题吗?