Commit 324dc31c by 穆启卓

1

parent 27e6b20e
...@@ -151,7 +151,7 @@ export default { ...@@ -151,7 +151,7 @@ export default {
}, },
// 计算格式化结束日期 // 计算格式化结束日期
calcDate() { calcDate() {
const endDate = new Date(this.startTimeStamp * 1000 + (86400000 * this.partakeDayList[this.partakeDayIndex].days)); const endDate = new Date(this.startTimeStamp * 1000 + (86400000 * (this.partakeDayList[this.partakeDayIndex].days - 1)));
this.endTime = (endDate.getMonth() + 1) + '月' + endDate.getDate() + '日'; this.endTime = (endDate.getMonth() + 1) + '月' + endDate.getDate() + '日';
}, },
// 返回上一页 // 返回上一页
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment