|
@@ -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);
|
|
|
}
|
|
|
}
|