{{selectedDate.year}}年{{selectedDate.month}}月
回今日
{{item}}
{{item.day}}
{{item.day}}
{{item.day}}
{{item.day}}
{{item.day}}
{{item.day}}
{{item}}
{{item.bssz}}
{{tools.dateFormat(item.bsjssj)}}
{{item.bssz}}
var splits = function (e, i) {
if (e) {
return e.slice(0 + (i * 7), 7 * (i + 1))
} else {
return ""
}
}
var setClass = function (e, n, t, s) {
if (e && n && t && s) {
if (e.year == n.year && e.month == n.month && e.day == n.day) {
return "day-now"
} else if (e.year == t.year && e.month == t.month && e.day == t.day) {
return "day-selected"
} else if (e.year != s.year || e.month != s.month) {
return "day-not"
} else {
return ""
}
} else {
return ""
}
}
var dateFormat = function (e, i) {
if (e) {
var date = e.substring(5, 10)
date = date.split("-")
return date[0] + '月' + date[1] + '日'
} else {
return ""
}
}
var tools = {
splits: splits,
setClass: setClass,
dateFormat: dateFormat
}
module.exports = tools;