|
|
|
@ -42,13 +42,13 @@ export default { |
|
|
|
}; |
|
|
|
}, |
|
|
|
created() { |
|
|
|
const cweeks = ['星期一', '星期二', '星期三', '星期四', '星期五', '星期六', '星期日',] |
|
|
|
const cweeks = ['星期日','星期一', '星期二', '星期三', '星期四', '星期五', '星期六', ] |
|
|
|
// 取当前时间 |
|
|
|
const year = this.date.getFullYear(); |
|
|
|
const month = ('0' + (this.date.getMonth() + 1)).slice(-2); |
|
|
|
const day = ('0' + this.date.getDate()).slice(-2); |
|
|
|
// 周几 |
|
|
|
const wday = this.date.getDay() - 1; |
|
|
|
const wday = this.date.getDay(); |
|
|
|
// 创建时候附带时间 |
|
|
|
const hours = ('0' + this.date.getHours()).slice(-2); |
|
|
|
const minutes = ('0' + this.date.getMinutes()).slice(-2); |
|
|
|
|