Merge branch 'dev-denzel' into develop
This commit is contained in:
commit
2dd150ca25
5 files changed
+108
-5
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 1.2 MiB |
@@ -42,6 +42,7 @@
|
||||
</h3>
|
||||
<v-row>
|
||||
<div class="v-col align-self-start">
|
||||
<VoteAnimation v-if="!question.file" />
|
||||
<v-img
|
||||
:src="question.file"
|
||||
class="cursor-pointer"
|
||||
@@ -145,9 +146,11 @@ import {axiosApiInstance, spravURL} from "@/utils/axios-api";
|
||||
import {computed, ref} from "vue";
|
||||
import {useAccountStore} from "@/store/AccountStore";
|
||||
import {checkremote} from "@/utils/universal_functions";
|
||||
import VoteAnimation from "@/components/vote/VoteAnimation.vue";
|
||||
|
||||
export default {
|
||||
name: 'CurrentVote',
|
||||
components: {VoteAnimation},
|
||||
methods: {
|
||||
checkremote,
|
||||
spravURL() {
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
<template>
|
||||
<v-container class="d-flex flex-column align-center">
|
||||
<div class="animation-container">
|
||||
<div class="ballot">
|
||||
<span class="ballot-text">Голос</span>
|
||||
</div>
|
||||
<div class="urn">
|
||||
<div class="slot"></div>
|
||||
</div>
|
||||
</div>
|
||||
</v-container>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
setup() {
|
||||
return {};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.animation-container {
|
||||
position: relative;
|
||||
width: 200px;
|
||||
height: 300px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: flex-end;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.ballot {
|
||||
position: absolute;
|
||||
width: 60px;
|
||||
height: 40px;
|
||||
background-color: #004D40;
|
||||
border-radius: 4px;
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
line-height: 40px;
|
||||
animation: dropBallot 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.ballot-text {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.urn {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 120px;
|
||||
height: 80px;
|
||||
background-color: #546E7A;
|
||||
border-top-left-radius: 10px;
|
||||
border-top-right-radius: 10px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.slot {
|
||||
width: 60px;
|
||||
height: 10px;
|
||||
background-color: #455A64;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
@keyframes dropBallot {
|
||||
0% {
|
||||
top: -50px;
|
||||
transform: rotate(0deg);
|
||||
opacity: 1;
|
||||
}
|
||||
40% {
|
||||
transform: rotate(15deg);
|
||||
}
|
||||
60% {
|
||||
top: 220px;
|
||||
transform: rotate(-10deg);
|
||||
opacity: 1;
|
||||
}
|
||||
100% {
|
||||
transform: rotate(0deg);
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
}
|
||||
</style>
|
||||
@@ -25,7 +25,7 @@
|
||||
<v-carousel-item
|
||||
v-for="(picture, index) in images"
|
||||
:key="index"
|
||||
:src="`${baseURL.slice(0, -1)}${picture}`">
|
||||
:src="images[index].length < 1 ? defaultImage : `${baseURL.slice(0, -1)}${picture}`">
|
||||
</v-carousel-item>
|
||||
</v-carousel>
|
||||
</v-col>
|
||||
@@ -104,6 +104,7 @@ import Timer from "@/components/UI/Timer.vue"
|
||||
import {baseURL} from "@/utils/axios-api";
|
||||
import {computed, ref} from 'vue'
|
||||
import {useAccountStore} from "@/store/AccountStore";
|
||||
import defaultImage from '../../assets/emblem.png'
|
||||
|
||||
export default {
|
||||
components: {Timer},
|
||||
@@ -135,7 +136,7 @@ export default {
|
||||
const user = accountStore.user;
|
||||
|
||||
const images = computed(() => {
|
||||
return props.voteCard.files.length > 0 ? props.voteCard.files : ['/media/defaultimg/vote.png']
|
||||
return props.voteCard.files.length > 0 ? props.voteCard.files : ['']
|
||||
})
|
||||
|
||||
const date = new Date();
|
||||
@@ -146,7 +147,7 @@ export default {
|
||||
isFinished.value = true;
|
||||
}
|
||||
|
||||
return {timeChange, baseURL, images, youSure, isFinished, user}
|
||||
return {timeChange, baseURL, images, youSure, isFinished, user, defaultImage}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -92,9 +92,16 @@
|
||||
<v-card-title class="text-red-darken-3">Не голосовали:</v-card-title>
|
||||
<v-card-item style="max-height: 60vh; overflow-y: auto;">
|
||||
<template v-for="(voters, department) in groupedByDepartment" :key="department">
|
||||
<v-list-item-subtitle>{{ department }}</v-list-item-subtitle>
|
||||
<v-list-item-title class="text-teal-darken-4">{{ department }}</v-list-item-title>
|
||||
<v-list-item v-for="(voter, voterIndex) in voters" :key="voterIndex">
|
||||
{{ voter.fio }}
|
||||
<!-- {{ voter.fio }}-->
|
||||
<p>
|
||||
<v-avatar :image="checkremote(`${spravURL()}${voter.login}.jpg`)"
|
||||
class="cursor-pointer"
|
||||
@click.stop="opendialog(checkremote(`${spravURL()}${voter.login}.jpg`))"/>
|
||||
<strong class="ml-4">{{ voter.fio }}</strong>
|
||||
(<small>{{ voter.post }}</small>) 👿
|
||||
</p>
|
||||
</v-list-item>
|
||||
</template>
|
||||
</v-card-item>
|
||||
|
||||
Reference in new issue
Block a user