111
This commit is contained in:
parent
a0b8620836
commit
4f35752e33
@ -107,7 +107,11 @@ $(function () {
|
|||||||
viewSelect: "month",
|
viewSelect: "month",
|
||||||
initialDate: getDate("day"),
|
initialDate: getDate("day"),
|
||||||
}).on("show", function (ev) {
|
}).on("show", function (ev) {
|
||||||
displayDate(month);
|
let dateStr = month;
|
||||||
|
let parts = dateStr.split('-');
|
||||||
|
let newDateStr = `${parts[0]}-${parts[1].padStart(2, '0')}`;
|
||||||
|
console.log('000000000000',newDateStr);
|
||||||
|
displayDate(newDateStr);
|
||||||
//$(".datetimepicker-days th.switch").addClass("disabled");
|
//$(".datetimepicker-days th.switch").addClass("disabled");
|
||||||
}).on('changeDate', function (ev) {
|
}).on('changeDate', function (ev) {
|
||||||
var date = new Date(ev.date.valueOf());
|
var date = new Date(ev.date.valueOf());
|
||||||
@ -491,6 +495,7 @@ function getPaper(date) {
|
|||||||
|
|
||||||
//需要黑色显示的日期数组
|
//需要黑色显示的日期数组
|
||||||
function displayDate(date) {
|
function displayDate(date) {
|
||||||
|
console.log('-----',date);
|
||||||
var data = getPaper(date);
|
var data = getPaper(date);
|
||||||
var day = 1, count = 0, count2 = 0;
|
var day = 1, count = 0, count2 = 0;
|
||||||
$(".datetimepicker-days .day").each(function (i) {
|
$(".datetimepicker-days .day").each(function (i) {
|
||||||
|
@ -306,8 +306,13 @@ export default {
|
|||||||
sessionStorage.setItem('DateListH5', JSON.stringify(response.data.data));
|
sessionStorage.setItem('DateListH5', JSON.stringify(response.data.data));
|
||||||
sessionStorage.setItem('DateIndexH5', resIndex);
|
sessionStorage.setItem('DateIndexH5', resIndex);
|
||||||
console.log(response.data.data[resIndex]);
|
console.log(response.data.data[resIndex]);
|
||||||
this.datetime = this.getCurrentDateFormatted(response.data.data[resIndex].datetime);
|
if(activeDate == ''){
|
||||||
document.title = '《今日固始》电子版-' + this.datetime;
|
this.datetime = this.getCurrentDateFormatted(response.data.data[resIndex].datetime);
|
||||||
|
document.title = '《今日固始》电子版-' + this.datetime;
|
||||||
|
}else{
|
||||||
|
document.title = '《今日固始》电子版-' +storageTimeYear + "年" + this.getMd(storageTimeMonth)+"月"+this.getMd(storageTimeDay)+"日";
|
||||||
|
}
|
||||||
|
|
||||||
this.getBm();
|
this.getBm();
|
||||||
})
|
})
|
||||||
.catch(error => console.error('Error loading the JSON file:', error))
|
.catch(error => console.error('Error loading the JSON file:', error))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user