Procházet zdrojové kódy

修复跨年问题

Changpeng Duan před 5 roky
rodič
revize
90aff0f970
1 změnil soubory, kde provedl 3 přidání a 2 odebrání
  1. 3 2
      app/src/page/appoint.vue

+ 3 - 2
app/src/page/appoint.vue

@@ -170,8 +170,8 @@
                     item = {
                         name: this.numberToWeek(days.getDay()),
                         data: days.getMonth() + 1 + '月' + days.getDate() + '日',
-                        orderDate: new Date().getFullYear() + '-' + month + '-' + day
-                    }
+                        orderDate: days.getFullYear() + '-' + month + '-' + day
+                    };
                     this.weeks.push(item);
                 }
                 this.today = this.weeks[0].name;
@@ -267,6 +267,7 @@
                 let that = this;
                 this.today = this.weeks[this.active].name;
                 let curDay = this.weeks[this.active].orderDate;
+                console.log(curDay);
                 let param = {
                     token: localStorage.token,
                     orderDate: curDay,