diff --git a/components/ui-calendar/ui-calendar.wxss b/components/ui-calendar/ui-calendar.wxss index 0f9d778..33ec787 100644 --- a/components/ui-calendar/ui-calendar.wxss +++ b/components/ui-calendar/ui-calendar.wxss @@ -14,16 +14,16 @@ align-items: center; justify-content: center; margin: 12rpx; - width: 76rpx; - height: 76rpx; + width: 74rpx; + height: 74rpx; box-sizing: border-box; } .item .item_view { display: flex !important; align-items: center !important; justify-content: center !important; - width: 76rpx !important; - height: 76rpx !important; + width: 74rpx !important; + height: 74rpx !important; box-sizing: border-box !important; } diff --git a/pages/calendar/calendar.js b/pages/calendar/calendar.js index 1221396..667fd6d 100644 --- a/pages/calendar/calendar.js +++ b/pages/calendar/calendar.js @@ -125,8 +125,10 @@ Page({ onShow: function () { let demo = wx.getStorageSync("date"); let timer = this.data.timer; + let getDate = new Date().getDate(); if (!timer) { - timer = this.data.calendarDisplayTime + '-' + new Date().getDate(); + getDate = getDate>9?getDate:'0'+getDate + timer = this.data.calendarDisplayTime + '-' + getDate; } if (demo) { timer = demo.time