picker组件的bindchange事件在安卓 360 N5S下闪退
- 当前 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();
}
