Compare commits
	
		
			2 Commits
		
	
	
		
			3ca3a82479
			...
			e47d5dd3f7
		
	
	| Author | SHA1 | Date | 
|---|---|---|
| 
							
							
								 | 
						e47d5dd3f7 | |
| 
							
							
								 | 
						6b1169ea43 | 
| 
						 | 
				
			
			@ -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 => ({
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue