Commit b155d0dc authored by sujie@126.com's avatar sujie@126.com

dd

parent 1292e05c
......@@ -82,7 +82,7 @@
.date-area {
/* height: 80rpx; */
line-height: 1;
padding: 0 224rpx;
padding: 0 214rpx;
font-size:26rpx;
font-family:PingFang-SC-Medium;
font-weight:500;
......
......@@ -47,6 +47,7 @@ import initCalendar, {
setSelectedDays,
getSelectedDay,
enableArea,
enableDays,
jump
} from '../../components/calendar/main.js';
function compare(property) {
......@@ -293,10 +294,6 @@ Page({
})
this.clockMemberListGet(this.data.twoSmallSort, 'init');
}
let dakarole = LocalStorage.getItem('dakarole');
if (dakarole == 2) {
this.teachersPermission();
}
},
getDetail() {
const today = new Date().getFullYear() + '-' + (Number((new Date().getMonth() + 1))<10?'0'+(new Date().getMonth() + 1):(new Date().getMonth())) + '-' + (Number((new Date().getDate()))<10?'0'+(new Date().getDate()):(new Date().getDate()));
......@@ -362,6 +359,13 @@ Page({
noCommentTotal: Number(data.not_review_count || 0),
})
this.getCircleDetail()
const startD = data.calendar_set.start_time.split(" ")[0]
const endD = data.calendar_set.end_time.split(" ")[0]
if (this.numberDate(startD) == this.numberDate(endD)) {
enableDays([this.numberDate(startD)])
} else {
enableArea([this.numberDate(startD), this.numberDate(endD)])
}
}
}).catch((err) => {
wx.hideLoading()
......@@ -1512,4 +1516,7 @@ Page({
})
return _length;
},
numberDate(date) {
return date.split('-')[0] + '-' + Number(date.split('-')[1]) + '-' + Number(date.split('-')[2])
},
})
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment