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

1

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