123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835 |
- <template>
-
- <div>
- <banners-zh v-if="language.value == 'CN'"></banners-zh>
- <banners-en v-if="language.value == 'EN'"></banners-en>
- <banners-fr v-if="language.value == 'FR'"></banners-fr>
- <banners-ru v-if="language.value == 'RU'"></banners-ru>
- <!-- 顶部图片 -->
- <div class="topimg">
- <img src="@/assets/ballot/未标题-6_画板 1.png" alt="" />
- <!-- <div class="backButton" @click="toHome">
- <img src="@/assets/ballot/编组 16.png" alt="">
- </div> -->
- </div>
- <!-- 选择区域 -->
- <div class="body-info">
- <div class="select-info">
- <el-select v-model="language.value" @change="getChange">
- <el-option
- v-for="(item, index) in options"
- :key="index"
- :label="item.label"
- :value="item.value"
- >{{ item.label }}
- </el-option>
- </el-select>
- </div>
- <div v-if="language.value == 'CN'" class="title-info" :title="'议 案'">
- 议 案
- </div>
- <div v-if="language.value == 'EN'" class="title-info" :title="'Proposal'">
- Proposal
- </div>
- <div
- v-if="language.value == 'FR'"
- class="title-info"
- :title="'Proposition'"
- >
- Proposition
- </div>
- <div
- v-if="language.value == 'RU'"
- class="title-info"
- :title="'Proposition'"
- >
- Предложения
- </div>
- <div class="main-info" v-if="language.value == 'CN'">
- <div class="list-info">
- <div
- class="text-info"
- v-for="(item, index) in firstList"
- :key="index"
- >
- <div class="text-detail" :title="item.title">
- {{ index + 1 }}. {{ item.title }}
- </div>
- <div class="btn-info" @click="upInfp(item)" v-if="!item.voted">
- 投票
- </div>
- <div class="btn-detail" @click="againInfp(item)" v-else>
- 投票已完成
- </div>
- </div>
- <div class="text-info">
- <div
- class="text-detail"
- :title="'全球能源互联网发展合作组织第二届理事会理事候选名单的议案'"
- >
- 5. 全球能源互联网发展合作组织第二届理事会理事候选名单的议案
- </div>
- <div class="btn-info" @click="getMain(lastList)" v-if="!lastList">
- 投票
- </div>
- <div class="btn-detail" @click="getMained(lastList)" v-else>
- 投票已完成
- </div>
- </div>
- <!-- <div class="line-text"></div> -->
- </div>
- </div>
- <div class="main-info" v-if="language.value == 'EN'">
- <div class="list-info">
- <div
- class="text-info"
- v-for="(item, index) in firstList"
- :key="index"
- >
- <div class="text-detail" :title="item.titleEn">
- {{ index + 1 }}. {{ item.titleEn }}
- </div>
- <div class="btn-info" @click="upInfp(item)" v-if="!item.voted">
- Vote
- </div>
- <div class="btn-detail" @click="againInfp(item)" v-else>
- Voting Complete
- </div>
- </div>
- <div class="text-info">
- <div
- class="text-detail"
- :title="'Candidates for the Second Council of GEIDCO'"
- >
- 5. Candidates for the Second Council of
- GEIDCO
- </div>
- <div class="btn-info" @click="getMain(lastList)" v-if="!lastList">
- Vote
- </div>
- <div class="btn-detail" @click="getMained(lastList)" v-else>
- Voting Complete
- </div>
- </div>
- <!-- <div class="line-text"></div> -->
- </div>
- </div>
- <div class="main-info" v-if="language.value == 'FR'">
- <div class="list-info">
- <div
- class="text-info"
- v-for="(item, index) in firstList"
- :key="index"
- >
- <div class="text-detail1" :title="item.titleFr">
- {{ index + 1 }}. {{ item.titleFr }}
- </div>
- <div class="btn-info" @click="upInfp(item)" v-if="!item.voted">
- Voter
- </div>
- <div class="btn-detail" @click="againInfp(item)" v-else>
- Vote terminé
- </div>
- </div>
- <div class="text-info">
- <div
- class="text-detail1"
- :title="'Candidatures des membres du deuxième Conseilde la GEIDCO'"
- >
- 5. Candidatures des membres du deuxième
- Conseil de la GEIDCO
- </div>
- <div class="btn-info" @click="getMain(lastList)" v-if="!lastList">
- Voter
- </div>
- <div class="btn-detail" @click="getMained(lastList)" v-else>
- Vote terminé
- </div>
- </div>
- <!-- <div class="line-text"></div> -->
- </div>
- </div>
- <div class="main-info" v-if="language.value == 'RU'">
- <div class="list-info">
- <div
- class="text-info"
- v-for="(item, index) in firstList"
- :key="index"
- >
- <div class="text-detail1" :title="item.titleRu">
- {{ index + 1 }}. {{ item.titleRu }}
- </div>
- <div class="btn-info" @click="upInfp(item)" v-if="!item.voted">
- Проголосовать
- </div>
- <div class="btn-detail-fr" @click="againInfp(item)" v-else>
- Голосование завершено
- </div>
- </div>
- <div class="text-info">
- <div
- class="text-detail1"
- :title="'Кандидаты на должность директоров совета второго созыва GEIDCO'"
- >
- 5. Кандидаты на должность директоров совета
- второго созыва GEIDCO
- </div>
- <div class="btn-info" @click="getMain(lastList)" v-if="!lastList">
- Проголосовать
- </div>
- <div class="btn-detail-fr" @click="getMained(lastList)" v-else>
- Голосование завершено
- </div>
- </div>
- <!-- <div class="line-text"></div> -->
- </div>
- </div>
- </div>
- <!-- 底部图片 -->
- <footer-zh v-if="language.value == 'CN'"></footer-zh>
- <footer-en v-if="language.value == 'EN'"></footer-en>
- <footer-fr v-if="language.value == 'FR'"></footer-fr>
- <footer-ru v-if="language.value == 'RU'"></footer-ru>
- </div>
- </template>
- <script>
- import footerZh from '@/components/footersNewZH'
- import footerEn from '@/components/footersNewEN'
- import footerFr from '@/components/footersNewFR'
- import footerRu from '@/components/footersNewRU'
- import bannersZh from '@/components/ballotTopBannerZH'
- import bannersEn from '@/components/ballotTopBannerEN'
- import bannersFr from '@/components/ballotTopBannerFR'
- import bannersRu from '@/components/ballotTopBannerRU'
- import { getMeetingGeidcoMatters } from '@/api/vote/council'
- export default {
- name: 'ballotDrawingBoardPalette',
- components: {
- footerZh,
- footerEn,
- footerFr,
- footerRu,
- bannersZh,
- bannersEn,
- bannersFr,
- bannersRu,
- },
- data() {
- return {
- lastList: '',
- firstList: [{}, {}, {}, {}],
- options: [
- {
- value: 'CN',
- label: '中文',
- },
- {
- value: 'EN',
- label: 'English',
- },
- {
- value: 'FR',
- label: 'Français',
- },
- {
- value: 'RU',
- label: 'Русский',
- },
- ],
- language: {
- value: 'CN',
- },
- }
- },
- mounted() {
- let user = JSON.parse(sessionStorage.getItem('mettingUser'))
- console.log(user)
- if (user == null) {
- this.$router.push({ path: 'home' })
- } else {
- console.log('你好')
- }
- let language = sessionStorage.getItem('language')
- this.language.value = language
- this.initData()
- },
- methods: {
- getChange() {
- let language = this.language.value
- sessionStorage.setItem('language', language)
- },
- initData() {
- let id = JSON.parse(sessionStorage.getItem('mettingUser')).id
- console.log(id, '用户id')
- let params = {
- meetingGeidcoUserId: id,
- language: this.value,
- }
- getMeetingGeidcoMatters(params).then((res) => {
- console.log(res)
- this.firstList = res.data.meetingGeidcoMatters
- this.lastList = res.data.meetingGeidcoLeader
- })
- },
- // 返回首页
- toHome() {
- this.$router.push({ path: 'home' })
- },
- // 投票详情页
- upInfp(item) {
- console.log(item)
- sessionStorage.setItem('item', JSON.stringify(item))
- this.$router.push({ path: 'ballotBillDirectory' })
- },
- againInfp(item) {
- sessionStorage.setItem('item', JSON.stringify(item))
- this.$router.push({ path: 'ballotBillDirectoryDetails' })
- },
- getMain() {
- this.$router.push({ path: 'ballotBillDirectoryMany' })
- },
- getMained() {
- this.$router.push({ path: 'ballotBillDirectoryInfo' })
- },
- },
- }
- </script>
- <style scoped>
- @media screen and (min-width: 1080px) {
- * {
- padding: 0;
- margin: 0;
- box-sizing: border-box;
- /* vertical-align: text-top; */
- }
- html,
- body,
- #app {
- width: 100%;
- height: 100%;
- }
- .topimg {
- width: 100%;
- /* height: 450px; */
- background-color: #cdebf7;
- }
- .topimg > img {
- width: 100%;
- padding: 0;
- position: relative;
- }
- .backButton {
- width: 134px;
- height: 41px;
- position: absolute;
- top: 46px;
- right: 380px;
- }
- .backButton:hover {
- cursor: pointer;
- }
- .backButton > img {
- width: 100%;
- height: 100%;
- }
- .body-info {
- padding: 0;
- width: 100%;
- height: 960px;
- background-color: #f2f2f2;
- }
- .main-info {
- width: 60%;
- height: 719px;
- margin: 0 auto;
- transform: translateY(20px);
- background-color: #ffffff;
- position: relative;
- }
- .select-info {
- z-index: 997;
- width: 10%;
- transform: translateX(680%) translateY(150%);
- }
- .title-info {
- width: 30%;
- font-size: 36px;
- font-family: AlibabaPuHuiTiB;
- color: #333333;
- text-align: center;
- background-color: #f2f2f2;
- font-weight: 700;
- margin: 0 auto 40px;
- z-index: 99;
- transform: translateY(20px);
- }
- .list-info {
- width: 100%;
- position: absolute;
- top: 10px;
- left: 69px;
- }
- .text-info {
- width: 100%;
- height: 126px;
- line-height: 126px;
- display: flex;
- padding-right: 143px;
- justify-content: space-between;
- }
- .line-text {
- width: 100%;
- height: 1px;
- border-top: 1px dashed #979797;
- transform: translateX(-69px);
- }
- .text-detail {
- width: 75%;
- height: 40px;
- font-size: 20px;
- transform: translateY(30px);
- font-family: AlibabaPuHuiTiR;
- color: #666666;
- line-height: 20px;
- word-wrap: break-word;
- overflow: hidden;
- }
- .text-detail1 {
- width: 75%;
- height: 40px;
- font-size: 20px;
- transform: translateY(30px);
- font-family: AlibabaPuHuiTiR;
- color: #666666;
- line-height: 20px;
- word-wrap: break-word;
- overflow: hidden;
- }
- .btn-info {
- width: 200px;
- height: 36px;
- line-height: 36px;
- background-color: #4dc6ff;
- border-radius: 6px;
- transform: translateY(34px);
- text-align: center;
- font-size: 18px;
- font-family: AlibabaPuHuiTiR;
- color: #ffffff;
- word-wrap: break-word;
- overflow: hidden;
- }
- .btn-info:hover {
- cursor: pointer;
- }
- .btn-detail {
- width: 200px;
- height: 40px;
- line-height: 40px;
- background-color: #6dd400;
- border-radius: 6px;
- transform: translateY(34px);
- text-align: center;
- font-size: 18px;
- font-family: AlibabaPuHuiTiR;
- color: #ffffff;
- word-wrap: break-word;
- overflow: hidden;
- }
- .btn-detail-fr {
- width: 200px;
- height: 40px;
- line-height: 20px;
- background-color: #6dd400;
- border-radius: 6px;
- transform: translateY(34px);
- text-align: center;
- font-size: 18px;
- font-family: AlibabaPuHuiTiR;
- color: #ffffff;
- word-wrap: break-word;
- overflow: hidden;
- }
- .btn-detail:hover {
- cursor: pointer;
- }
- .btn-detail-fr:hover {
- cursor: pointer;
- }
- }
- @media screen and (min-width: 768px) and (max-width: 1079px) {
- * {
- padding: 0;
- margin: 0;
- box-sizing: border-box;
- /* vertical-align: text-top; */
- }
- html,
- body,
- #app {
- width: 100%;
- height: 100%;
- }
- .topimg {
- width: 100%;
- /* height: 450px; */
- background-color: #cdebf7;
- }
- .topimg > img {
- width: 100%;
- padding: 0;
- position: relative;
- }
- .backButton {
- width: 134px;
- height: 41px;
- position: absolute;
- top: 46px;
- right: 380px;
- }
- .backButton:hover {
- cursor: pointer;
- }
- .backButton > img {
- width: 100%;
- height: 100%;
- }
- .body-info {
- padding: 0;
- width: 100%;
- height: 960px;
- background-color: #f2f2f2;
- }
- .main-info {
- width: 60%;
- height: 719px;
- margin: 0 auto;
- transform: translateY(20px);
- background-color: #ffffff;
- position: relative;
- }
- .select-info {
- z-index: 997;
- width: 10%;
- transform: translateX(680%) translateY(150%);
- }
- .title-info {
- width: 30%;
- font-size: 36px;
- font-family: AlibabaPuHuiTiB;
- color: #333333;
- text-align: center;
- background-color: #f2f2f2;
- font-weight: 700;
- margin: 0 auto 40px;
- z-index: 99;
- transform: translateY(20px);
- }
- .list-info {
- width: 100%;
- position: absolute;
- top: 10px;
- left: 69px;
- }
- .text-info {
- width: 100%;
- height: 126px;
- line-height: 126px;
- display: flex;
- padding-right: 143px;
- justify-content: space-between;
- }
- .line-text {
- width: 100%;
- height: 1px;
- border-top: 1px dashed #979797;
- transform: translateX(-69px);
- }
- .text-detail {
- width: 65%;
- height: 40px;
- font-size: 20px;
- transform: translateY(30px);
- font-family: AlibabaPuHuiTiR;
- color: #666666;
- line-height: 20px;
- word-wrap: break-word;
- overflow: hidden;
- }
- .text-detail1 {
- width: 65%;
- height: 40px;
- font-size: 20px;
- transform: translateY(30px);
- font-family: AlibabaPuHuiTiR;
- color: #666666;
- line-height: 20px;
- word-wrap: break-word;
- overflow: hidden;
- }
- .btn-info {
- width: 200px;
- height: 36px;
- line-height: 36px;
- background-color: #4dc6ff;
- border-radius: 6px;
- transform: translateY(34px);
- text-align: center;
- font-size: 18px;
- font-family: AlibabaPuHuiTiR;
- color: #ffffff;
- word-wrap: break-word;
- overflow: hidden;
- }
- .btn-info:hover {
- cursor: pointer;
- }
- .btn-detail {
- width: 200px;
- height: 40px;
- line-height: 40px;
- background-color: #6dd400;
- border-radius: 6px;
- transform: translateY(34px);
- text-align: center;
- font-size: 18px;
- font-family: AlibabaPuHuiTiR;
- color: #ffffff;
- word-wrap: break-word;
- overflow: hidden;
- }
- .btn-detail-fr {
- width: 200px;
- height: 40px;
- line-height: 20px;
- background-color: #6dd400;
- border-radius: 6px;
- transform: translateY(34px);
- text-align: center;
- font-size: 18px;
- font-family: AlibabaPuHuiTiR;
- color: #ffffff;
- word-wrap: break-word;
- overflow: hidden;
- }
- .btn-detail:hover {
- cursor: pointer;
- }
- .btn-detail-fr:hover {
- cursor: pointer;
- }
- }
- @media screen and (max-width: 767px) {
- * {
- padding: 0;
- margin: 0;
- box-sizing: border-box;
- /* vertical-align: text-top; */
- }
- html,
- body,
- #app {
- width: 100%;
- height: 100%;
- }
- .topimg {
- width: 100%;
- /* height: 450px; */
- background-color: #cdebf7;
- }
- .topimg > img {
- width: 100%;
- padding: 0;
- position: relative;
- }
- .backButton {
- width: 134px;
- height: 41px;
- position: absolute;
- top: 46px;
- right: 380px;
- }
- .backButton:hover {
- cursor: pointer;
- }
- .backButton > img {
- width: 100%;
- height: 100%;
- }
- .body-info {
- padding: 0;
- width: 100%;
- height: 960px;
- background-color: #f2f2f2;
- }
- .main-info {
- width: 60%;
- height: 719px;
- margin: 0 auto;
- transform: translateY(20px);
- background-color: #ffffff;
- position: relative;
- }
- .select-info {
- z-index: 997;
- width: 10%;
- transform: translateX(680%) translateY(150%);
- }
- .title-info {
- width: 30%;
- font-size: 36px;
- font-family: AlibabaPuHuiTiB;
- color: #333333;
- text-align: center;
- background-color: #f2f2f2;
- font-weight: 700;
- margin: 0 auto 40px;
- z-index: 99;
- transform: translateY(20px);
- }
- .list-info {
- width: 100%;
- position: absolute;
- top: 10px;
- left: 69px;
- }
- .text-info {
- width: 100%;
- height: 126px;
- line-height: 126px;
- display: flex;
- padding-right: 143px;
- justify-content: space-between;
- }
- .line-text {
- width: 100%;
- height: 1px;
- border-top: 1px dashed #979797;
- transform: translateX(-69px);
- }
- .text-detail {
- width: 65%;
- height: 40px;
- font-size: 20px;
- transform: translateY(30px);
- font-family: AlibabaPuHuiTiR;
- color: #666666;
- line-height: 20px;
- word-wrap: break-word;
- overflow: hidden;
- }
- .text-detail1 {
- width: 65%;
- height: 40px;
- font-size: 20px;
- transform: translateY(30px);
- font-family: AlibabaPuHuiTiR;
- color: #666666;
- line-height: 20px;
- word-wrap: break-word;
- overflow: hidden;
- }
- .btn-info {
- width: 200px;
- height: 36px;
- line-height: 36px;
- background-color: #4dc6ff;
- border-radius: 6px;
- transform: translateY(34px);
- text-align: center;
- font-size: 18px;
- font-family: AlibabaPuHuiTiR;
- color: #ffffff;
- word-wrap: break-word;
- overflow: hidden;
- }
- .btn-info:hover {
- cursor: pointer;
- }
- .btn-detail {
- width: 200px;
- height: 40px;
- line-height: 40px;
- background-color: #6dd400;
- border-radius: 6px;
- transform: translateY(34px);
- text-align: center;
- font-size: 18px;
- font-family: AlibabaPuHuiTiR;
- color: #ffffff;
- word-wrap: break-word;
- overflow: hidden;
- }
- .btn-detail-fr {
- width: 200px;
- height: 40px;
- line-height: 20px;
- background-color: #6dd400;
- border-radius: 6px;
- transform: translateY(34px);
- text-align: center;
- font-size: 18px;
- font-family: AlibabaPuHuiTiR;
- color: #ffffff;
- word-wrap: break-word;
- overflow: hidden;
- }
- .btn-detail:hover {
- cursor: pointer;
- }
- .btn-detail-fr:hover {
- cursor: pointer;
- }
- }
- </style>
|