fix(ranking): 关闭人数排行后判断金额排行是否有数据
This commit is contained in:
parent
6b1169ea43
commit
6e93dcdde3
|
@ -384,10 +384,13 @@ export default {
|
||||||
// 关闭人数排行榜,显示金额排行榜
|
// 关闭人数排行榜,显示金额排行榜
|
||||||
closePeopleRanking() {
|
closePeopleRanking() {
|
||||||
this.showPeopleRanking = false
|
this.showPeopleRanking = false
|
||||||
// 延迟显示金额排行榜,让关闭动画完成
|
if (this.amountTopThree.length > 0) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.showAmountRanking = true
|
this.showAmountRanking = true
|
||||||
}, 300)
|
}, 300)
|
||||||
|
} else {
|
||||||
|
this.$emit('onRankingComplete')
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// 关闭金额排行榜
|
// 关闭金额排行榜
|
||||||
|
|
Loading…
Reference in New Issue