This commit is contained in:
na.guo
2020-08-25 16:15:50 +08:00
2 changed files with 10 additions and 4 deletions

View File

@@ -18,7 +18,7 @@ export default [
name: 'congratulationList',
component: congratulationList,
meta: {
title: '大单',
title: '大单',
index: 2
}
},
@@ -27,7 +27,7 @@ export default [
name: 'congratulationPreview',
component: congratulationPreview,
meta: {
title: '大单',
title: '大单',
index: 3
}
}

View File

@@ -72,7 +72,7 @@ export default {
deadline() {
let now = new Date()
let deadlineTime = now.getTime() - 1000 * 3600
return dateUtil.formatDate(new Date(deadlineTime), 'yyyy-MM-dd HH:mm')
return dateUtil.formatDate(new Date(deadlineTime), 'yyyy-MM-dd HH:mm:ss')
}
},
created() {
@@ -100,7 +100,13 @@ export default {
this.showData.achievement.ranking = result.top
this.showData.achievement.previousGap = result.xcbf
this.showData.achievement.rankingBb = result.topBB
this.showData.achievement.previousCbbbGap = result.xccbbb
// 后端精度处理有问题, 让前端先直接截取处理
if (result.xccbbb.includes('.')) {
let nums = result.xccbbb.split('.')
this.showData.achievement.previousCbbbGap = `${nums[0]}.${nums[1].substring(0, 2)}`
} else {
this.showData.achievement.previousCbbbGap = result.xccbbb
}
this.$toast.clear()
},
nextStep() {