date
This commit is contained in:
parent
fb3389024d
commit
32a64be86f
@ -87,14 +87,14 @@ export function getweek(time: string, id: string,zhou?: number){
|
|||||||
console.log(now, 11111)
|
console.log(now, 11111)
|
||||||
|
|
||||||
if(zhou != undefined){
|
if(zhou != undefined){
|
||||||
now = now.day(now.day() + (zhou * 6));
|
now = now.day(now.day() + (zhou * 7));
|
||||||
}
|
}
|
||||||
const yue = (now.month() + 1 < 10 ? '0' + (now.month() + 1) : (now.month() + 1));
|
const yue = (now.month() + 1 < 10 ? '0' + (now.month() + 1) : (now.month() + 1));
|
||||||
const day = now.date() // 当前天
|
const day = now.date() // 当前天
|
||||||
zhou = now.day(); // 当前周几
|
zhou = now.day(); // 当前周几
|
||||||
const year = now.year()
|
const year = now.year()
|
||||||
const startd = now.day(0).date();
|
const startd = now.day(0);
|
||||||
const start = `${year}-${yue}-${startd > 9 ? startd : '0' + startd}`
|
const start = `${startd.year()}-${(startd.month() + 1 < 10 ? '0' + (startd.month() + 1) : (startd.month() + 1))}-${startd.date() > 9 ? startd.date() : '0' + startd.date()}`
|
||||||
interface Date{
|
interface Date{
|
||||||
day: string;
|
day: string;
|
||||||
list?: Array<any>;
|
list?: Array<any>;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user