|
@@ -205,7 +205,7 @@
|
|
|
import axios from 'axios'
|
|
|
import Cookies from 'js-cookie'
|
|
|
import { Toast } from 'vant';
|
|
|
-import { isBrowser, appType, appVersionCode, formatSecondsAsTime } from '../utils/help.js'
|
|
|
+import { isBrowser, appType, appVersionCode, formatSecondsAsDaysOrTime } from '../utils/help.js'
|
|
|
import FontAmount from '../components/FontAmount.vue'
|
|
|
|
|
|
var moment = require('moment');
|
|
@@ -417,7 +417,7 @@ export default {
|
|
|
let endTime = moment(end_time + 5000)
|
|
|
let downTime = (endTime - time) || 0
|
|
|
if (downTime > 0) {
|
|
|
- this.validity = formatSecondsAsTime(downTime / 1000);
|
|
|
+ this.validity = formatSecondsAsDaysOrTime(downTime / 1000);
|
|
|
} else {
|
|
|
this.validity = `00:00:00`
|
|
|
this.getDetail(() => {
|