只需要转化一下就好了
confirm(e) {
//时间戳转换为时间
const timeFormat = uni.$u.timeFormat;
let timeValue = timeFormat(e.value, 'yyyy-mm-dd');
this.value2 = timeValue;//value2为页面上的日期
this.show1 = false
},
只需要转化一下就好了
confirm(e) {
//时间戳转换为时间
const timeFormat = uni.$u.timeFormat;
let timeValue = timeFormat(e.value, 'yyyy-mm-dd');
this.value2 = timeValue;//value2为页面上的日期
this.show1 = false
},