weed picker.pick() 连续调用在iOS 11.0.2中不好用, 在iOS10最新版本中单独的pick好用,在iOS 11.0.2中单独的pick也不好用了。有人遇到过吗?
//选择开始日期
pickDate: function() {
var arr = this.currentdate.split('-');
var year = arr[0]; //获取当前日期的年份
var month = arr[1]; //获取当前日期的月份
var day = arr[2]; //获取当前日期的日
var year1 = parseInt(year) + 1;
var t2 = year1 + '-' + month + '-' + day;
picker.pickDate({
value: this.currentdate,
max: t2,
min: '2017-01-01'
}, event => {
if (event.result == 'success') {
this.date = this.formatDate(event.data);
return this.pickTime();
}
})
},
//选择开始时间
pickTime: function() {
picker.pickTime({
'value':this.currenttime
},event => {
if (event.result == 'success') {
this.icontrue02=false;
this.time = event.data;
this.qj.datetime=this.date+" "+this.time;
}
});
},
呼啦一阵风
相关分类