收藏
回答

input组件的bindtap事件某些机型触发不了

如题,  某些机型的input组件的 bindtap 事件没有反应,这是什么bug?




回答关注问题邀请回答
收藏

4 个回答

  • 黄思程
    黄思程
    2019-04-11

    input 组件里点击就会弹起键盘了,监听 bindfocus 试试

    2019-04-11
    有用
    回复 1
    • 2019-04-11

      嗯嗯,好的~

      2019-04-11
      回复
  • 禾店短剧系统
    禾店短剧系统
    2021-06-18

    参考一下https://blog.csdn.net/yuer_xiao/article/details/100045778

    2021-06-18
    有用 1
    回复
  • 是小白啊
    是小白啊
    2019-04-09

    麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)

    2019-04-09
    有用
    回复 5
    • 2019-04-09

       "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


      2019-04-09
      回复
    • 是小白啊
      是小白啊
      2019-04-09回复

      代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)也提供下

      2019-04-09
      回复
    • 2019-04-09

      <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触发之后,那个选择加价就不应该会亮的,






      2019-04-09
      回复
    • 是小白啊
      是小白啊
      2019-04-09回复

      https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html,按照提示提供下可运行的代码片段

      2019-04-09
      回复
    • 2019-04-09回复是小白啊

      https://developers.weixin.qq.com/s/FU4auvmn7I7s

      2019-04-09
      回复
  • 陈
    2019-04-09

    版本的问题吗?

    2019-04-09
    有用
    回复
登录 后发表内容