let now = new Date().getTime() + 4*60*60*1000; let d_date =new Date(e.year,e.month-1,e.day,e.hour,e.minute,0).getTime(); let nowlat= new Date().getTime() - 4*60*60*1000; if(!(8< e.hour && e.hour <20)){ this.$common._showToast('请选择时间'); return false; } // console.log(d_date,now,nowlat) if(!(nowlat<d_date && d_date<now)){ this.$common._showToast('请选择时间'); return false; } this.appointment_time = e.year+"-"+this.getnumber(e.month)+"-"+this.getnumber(e.day)+" "+this.getnumber(e.hour)+":"+this.getnumber(e.minute); },