var date1 = new Date(addTime); //获取下次维护时间
var date2 = new Date(); //获取现在时间
var s1 = date1.getTime(), //转换下次维护时间戳
s2 = date2.getTime(); //转换当前时间戳
var total = (s2 - s1)/1000; //当前减去下次维护时间
var day = parseInt(total / (24*60*60));//计算整数天数
var dayThree = day/3;
//day大 超时 , day小 未超时 当小于1/3的day的话,即将超时
if(day < 0){
var wxType = "未超时";
}else if(day > 0){
var wxType = "已超时";
}else if(day < dayThree||day == dayThree){
var wxType = "即将超时";
}