Commit 2add1b27 authored by 华国豪's avatar 华国豪 🙄

1

parent 51025a3d
......@@ -34,7 +34,7 @@
.Ranking .rank-box .item {
width: 9rem;
}
.Ranking .rank-box .item .head {
position: relative;
width: 5rem;
......@@ -53,15 +53,12 @@
}
.Ranking .rank-box .item .head .user-img {
width: 7rem;
height: 7rem;
width: 5rem;
height: 5rem;
border-radius: 50%;
}
.Ranking .rank-box .item .body {
background: url(/static/image/gamerank/tiao.png);
background-repeat: no-repeat;
background-size: 100% 100%;
width: 60px;
margin: 2rem auto;
height: 292px;
......
......@@ -20,7 +20,7 @@
</div>
</template>
<script>
<script>
export default {
name: 'Ranking',
props: {
......
......@@ -1073,6 +1073,10 @@ export default {
height: data.length - index
})
})
let max = this.rankingList[0].rank
this.rankingList.map(x=>{
x.height = x.rank / max * 100
})
}
},
initStatus() {
......
......@@ -78,7 +78,7 @@
</div>
<div class="hd-game-btn-container" v-show="!showCount && !noReady && !showThrityCount">
<div class="hd-game-btn" @click="StartGame()">
<i class="iconfont icon-go"></i>
<i class="iconfont icon-go"></i>
<span>开始</span>
</div>
<div class="hd-game-btn" v-if="gameOverState || (!showCount && !noReady)" @click="RestGame">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment