代码块1
pickeroptions1: {
disabledDate: time => i
const day = 365 * 24* 3600*1000*3;const day1 = 9* 24* 3600*1000;
if(this.searchData && this.searchData.balanceEndTime)l/ console.log(this.searchData.balanceEndTime);
let etime = Date.parse(new Date(this.searchData.balanceEndTime));let etime2 = new Date(etime) .setMonth(
new Date(etime).getMonth() + -3
);
/ / console.log(etime) ;return (
time.getTime() > Date.now() ll time.getTime() < etime2 - 8.64e7);
else {
return time.getTime() >Date.now();}
}},
代码块2
pickeroptions2: {
disabledDate: time => {
const day = 365 *24 *3600*1000* 3;// const day1 = 9*24 * 3600 *1000;
if (this.searchData && this.searchData.balancestartTime){
let stime = Date.parse(new Date(this.searchData.balancestartTime”)
;
let stime2 = new Date(stime) .setMonth(
new Date(stime).getMonth() + 3
);
// console.log(stime2);
return (
time.getTime()> stime2 - 8.64e7 lltime.getTime() < stime ll
time.getTime() > Date.now());
}else return time.getTime() >Date.now();}
},