mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 15:36:43 +08:00
【2022版学平险三款产品】学平险的指定生效日期需要根据这个规则调整一下,改为当前时间为7月3号
This commit is contained in:
@@ -11,7 +11,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getAfterDays: function(days) {
|
getAfterDays: function(days) {
|
||||||
//获取“多少天数”之后的时间 例如28天后 即days=28
|
//获取“多少天数”之后的时间 例如28天后 即days=28
|
||||||
let currentTime = new Date('2022-07-02').getTime()
|
let currentTime = new Date('2022-07-03').getTime()
|
||||||
return new Date(Number(currentTime) + 1000 * 60 * 60 * 24 * days)
|
return new Date(Number(currentTime) + 1000 * 60 * 60 * 24 * days)
|
||||||
},
|
},
|
||||||
isLeapYear: function(year) {
|
isLeapYear: function(year) {
|
||||||
@@ -32,7 +32,7 @@ export default {
|
|||||||
//date1结束时间
|
//date1结束时间
|
||||||
let date1 = new Date(Date_end);
|
let date1 = new Date(Date_end);
|
||||||
//date2当前时间
|
//date2当前时间
|
||||||
let date2 = new Date('2022-07-02');
|
let date2 = new Date('2022-07-03');
|
||||||
date1 = new Date(date1.getFullYear(), date1.getMonth(), date1.getDate());
|
date1 = new Date(date1.getFullYear(), date1.getMonth(), date1.getDate());
|
||||||
date2 = new Date(date2.getFullYear(), date2.getMonth(), date2.getDate());
|
date2 = new Date(date2.getFullYear(), date2.getMonth(), date2.getDate());
|
||||||
const diff = date1.getTime() - date2.getTime(); //目标时间减去当前时间
|
const diff = date1.getTime() - date2.getTime(); //目标时间减去当前时间
|
||||||
|
|||||||
Reference in New Issue
Block a user