Merge branch 'bd-dev' of 47.94.45.65:angelo/web-base-h5 into bd-test

This commit is contained in:
woody 2025-09-26 09:20:39 +08:00
commit e47d5dd3f7
1 changed files with 8 additions and 2 deletions

View File

@ -295,9 +295,14 @@ export default {
try {
//
await Promise.all([this.loadPeopleRanking(), this.loadAmountRanking()])
//
this.showPeopleRanking = true
if (this.peopleTopThree.length > 0) {
this.showPeopleRanking = true
} else if (this.amountTopThree.length > 0) {
this.showAmountRanking = true
} else {
this.$emit('onRankingComplete')
}
} catch (error) {
console.error('加载排行榜数据失败:', error)
uni.showToast({
@ -327,6 +332,7 @@ export default {
faker: true,
}
const res = await api.getTopPeople(params)
console.log(res.data)
if (res.code === 200 && res.data) {
//
const mappedData = res.data.map(item => ({