Compare commits
No commits in common. "e47d5dd3f7ea7d2a7a8eaba8525671404717b489" and "3ca3a82479dfdbb78fd1559480f3fff80ed04a39" have entirely different histories.
e47d5dd3f7
...
3ca3a82479
|
|
@ -295,14 +295,9 @@ export default {
|
||||||
try {
|
try {
|
||||||
// 并行加载两个排行榜数据
|
// 并行加载两个排行榜数据
|
||||||
await Promise.all([this.loadPeopleRanking(), this.loadAmountRanking()])
|
await Promise.all([this.loadPeopleRanking(), this.loadAmountRanking()])
|
||||||
|
|
||||||
// 先显示人数排行榜
|
// 先显示人数排行榜
|
||||||
if (this.peopleTopThree.length > 0) {
|
this.showPeopleRanking = true
|
||||||
this.showPeopleRanking = true
|
|
||||||
} else if (this.amountTopThree.length > 0) {
|
|
||||||
this.showAmountRanking = true
|
|
||||||
} else {
|
|
||||||
this.$emit('onRankingComplete')
|
|
||||||
}
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('加载排行榜数据失败:', error)
|
console.error('加载排行榜数据失败:', error)
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|
@ -332,7 +327,6 @@ export default {
|
||||||
faker: true,
|
faker: true,
|
||||||
}
|
}
|
||||||
const res = await api.getTopPeople(params)
|
const res = await api.getTopPeople(params)
|
||||||
console.log(res.data)
|
|
||||||
if (res.code === 200 && res.data) {
|
if (res.code === 200 && res.data) {
|
||||||
// 数据字段映射
|
// 数据字段映射
|
||||||
const mappedData = res.data.map(item => ({
|
const mappedData = res.data.map(item => ({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue