|
@ -19,7 +19,6 @@ function getToken() { |
|
|
} |
|
|
} |
|
|
getToken(); |
|
|
getToken(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//候选人 |
|
|
//候选人 |
|
|
const candidates = ref([]) |
|
|
const candidates = ref([]) |
|
|
const first = ref(); |
|
|
const first = ref(); |
|
@ -174,7 +173,7 @@ function vote(code) { |
|
|
<!-- 头像框 --> |
|
|
<!-- 头像框 --> |
|
|
<div class="avatar-box2"></div> |
|
|
<div class="avatar-box2"></div> |
|
|
<!-- 头像图片 --> |
|
|
<!-- 头像图片 --> |
|
|
<img class="cover2" src="../assets/image.png"> |
|
|
|
|
|
|
|
|
<img class="cover2" :src="second.avatar"> |
|
|
<!-- 投票按钮 --> |
|
|
<!-- 投票按钮 --> |
|
|
<div class="one-button2" v-if="second.voted == false" @click="vote(second.jwCode)">投票</div> |
|
|
<div class="one-button2" v-if="second.voted == false" @click="vote(second.jwCode)">投票</div> |
|
|
<div class="buttoned2" v-else @click="vote(second.jwCode)">已投票</div> |
|
|
<div class="buttoned2" v-else @click="vote(second.jwCode)">已投票</div> |
|
@ -188,7 +187,7 @@ function vote(code) { |
|
|
<!-- 头像框 --> |
|
|
<!-- 头像框 --> |
|
|
<div class="avatar-box1"></div> |
|
|
<div class="avatar-box1"></div> |
|
|
<!-- 头像图片 --> |
|
|
<!-- 头像图片 --> |
|
|
<img class="cover1" src="../assets/image.png"> |
|
|
|
|
|
|
|
|
<img class="cover1" :src="first.avatar"> |
|
|
<!-- 投票按钮 --> |
|
|
<!-- 投票按钮 --> |
|
|
<div class="one-button1" v-if="first.voted == false" @click="vote(first.jwCode)">投票</div> |
|
|
<div class="one-button1" v-if="first.voted == false" @click="vote(first.jwCode)">投票</div> |
|
|
<div class="buttoned1" v-else @click="vote(first.jwCode)">已投票</div> |
|
|
<div class="buttoned1" v-else @click="vote(first.jwCode)">已投票</div> |
|
@ -202,7 +201,7 @@ function vote(code) { |
|
|
<!-- 头像框 --> |
|
|
<!-- 头像框 --> |
|
|
<div class="avatar-box3"></div> |
|
|
<div class="avatar-box3"></div> |
|
|
<!-- 头像图片 --> |
|
|
<!-- 头像图片 --> |
|
|
<img class="cover3" src="../assets/image.png"> |
|
|
|
|
|
|
|
|
<img class="cover3" :src="third.avatar"> |
|
|
<!-- 投票按钮 --> |
|
|
<!-- 投票按钮 --> |
|
|
<div class="one-button3" v-if="third.voted == false" @click="vote(third.jwCode)">投票</div> |
|
|
<div class="one-button3" v-if="third.voted == false" @click="vote(third.jwCode)">投票</div> |
|
|
<div class="buttoned3" v-else @click="vote(third.jwCode)">已投票</div> |
|
|
<div class="buttoned3" v-else @click="vote(third.jwCode)">已投票</div> |
|
@ -220,7 +219,7 @@ function vote(code) { |
|
|
<!-- 排名 --> |
|
|
<!-- 排名 --> |
|
|
<div class="num">{{ index + 4 }}</div> |
|
|
<div class="num">{{ index + 4 }}</div> |
|
|
<!-- 头像 --> |
|
|
<!-- 头像 --> |
|
|
<img class="list-avatar" src="../assets/image.png"> |
|
|
|
|
|
|
|
|
<img class="list-avatar" :src="backCandidate.avatar"> |
|
|
<!-- 投票数 --> |
|
|
<!-- 投票数 --> |
|
|
<div class="votes">已有{{ backCandidate.votes }}人投票</div> |
|
|
<div class="votes">已有{{ backCandidate.votes }}人投票</div> |
|
|
<!-- 投票按钮 --> |
|
|
<!-- 投票按钮 --> |
|
@ -454,7 +453,7 @@ function vote(code) { |
|
|
.cover1 { |
|
|
.cover1 { |
|
|
position: absolute; |
|
|
position: absolute; |
|
|
|
|
|
|
|
|
left: 40.9%; |
|
|
|
|
|
|
|
|
left: 40.8%; |
|
|
top: -8%; |
|
|
top: -8%; |
|
|
width: 19.1%; |
|
|
width: 19.1%; |
|
|
height: 9%; |
|
|
height: 9%; |
|
|