浏览代码

BUG修复

seimin 3 年之前
父节点
当前提交
0af19cc305
共有 1 个文件被更改,包括 7 次插入4 次删除
  1. 7 4
      src/app/views/hushijiandan/hushijiandan.component.ts

+ 7 - 4
src/app/views/hushijiandan/hushijiandan.component.ts

@@ -853,7 +853,7 @@ export class HushijiandanComponent implements OnInit {
853
       if (getMinutes(this.yyTime) != 30) {
853
       if (getMinutes(this.yyTime) != 30) {
854
         this.yyTime = setMinutes(this.yyTime, 0);
854
         this.yyTime = setMinutes(this.yyTime, 0);
855
       }
855
       }
856
-    }else{
856
+    } else {
857
       this.nextDay = false;
857
       this.nextDay = false;
858
     }
858
     }
859
     this.clickYYFlag = false;
859
     this.clickYYFlag = false;
@@ -863,7 +863,7 @@ export class HushijiandanComponent implements OnInit {
863
       if (getMinutes(this.yyTimeZy) != 30) {
863
       if (getMinutes(this.yyTimeZy) != 30) {
864
         this.yyTimeZy = setMinutes(this.yyTimeZy, 0);
864
         this.yyTimeZy = setMinutes(this.yyTimeZy, 0);
865
       }
865
       }
866
-    }else{
866
+    } else {
867
       this.nextDayZy = false;
867
       this.nextDayZy = false;
868
     }
868
     }
869
     this.clickYYZyFlag = false;
869
     this.clickYYZyFlag = false;
@@ -882,7 +882,8 @@ export class HushijiandanComponent implements OnInit {
882
         this.disabledHours = () => [];
882
         this.disabledHours = () => [];
883
         this.disabledMinutes = (hour) => [];
883
         this.disabledMinutes = (hour) => [];
884
       } else {
884
       } else {
885
-        this.yyTime = addDays(this.yyTime, -1);
885
+        // this.yyTime = addDays(this.yyTime, -1);
886
+        this.yyTime = null;
886
         this.disabledHours = () => {
887
         this.disabledHours = () => {
887
           let now = new Date();
888
           let now = new Date();
888
           let nHour = now.getHours();
889
           let nHour = now.getHours();
@@ -921,7 +922,9 @@ export class HushijiandanComponent implements OnInit {
921
         this.disabledHours = () => [];
922
         this.disabledHours = () => [];
922
         this.disabledMinutes = (hour) => [];
923
         this.disabledMinutes = (hour) => [];
923
       } else {
924
       } else {
924
-        this.yyTimeZy = addDays(this.yyTimeZy, -1);
925
+        console.log("狗血");
926
+        // this.yyTimeZy = addDays(this.yyTimeZy, -1);
927
+        this.yyTimeZy = null;
925
         this.disabledHours = () => {
928
         this.disabledHours = () => {
926
           let now = new Date();
929
           let now = new Date();
927
           let nHour = now.getHours();
930
           let nHour = now.getHours();