Sfoglia il codice sorgente

修改跃进榜分数

aaa 3 anni fa
parent
commit
c30bb1a554
1 ha cambiato i file con 8 aggiunte e 2 eliminazioni
  1. 8 2
      src/views/home/person/rank.vue

+ 8 - 2
src/views/home/person/rank.vue

@@ -76,10 +76,14 @@
               />
               <div>{{ item.nickName || "未知" }}</div>
             </div>
-            <div class="userPonits">
+            <div class="userPonits" v-if="currentRankType=='ZongBang'">
               {{ item.totalPoints || 0 }}
               <span>积分</span>
             </div>
+             <div class="userPonits" v-if="currentRankType=='YueJinBang'">
+              {{ item.weeklyDeltaPoints || 0 }}
+              <span>积分</span>
+            </div>
           </div>
         </div>
       </van-cell>
@@ -106,7 +110,8 @@ export default {
       finished: false,
       rankListTopThree: [], // 前三名
       rankListOthers: [],
-      env: "pro"
+      env: "pro",
+      currentRankType: "ZongBang"
     };
   },
   created() {
@@ -168,6 +173,7 @@ export default {
     },
     onLoad() {},
     rootChange(index) {
+      this.currentRankType = this.rankList[index].type;
       this.getRankListFun(this.rankList[index].type);
     }
   }