|
|
@@ -12,15 +12,15 @@
|
|
|
<span>卡路里</span>
|
|
|
</div>
|
|
|
<ul>
|
|
|
- <li v-for="(s,i) in rt[2].Result" :class="[{ 'box animate__animated animate__flipInX': Listate[i].state }]">
|
|
|
+ <li v-for="(s,i) in calcTodayRank" :class="[{ 'box animate__animated animate__flipInX': Listate[i].state }]">
|
|
|
<div class="num">{{ i + 1 }}</div>
|
|
|
<img :class="[{'headImg':true},{'girl':s.Sex == 1}]" :src="s.Head" alt="" v-if="s.Head">
|
|
|
<img class="headImg" v-bind:src="require('../static/img/people/flyhead.png')" alt="学生头像" v-if="!s.Head">
|
|
|
<span>{{ s.UserName }}</span>
|
|
|
- <img class="crIcon" v-bind:src="require('../assets/imgs/wait/CR.svg')" alt="">
|
|
|
+ <img class="crIcon" v-if="i == 0" v-bind:src="require('../assets/imgs/wait/CR.svg')" alt="">
|
|
|
<em>{{ s.Values }}</em>
|
|
|
</li>
|
|
|
- <li v-if="rt[2].Result == ''">
|
|
|
+ <li v-if="calcTodayRank == ''">
|
|
|
<i>还没有排行记录哟~</i>
|
|
|
</li>
|
|
|
</ul>
|
|
|
@@ -41,7 +41,7 @@
|
|
|
<!-- hero 英雄榜-->
|
|
|
<h5>英雄榜</h5>
|
|
|
<ul>
|
|
|
- <li v-for="(s,i) in bottom[1].Result">
|
|
|
+ <li v-for="s in Heros">
|
|
|
<div class="person">
|
|
|
<img :class="[{'headImg':true},{'girl':s.Sex == 1}]" :src="s.Head" alt="" v-if="s.Head">
|
|
|
<img class="headImg" v-bind:src="require('../static/img/people/flyhead.png')" alt="学生头像" v-if="!s.Head">
|
|
|
@@ -56,7 +56,7 @@
|
|
|
<em>场馆新纪录</em>
|
|
|
</span>
|
|
|
</li>
|
|
|
- <li v-if="rt == ''">
|
|
|
+ <li v-if="Heros == ''">
|
|
|
<i>还没有排行记录哟~</i>
|
|
|
</li>
|
|
|
</ul>
|
|
|
@@ -72,15 +72,15 @@
|
|
|
<span>C K</span>
|
|
|
</div>
|
|
|
<ul>
|
|
|
- <li v-for="(s,i) in rt[3].Result" :class="[{ 'box animate__animated animate__flipInX': Listate[i].state }]">
|
|
|
+ <li v-for="(s,i) in CKTodayRank" :class="[{ 'box animate__animated animate__flipInX': Listate[i].state }]">
|
|
|
<div class="num">{{ i + 1 }}</div>
|
|
|
<img :class="[{'headImg':true},{'girl':s.Sex == 1}]" :src="s.Head" alt="" v-if="s.Head">
|
|
|
<img class="headImg" v-bind:src="require('../static/img/people/flyhead.png')" alt="学生头像" v-if="!s.Head">
|
|
|
<span>{{ s.UserName }}</span>
|
|
|
- <img class="crIcon" v-bind:src="require('../assets/imgs/wait/CR.svg')" alt="">
|
|
|
+ <img class="crIcon" v-if="i == 0" v-bind:src="require('../assets/imgs/wait/CR.svg')" alt="">
|
|
|
<em>{{ s.Values }}</em>
|
|
|
</li>
|
|
|
- <li v-if="rt[3].Result == ''">
|
|
|
+ <li v-if="CKTodayRank == ''">
|
|
|
<i>还没有排行记录哟~</i>
|
|
|
</li>
|
|
|
</ul>
|
|
|
@@ -97,15 +97,15 @@
|
|
|
<span>卡路里</span>
|
|
|
</div>
|
|
|
<ul>
|
|
|
- <li v-for="(s,i) in rt[0].Result" :class="[{ 'box animate__animated animate__flipInX': Listate[i].state }]">
|
|
|
- <div class="num">{{ i + 1 }}</div>
|
|
|
+ <li v-for="(s,t) in calcMouthRank" :class="[{ 'box animate__animated animate__flipInX': Listate[t].state }]">
|
|
|
+ <div class="num">{{ t + 1 }}</div>
|
|
|
<img :class="[{'headImg':true},{'girl':s.Sex == 1}]" :src="s.Head" alt="" v-if="s.Head">
|
|
|
<img class="headImg" v-bind:src="require('../static/img/people/flyhead.png')" alt="学生头像" v-if="!s.Head">
|
|
|
<span>{{ s.UserName }}</span>
|
|
|
- <img class="crIcon" v-bind:src="require('../assets/imgs/wait/CR.svg')" alt="">
|
|
|
+ <img class="crIcon" v-if="t == 0" v-bind:src="require('../assets/imgs/wait/CR.svg')" alt="">
|
|
|
<em>{{ s.Values }}</em>
|
|
|
</li>
|
|
|
- <li v-if="rt[0].Result == ''">
|
|
|
+ <li v-if="calcMouthRank == ''">
|
|
|
<i>还没有排行记录哟~</i>
|
|
|
</li>
|
|
|
</ul>
|
|
|
@@ -126,7 +126,7 @@
|
|
|
<!-- 最佳会员-->
|
|
|
<h5>最佳会员</h5>
|
|
|
<ul>
|
|
|
- <li v-for="(s,index) in bottom[1].Result">
|
|
|
+ <li v-for="(s,index) in CKtoper">
|
|
|
<div class="person">
|
|
|
<img :class="[{'headImg':true},{'girl':s.Sex == 1}]" :src="s.Head" alt="" v-if="s.Head">
|
|
|
<img class="headImg" v-bind:src="require('../static/img/people/flyhead.png')" alt="学生头像" v-if="!s.Head">
|
|
|
@@ -151,15 +151,15 @@
|
|
|
<span>C K</span>
|
|
|
</div>
|
|
|
<ul>
|
|
|
- <li v-for="(s,i) in rt[1].Result" :class="[{ 'box animate__animated animate__flipInX': Listate[i].state }]">
|
|
|
+ <li v-for="(s,i) in CKMonthRank" :class="[{ 'box animate__animated animate__flipInX': Listate[i].state }]">
|
|
|
<div class="num">{{ i + 1 }}</div>
|
|
|
<img :class="[{'headImg':true},{'girl':s.Sex == 1}]" :src="s.Head" alt="" v-if="s.Head">
|
|
|
<img class="headImg" v-bind:src="require('../static/img/people/flyhead.png')" alt="学生头像" v-if="!s.Head">
|
|
|
<span>{{ s.UserName }}</span>
|
|
|
- <img class="crIcon" v-bind:src="require('../assets/imgs/wait/CR.svg')" alt="">
|
|
|
+ <img class="crIcon" v-if="i == 0" v-bind:src="require('../assets/imgs/wait/CR.svg')" alt="">
|
|
|
<em>{{ s.Values }}</em>
|
|
|
</li>
|
|
|
- <li v-if="rt[1].Result == ''">
|
|
|
+ <li v-if="CKMonthRank == ''">
|
|
|
<i>还没有排行记录哟~</i>
|
|
|
</li>
|
|
|
</ul>
|
|
|
@@ -219,18 +219,24 @@ export default {
|
|
|
],
|
|
|
rt: [],
|
|
|
bottom: [],
|
|
|
+ calcTodayRank: [],
|
|
|
+ CKTodayRank: [],
|
|
|
+ calcMouthRank: [],
|
|
|
+ CKMonthRank: [],
|
|
|
+ Heros: [],
|
|
|
+ CKtoper: [],
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
-
|
|
|
this.init();
|
|
|
if (this.pageTimer) {
|
|
|
clearInterval(this.pageTimer);
|
|
|
} else {
|
|
|
this.timer = setInterval(() => {
|
|
|
this.page = !this.page;
|
|
|
- // this.cardPlay();
|
|
|
- }, 10000)
|
|
|
+ this.init();
|
|
|
+ this.cardPlay();
|
|
|
+ }, 30000)
|
|
|
}
|
|
|
this.cardPlay();
|
|
|
},
|
|
|
@@ -259,13 +265,6 @@ export default {
|
|
|
this.GetHerosRankingQuery();
|
|
|
this.GetCalorieStatsQuery();
|
|
|
this.GetUserRankingQuery();
|
|
|
-
|
|
|
- this.waitTimer = setInterval(() => {
|
|
|
- this.curgetClassStat();
|
|
|
- this.GetHerosRankingQuery();
|
|
|
- this.GetCalorieStatsQuery();
|
|
|
- this.GetUserRankingQuery();
|
|
|
- }, 5000);
|
|
|
},
|
|
|
cardPlay() {
|
|
|
let that = this;
|
|
|
@@ -273,9 +272,8 @@ export default {
|
|
|
that.Listate.map(function (t) {
|
|
|
t.state = false;
|
|
|
})
|
|
|
- let timeScope = 400;
|
|
|
+ let timeScope = 600;
|
|
|
let timeLong;
|
|
|
- let row;
|
|
|
for (let i = 0; i < 8; i++) {
|
|
|
timeLong = parseInt(i * timeScope);
|
|
|
that.timer = setTimeout(() => { //设置延迟执行
|
|
|
@@ -323,13 +321,12 @@ export default {
|
|
|
eqSn: localStorage.eqSn,
|
|
|
dispNum: 3
|
|
|
};
|
|
|
- console.log(331);
|
|
|
let postdata = qs.stringify(param);
|
|
|
HerosRankingQuery(postdata).then(res => {
|
|
|
let json = res;
|
|
|
if (json.Code == 0) {
|
|
|
- that.bottom = json.Rs;
|
|
|
- console.log(that.bottom);
|
|
|
+ that.Heros = json.Rs[0].Result;
|
|
|
+ that.CKtoper = json.Rs[1].Result;
|
|
|
} else {
|
|
|
if (json.Code == 4002) {
|
|
|
} else {
|
|
|
@@ -378,7 +375,11 @@ export default {
|
|
|
UserRankingQuery(postdata).then(res => {
|
|
|
let json = res;
|
|
|
if (json.Code == 0) {
|
|
|
- that.rt = json.Rs;
|
|
|
+ // that.rt = json.Rs;
|
|
|
+ that.calcTodayRank = json.Rs[2].Result;
|
|
|
+ that.CKTodayRank = json.Rs[3].Result;
|
|
|
+ that.calcMouthRank = json.Rs[0].Result;
|
|
|
+ that.CKMonthRank = json.Rs[1].Result;
|
|
|
} else {
|
|
|
if (json.Code == 4002) {
|
|
|
} else {
|
|
|
@@ -387,8 +388,6 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- playSound() {
|
|
|
- },
|
|
|
},
|
|
|
components: {
|
|
|
Headside
|
|
|
@@ -512,7 +511,7 @@ $yellow: #FFEB50;
|
|
|
width: 0.95rem;
|
|
|
float: right;
|
|
|
text-align: left;
|
|
|
- font-style: normal;
|
|
|
+ font-style: italic;
|
|
|
font-weight: bold;
|
|
|
color: $yellow;
|
|
|
line-height: 0.65rem;
|
|
|
@@ -664,7 +663,7 @@ $yellow: #FFEB50;
|
|
|
@include cube;
|
|
|
position: relative;
|
|
|
top: -0.2rem;
|
|
|
- width: 80%;
|
|
|
+ width: 0.8rem;
|
|
|
text-align: center;
|
|
|
font-size: 0.2rem;
|
|
|
color: white;
|