picker组件的bindchange事件在安卓 360 N5S下闪退
发布于 5 年前 作者 xiuying25 10969 次浏览 来自 问答
  • 当前 Bug 的表现(可附上截图)

当点击小程序的picker组件修改时间时,直接退出小程序

所用360手机信息如下图:

  • 预期表现

预期表现不应该退出,正常修改时间

  • 复现路径
  • 提供一个最简复现 Demo

wxml文件

<picker mode=“date” value="{{inputStartTime}}"  bindchange=“bindStartTimeChange” start="{{pstartDate}}" end="{{pendDate}}">

                 <text class=“date date-start”>{{inputStartTime}}</text>

 </picker>

js文件:

bindStartTimeChange(e){

   let isTime = e.detail.value, reg = new RegExp(’-’, “g”);

   isTime=isTime.replace(reg,".");

   isTime=this.formatDate(isTime);

   this.setData({ “inputStartTime”: isTime})

   this.data.uCardInfo.startTime = this.data.inputStartTime

   this.setData({ “uCardInfo”: this.data.uCardInfo });

   this.Unable();

 }

1 回复

麻烦在手机微信那里上传下日志: 我->设置->帮助与反馈右上角有个上报日志的入口,麻烦提供一下微信号,时间点,以及提供下复现的代码片段:https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

回到顶部