Commit fbb9f48b by crushh

Merge branch 'feature/游戏营销' into test

parents 3af61f0a e74f7068
......@@ -300,9 +300,11 @@ export default {
},
gameTime(val) {
if (val.length) {
console.log(val[1] - val[0]);
console.log((val[1] - val[0]) / (24 * 60 * 60 * 1000) + 1);
this.gameDays = (val[1] - val[0]) / (24 * 60 * 60 * 1000) + 1;
this.gameDays = (val[1] - val[0]) / (24 * 60 * 60 * 1000);
if (!this.isEdit) {
++this.gameDays;
}
console.log(this.gameDays);
this.gameDays = this.gameDays.toFixed();
}
}
......
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