public setStartTime(date){
console.log('开始时间', date);// 判断date 晚于当前时间;const d = new Date(date)
var now = new Date();// console.log('当前时间', now);if(now > d){
Toast.info('开始时间,不能早于当前时间');}else{//console.log('当前时间2222222');const resDate = d.getFullYear()+'-'+ this.p((d.getMonth()+1))+'-'+ this.p(d.getDate())const resTime = this.p(d.getHours())+':'+ this.p(d.getMinutes())+':'+ this.p(d.getSeconds())const startDate = resDate +" "+ resTime
}//over}// 转时间戳
var s=new Date(this.state.start_date).getTime();
var d = new Date(this.state.end_date).getTime();if(s > d){// 开始时间 晚于 结束时间
Toast.info('开始时间,不能晚于结束时间');}elseif( d-s <3600000){// 结束时间 - 开始时间 < 一分钟
Toast.info('最短使用时间:一小时');}
var date = new Date();
var Y = date.getFullYear();//var M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1);
var M = date.getMonth();
var D = date.getDate();
var h = date.getHours()+':';// var m = date.getMinutes() ;
var m =(date.getMinutes()+1<10?'0'+(date.getMinutes()+1): date.getMinutes()+1);// var s = date.getSeconds()+':';
var s =(date.getSeconds()+1<10?'0'+(date.getSeconds()+1): date.getSeconds()+1)+"-";
console.log(m);
console.log(Y+':'+M+':'+D+':'+h+':'+m+':'+s);
$('.RQ').html(Y+'年'+M+'月'+D+'日');
public setStartTime(date) {console.log(‘开始时间’, date);// 判断date 晚于当前时间;const d = new Date(date)var now = new Date();// console.log(‘当前时间’, now);if (now > d) {Toast.info(‘开始时间,不能早于当前时间’);} else {//console.log(‘当前时间2222222’);const resDate = d.get