This commit is contained in:
1099438829 2021-03-03 17:18:16 +08:00
parent fd0e40fd70
commit 4af3e69409
2 changed files with 4 additions and 5 deletions

View File

@ -790,13 +790,12 @@ window.Win10 = {
return viewdate;
},
//消息中心渲染
renderCommand: function(today = null) {
renderCommand: function(todayHtml = null) {
let active = $("#win10_command_center .command-body.today").hasClass('active');
if (!active) {
let todayHtml = '';
if (!today) {
if (!todayHtml) {
let lunarDate = Win10.getLunarObj();
todayHtml += '<div class="command-body-calendar">\n' +
todayHtml = '<div class="command-body-calendar">\n' +
' <div class="command-body-calendar-date normal-date">' + lunarDate.month + '月' + lunarDate.day + '日 \n' +lunarDate.week + '</div>\n' +
' <div class="command-body-calendar-date lunar-date">' + lunarDate.ganzhi + '年' + lunarDate.lunarmonth + lunarDate.lunarday + '</div>\n' +
'</div>\n' +

2
js/mac.min.js vendored

File diff suppressed because one or more lines are too long