收藏
回答

偶现input自动修改输入值?

<view class='phone_box flex-wrap'>
  <text class='phone_title'>+{{areaPrefix[areaPrefixIndex].value}}</text>
  <input type='number' placeholder='请输入手机号' class='phone_input' maxlength='11' bindinput='watch_number' value='{{phone_num}}'></input>
  <text class='iconfont icon-shanchux icon_phone_close {{phone_num ? "" : "cur"}}' catchtap='clear_number'></text>
</view>

<button type='default' class='code_btn' disabled='{{disabled_code}}' bindtap='get_time_out'>{{is_time_out? time_out : "获取验证码"}}{{is_time_out? "S" : ""}}</button>

get_time_out: function () {
        return getApp().showCustomConfirm({
          content: `请先同意《${this.memberAgreementName}》和《用户隐私政策》`,
          showCancel: false
        })
    },


用户在输入框中输入了手机号,然后点击获取验证码按钮,正常逻辑是弹出同意隐私政策弹框,但用户点击后输入框中的数字变成了“2”,我看录屏用户是没有按数字“2”的,用的是苹果自带的输入法。


用户ios版本是18.5,微信版本是8.0.69

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

2 个回答

  • showms
    showms
    06-22

    看着可能是自己代码的bug,必现的吗?最好还是提供个代码片段看看

    06-22
    有用
    回复 2
    • 林深时见鹿
      林深时见鹿
      06-22
      是偶现的,目前只有一个人出现这个问题,只有录屏。。
      06-22
      回复
    • 林深时见鹿
      林深时见鹿
      06-22
      相关的代码片段就是这些了,其他的确实没啥关系,我都感觉是手机问题了
      06-22
      回复
  • 智能回答 智能回答 本次回答由AI生成
    06-22
    有用
    回复
登录 后发表内容