提交 2b9c14aa 编写于 作者: AndroidLeaves's avatar AndroidLeaves

update

上级 f1fc1c5e
......@@ -516,13 +516,13 @@ class Widget extends BaseWidget {
let currDayFullYear = currItem.date_cn.replace('', '-').replace('', '-').replace('', '');
let notWorkdayFullYear = notWorkday.date_cn.replace('', '-').replace('', '-').replace('', '');
let remainDay = (new Date(notWorkdayFullYear) - new Date(currDayFullYear)) / 86400 / 1000;
let holidayTips = notWorkday.holiday_cn == '非节假日' ? notWorkday.weekend_cn : notWorkday.holiday_cn + '假期';
let holidayTips = notWorkday.holiday_cn == '非节假日' ? notWorkday.weekend_cn : notWorkday.holiday_cn;
if (remainDay == 1) {
return '明天' + holidayTips + '啦~ o(* ̄3 ̄)o';
}
return `还有${remainDay}天到${holidayTips}ヽ(;´Д`)ノ`;
}
return '接口数据飞到外太空了ヽ(;´Д`)ノ';
return '数据飞到外太空了ヽ(;´Д`)ノ';
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册