用更友好的交互替换alert

This commit is contained in:
奶爸
2019-12-11 18:03:49 +08:00
parent 661fd6e534
commit e6434e70f0
2 changed files with 16 additions and 3 deletions

View File

@@ -99,7 +99,7 @@
methods: {
secondToDate(s) {
var d = Math.floor(s / 3600 / 24);
var h = Math.floor(s / 3600);
var h = Math.floor(s / 3600 % 24);
var m = Math.floor((s / 60 % 60));
var s = Math.floor((s % 60));
return result = d + "天" + h + "小时" + m + "分钟" + s + "秒";