9b0ee30e by joe

1

1 parent fae0890f
...@@ -145,6 +145,13 @@ export default { ...@@ -145,6 +145,13 @@ export default {
145 let m = vals[0]; 145 let m = vals[0];
146 let d = vals[1]; 146 let d = vals[1];
147 result[m] = [d]; 147 result[m] = [d];
148 } else {
149 let mod = year % 4;
150 let d = mod == 0 || mod == 1 ? 4 : 5;
151 let vals = this.checkWeeken(4, d);
152 let m = vals[0];
153 d = vals[1];
154 result[m] = [d];
148 } 155 }
149 156
150 for (let index = 0; index < hkHolidayDefine.gl.length; index++) { 157 for (let index = 0; index < hkHolidayDefine.gl.length; index++) {
...@@ -607,7 +614,7 @@ export default { ...@@ -607,7 +614,7 @@ export default {
607 614
608 }, 615 },
609 calculateHolidays() { 616 calculateHolidays() {
610 617
611 }, 618 },
612 checkWeeken(m, d) { 619 checkWeeken(m, d) {
613 let year = this.year; 620 let year = this.year;
......