voteHome.vue 81 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080
  1. <template>
  2. <div>
  3. <headers></headers>
  4. <search :informationTotal="informationTotal"></search>
  5. <ul class="module-classify-list">
  6. <div class="module-classify-list" style="padding: 0px">
  7. <!-- <div class="broadcast" v-if="newSum!=0"> -->
  8. <!-- 信息播报 -->
  9. <!-- <div class="testtest_one" :class="{'testtest_tow':broadcastFlag_one,'testtest_three':broadcastFlag_tow,}">
  10. <span style="color:orange">New </span> <span style="color:white">{{$i18n.locale=='zh'?'信息播报':'Information broadcast'}} : </span> -->
  11. <!-- 播报滚动的情况 -->
  12. <!-- <div class="testtest_one scroll-up" ref="scroll" style="display:inline-block" v-if="scrollArr.length>1">
  13. <ul style="width:300px;padding-top:2.5px">
  14. <li style="height:100%;width:100%" v-for="(item,index) in broadcastList" :key="index">
  15. <template v-if="item.number != 0">
  16. <span style="color:white">{{item.title}}:</span> <span style="color:orange;margin-right:10px">{{'+'+item.number}}</span>
  17. </template>
  18. </li>
  19. </ul>
  20. <ul style="width:300px;padding-top:2.5px">
  21. <li style="height:100%;width:100%" v-for="(item,index) in broadcastList" :key="index">
  22. <template v-if="item.number != 0">
  23. <span style="color:white">{{item.title}}:</span> <span style="color:orange;margin-right:10px">{{'+'+item.number}}</span>
  24. </template>
  25. </li>
  26. </ul>
  27. </div> -->
  28. <!-- 播报不滚动的情况 -->
  29. <!-- <div class="testtest_one scroll-up" style="display:inline-block" v-if="scrollArr.length<2">
  30. <ul style="width:300px;padding-top:2.5px">
  31. <li style="height:100%;width:100%" v-for="(item,index) in broadcastList" :key="index">
  32. <template v-if="item.number != 0">
  33. <span style="color:white">{{item.title}}:</span> <span style="color:orange;margin-right:10px">{{'+'+item.number}}</span>
  34. </template>
  35. </li>
  36. </ul>
  37. </div>
  38. </div> -->
  39. <!-- 信息播报 -->
  40. <!-- </div> -->
  41. <li
  42. v-for="(item, index, trueindex) in initData"
  43. :key="item.value + index"
  44. @mouseover="moduleClassifyHover(index)"
  45. @click="toViewImg(item), changeIcon(trueindex)"
  46. style="cursor: pointer"
  47. @mouseout="moduleClassifyHover(-1)"
  48. >
  49. <div
  50. class="module-classify-info"
  51. :class="
  52. moduleClassify != index
  53. ? ''
  54. : item.dataitem.length
  55. ? 'module-classify-info-active2'
  56. : 'module-classify-info-active'
  57. "
  58. >
  59. <!-- <div class='new' v-if="newIcon[trueindex]&&newIcon[trueindex]!=0">New</div> -->
  60. <div
  61. class="new"
  62. v-if="
  63. $i18n.locale == 'zh'
  64. ? newIcon[trueindex] > mynewIcon[trueindex]
  65. : newIcon[trueindex] > mynewIconEn[trueindex]
  66. "
  67. >
  68. New
  69. </div>
  70. <div class="module-classify-icon">
  71. <img :src="getIconUrl(item.icon + '3')" alt class="middle" />
  72. </div>
  73. <p class="module-classify-title" @click="toView(item.value, {})">
  74. {{ $t(item.label) }}
  75. </p>
  76. <div class="module-classify-line"></div>
  77. </div>
  78. <div
  79. class="module-classify-children"
  80. :class="$i18n.locale == 'en' ? 'en' : ''"
  81. >
  82. <template v-for="(i, index) in item.dataitem">
  83. <div
  84. class="cursor"
  85. :key="index"
  86. style="padding-left: 30px; width: 100%"
  87. @click="toView(i.value, i.json ? i.json : '', item, i)"
  88. >
  89. ● {{ $t(i.label) }}
  90. </div>
  91. </template>
  92. </div>
  93. </li>
  94. </div>
  95. </ul>
  96. <div class="latest-news-content" style="position: relative">
  97. <img
  98. class="most-watched cursor"
  99. @click="canClick && toViews('ConferenceDetail', paramKey)"
  100. :src="homeImg"
  101. alt=""
  102. />
  103. <!-- <img class="most-watched cursor"
  104. @click="toViews('ConferenceDetail','1333254258275622912')"
  105. src="@/assets/img/home/meeting_20210120.png"
  106. alt=""
  107. v-if="$i18n.locale!=='zh'"> -->
  108. <ul class="latest-news-list">
  109. <li style="position: relative" v-for="(item, num) in news" :key="num">
  110. <div style="text-align: center">
  111. <img
  112. :src="getIconUrl(item.icon)"
  113. width="44"
  114. height="44"
  115. alt=""
  116. class="cursor"
  117. style="margin-top: 42px; margin-bottom: 22px"
  118. @click="toViewChange(num)"
  119. />
  120. <p
  121. style="
  122. font-size: 26px;
  123. line-height: 26px;
  124. color: #333;
  125. font-weight: 500;
  126. "
  127. >
  128. {{ $t(item.label) }}
  129. </p>
  130. </div>
  131. <ul>
  132. <li v-for="(i, index) in item.newItem" :key="index">
  133. <p
  134. v-if="num != 2"
  135. class="tdLabel1 cursor"
  136. style="
  137. width: 95%;
  138. overflow: hidden;
  139. text-overflow: ellipsis;
  140. white-space: nowrap;
  141. display: inline-block;
  142. "
  143. @click="
  144. viewChange(
  145. i.baseEntityId ? i.baseEntityId : i.projectId,
  146. index,
  147. num
  148. )
  149. "
  150. >
  151. <span class="spot"></span>
  152. {{ $t(i.title ? i.title : i.projectName) }}
  153. </p>
  154. <!-- <p v-if="num==0" class="tdLabel2" style="width: 25%;text-align: center;float: right;">
  155. {{formatDate(i.publishDate)}}
  156. </p> -->
  157. <!-- <p v-if="num==1" class="tdLabel2" style="width: 25%;text-align: center;float: right;">
  158. {{formatDate(i.createDate)}}
  159. </p> -->
  160. <p
  161. v-if="num === 2"
  162. class="tdLabel1 cursor"
  163. @click="viewChange(i.id, index, num)"
  164. >
  165. <span class="spot"></span>
  166. {{
  167. $i18n.locale.toUpperCase() == 'ZH'
  168. ? i.meetingName
  169. : i.meetingNameEn
  170. }}
  171. </p>
  172. </li>
  173. </ul>
  174. <p class="latest-news-more">
  175. <span v-if="item.newItem.length > 0" @click="toViewChange(num)"
  176. >+</span
  177. >
  178. </p>
  179. </li>
  180. </ul>
  181. </div>
  182. <div
  183. :class="$i18n.locale == 'zh' ? 'quick-entry-list' : 'quick-entry-list2'"
  184. >
  185. <div @click="toView('developmentCooperation')">
  186. <!-- <span @click="toView('developmentCooperation')"> <i class="el-icon-folder-remove"></i> {{$t('common.DevelopmentCooperationForum')}} </span> -->
  187. </div>
  188. <div @click="toView('onlineMeeting')">
  189. <!-- <span @click="toView('onlineMeeting')"> <i class="el-icon-data-analysis"></i> {{ $t('common.OnlineMeeting')}} </span> -->
  190. </div>
  191. </div>
  192. <!-- 理事会投票入口
  193. <div v-if="showHomeEntrance == true" class="voteBallot">
  194. 中文状态入口
  195. <img v-if="$i18n.locale == 'zh'" @click="clickVote()" :src="'api/file/pub/' + voteUrl[0].bannerUrl" alt=""
  196. style="width: 100%; height: 100%" />
  197. 英文状态入口
  198. <img v-if="$i18n.locale == 'en'" @click="clickVote()" :src="'api/file/pub/' + voteUrl[1].bannerUrl" alt=""
  199. style="width: 100%; height: 100%" />
  200. </div>-->
  201. <!-- 投票入口 -->
  202. <!-- <div class="ballot-info">
  203. <div class="ballot-login" @click="getLogin"></div>
  204. </div> -->
  205. <!-- 登录 -->
  206. <!-- <div class="ballot-details" v-if="ballotLanguage">
  207.  <div class="user-box" v-if="languageInfo.value == 'CN'">
  208. <div class="login-top">
  209. <div class="select-details-info">
  210. <el-select v-model="languageInfo.value" class="select-select">
  211. <el-option v-for="(item, index) in optionLists" :key="index" :label="item.label"
  212. :value="item.value">{{ item.label }}
  213. </el-option>
  214. </el-select>
  215. </div>
  216. <div class="login-text">用户登录</div>
  217. <div class="close-pic" @click="closeInfo">
  218. <img src="@/assets/ballot/close-l.png" alt="">
  219. </div>
  220. </div>
  221. <div class="user-info">
  222. <el-form :model="ruleForm" :rules="rules" ref="ruleForm">
  223. <el-form-item class="user-id" prop="id">
  224. <div class="user-text">ID:</div>
  225. <el-input v-model="ruleForm.id" placeholder="请输入登录ID" autocomplete="off"></el-input>
  226. </el-form-item>
  227. <el-form-item class="user-pws" prop="password">
  228. <div class="user-text">密码:</div>
  229. <el-input placeholder="请输入登录密码" v-model="ruleForm.password" show-password></el-input>
  230. </el-form-item>
  231. <el-form-item class="user-yzm" prop="voteCode">
  232. <div class="user-text">验证码:</div>
  233. <el-input placeholder="请输入验证码" v-model="ruleForm.voteCode"
  234. style="width:73%; margin-left: -23%;"></el-input>
  235. <div class="verify">
  236. <img :src="invitedUrl" alt="" @click="refreshCaptchaNew" />
  237. </div>
  238. <div class="voteWarn">{{ VerifyText }}</div>
  239. </el-form-item>
  240. <div class="user-login" @click="userLoginBallot('ruleForm')">
  241. 登&nbsp;&nbsp;&nbsp;录
  242. </div>
  243. <div class="user-change" @click="changePassword">修改密码</div>
  244. </el-form>
  245. </div>
  246. <div class="btm-pic">
  247. <img src="@/assets/ballot/未标题-2.png" alt="">
  248. </div>
  249. </div>
  250.  <div class="user-box" v-if="languageInfo.value == 'EN'">
  251. <div class="login-top">
  252. <div class="select-details-info">
  253. <el-select v-model="languageInfo.value" class="select-select">
  254. <el-option v-for="(item, index) in optionLists" :key="index" :label="item.label"
  255. :value="item.value">{{ item.label }}
  256. </el-option>
  257. </el-select>
  258. </div>
  259. <div class="login-text">User Login</div>
  260. <div class="close-pic" @click="closeInfo">
  261. <img src="@/assets/ballot/close-l.png" alt="">
  262. </div>
  263. </div>
  264. <div class="user-info">
  265. <el-form :model="ruleForm" :rules="rules" ref="ruleForm">
  266. <el-form-item class="user-id" prop="id">
  267. <div class="user-text">ID:</div>
  268. <el-input v-model="ruleForm.id" placeholder="Please enter your login ID" autocomplete="off">
  269. </el-input>
  270. </el-form-item>
  271. <el-form-item class="user-pws" prop="password">
  272. <div class="user-text">Password:</div>
  273. <el-input placeholder="Please enter your password" v-model="ruleForm.password"
  274. show-password></el-input>
  275. </el-form-item>
  276. <el-form-item class="user-yzm" prop="voteCode">
  277. <div class="user-text">Verification Code:</div>
  278. <el-input placeholder="Please enter verification code" v-model="ruleForm.voteCode"
  279. style="width:73%; margin-left: -23%;"></el-input>
  280. <div class="verify">
  281. <img :src="invitedUrl" alt="" @click="refreshCaptchaNew" />
  282. </div>
  283. <div class="voteWarn">{{ VerifyText }}</div>
  284. </el-form-item>
  285. <div class="user-login" @click="userLoginBallot('ruleForm')">
  286. Log in
  287. </div>
  288. <div class="user-change" @click="changePassword">修改密码</div>
  289. </el-form>
  290. </div>
  291. <div class="btm-pic">
  292. <img src="@/assets/ballot/未标题-2.png" alt="">
  293. </div>
  294. </div>
  295.  <div class="user-box" v-if="languageInfo.value == 'FR'">
  296. <div class="login-top">
  297. <div class="select-details-info">
  298. <el-select v-model="languageInfo.value" class="select-select">
  299. <el-option v-for="(item, index) in optionLists" :key="index" :label="item.label"
  300. :value="item.value">{{ item.label }}
  301. </el-option>
  302. </el-select>
  303. </div>
  304. <div class="login-text">Connexion d'utilisateur</div>
  305. <div class="close-pic" @click="closeInfo">
  306. <img src="@/assets/ballot/close-l.png" alt="">
  307. </div>
  308. </div>
  309. <div class="user-info">
  310. <el-form :model="ruleForm" :rules="rules" ref="ruleForm">
  311. <el-form-item class="user-id" prop="id">
  312. <div class="user-text">ID:</div>
  313. <el-input v-model="ruleForm.id" placeholder="Veuillez saisir votre identifiant de connexion"
  314. autocomplete="off"></el-input>
  315. </el-form-item>
  316. <el-form-item class="user-pws" prop="password">
  317. <div class="user-text">Mot de passe:</div>
  318. <el-input placeholder="Veuillez saisir votre mot de passe" v-model="ruleForm.password"
  319. show-password></el-input>
  320. </el-form-item>
  321. <el-form-item class="user-yzm" prop="voteCode">
  322. <div class="user-text">Code de vérification:</div>
  323. <el-input placeholder="Veuillez saisir le code de vérification" v-model="ruleForm.voteCode"
  324. style="width:73%; margin-left: -23%;"></el-input>
  325. <div class="verify">
  326. <img :src="invitedUrl" alt="" @click="refreshCaptchaNew" />
  327. </div>
  328. <div class="voteWarn">{{ VerifyText }}</div>
  329. </el-form-item>
  330. <div class="user-login" @click="userLoginBallot('ruleForm')">
  331. Se connecter
  332. </div>
  333. <div class="user-change" @click="changePassword">修改密码</div>
  334. </el-form>
  335. </div>
  336. <div class="btm-pic">
  337. <img src="@/assets/ballot/未标题-2.png" alt="">
  338. </div>
  339. </div>
  340.  <div class="user-box" v-if="languageInfo.value == 'RU'">
  341. <div class="login-top">
  342. <div class="select-details-info">
  343. <el-select v-model="languageInfo.value" class="select-select">
  344. <el-option v-for="(item, index) in optionLists" :key="index" :label="item.label"
  345. :value="item.value">{{ item.label }}
  346. </el-option>
  347. </el-select>
  348. </div>
  349. <div class="login-text">Вход</div>
  350. <div class="close-pic" @click="closeInfo">
  351. <img src="@/assets/ballot/close-l.png" alt="">
  352. </div>
  353. </div>
  354. <div class="user-info">
  355. <el-form :model="ruleForm" :rules="rules" ref="ruleForm">
  356. <el-form-item class="user-id" prop="id">
  357. <div class="user-text">ID:</div>
  358. <el-input v-model="ruleForm.id" placeholder="Введите ваш логин" autocomplete="off">
  359. </el-input>
  360. </el-form-item>
  361. <el-form-item class="user-pws" prop="password">
  362. <div class="user-text">Пароль:</div>
  363. <el-input placeholder="Введите ваш пароль" v-model="ruleForm.password" show-password>
  364. </el-input>
  365. </el-form-item>
  366. <el-form-item class="user-yzm" prop="voteCode">
  367. <div class="user-text">Код проверки:</div>
  368. <el-input placeholder="Введите код проверки" v-model="ruleForm.voteCode"
  369. style="width:73%; margin-left: -23%;"></el-input>
  370. <div class="verify">
  371. <img :src="invitedUrl" alt="" @click="refreshCaptchaNew" />
  372. </div>
  373. <div class="voteWarn">{{ VerifyText }}</div>
  374. </el-form-item>
  375. <div class="user-login" @click="userLoginBallot('ruleForm')">
  376. Войти
  377. </div>
  378. <div class="user-change" @click="changePassword">修改密码</div>
  379. </el-form>
  380. </div>
  381. <div class="btm-pic">
  382. <img src="@/assets/ballot/未标题-2.png" alt="">
  383. </div>
  384. </div>
  385. </div> -->
  386. <!-- 修改密码 -->
  387. <div>
  388. <!-- <div class="change-details" v-if="changeBallot">
  389. <div class="change-box1">
  390. <div class="change-top">
  391. <div class="change-box">
  392. <el-select v-model="languageInfo.value" class="change-change">
  393. <el-option v-for="(item, index) in optionLists" :key="index" :label="item.label"
  394. :value="item.value">
  395. </el-option>
  396. </el-select>
  397. </div>
  398. <div class="change-text">修改密码</div>
  399. <div class="change-pic" @click="changeCloseInfo">
  400. <img src="@/assets/ballot/close-l.png" alt="">
  401. </div>
  402. </div>
  403. <div class="change-user-info">
  404. <div class="change-item-id">
  405. <div class="change-title">ID:</div>
  406. <el-input v-model="changeList.id" placeholder="请输入ID"></el-input>
  407. </div>
  408. <div class="change-user-id">
  409. <div class="change-title">原密码:</div>
  410. <el-input v-model="changeList.oldPassword" placeholder="请输入原密码" show-password></el-input>
  411. </div>
  412. <div class="change-user-pws">
  413. <div class="change-title">新密码:</div>
  414. <el-input placeholder="请输入新密码" v-model="changeList.password" show-password></el-input>
  415. </div>
  416. <div class="change-user-yzm">
  417. <div class="change-title">新密码:</div>
  418. <el-input placeholder="请再次输入新密码" v-model="changeList.newPassword" show-password></el-input>
  419. </div>
  420. <div class="user-change1">密码规则:</div>
  421. <div class="user-long">1.&nbsp;&nbsp;密码长度:8-20位</div>
  422. <div class="user-style">
  423. <div class="user-style1">2.&nbsp;&nbsp;密码格式:</div>
  424. <div class="user-style2">大小写英文字母、数字、符合至少三项<br /> 混合,并且符合安全规定。</div>
  425. </div>
  426. <div class="user-change-pic" @click="sureChange">
  427. 确认修改
  428. </div>
  429. </div>
  430. <div class="change-btm-pic">
  431. <img src="@/assets/ballot/未标题-2.png" alt="">
  432. </div>
  433. </div>
  434. </div> -->
  435. </div>
  436. <!-- 在线客服右侧浮窗-->
  437. <div
  438. style="
  439. position: fixed;
  440. left: 50%;
  441. top: 80%;
  442. transform: translate(595px, -50%);
  443. width: 70px;
  444. background: #fff;
  445. box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.5);
  446. "
  447. class="realTimeInfo_scree"
  448. >
  449. <div
  450. style="
  451. width: 70px;
  452. height: 70px;
  453. background: #2a548c;
  454. text-align: center;
  455. font-size: 12px;
  456. color: #fff;
  457. "
  458. class="cursor"
  459. @click="toView('customerService')"
  460. >
  461. <img
  462. src="@/assets/img/home/footer/customerServiceexport@2x.png"
  463. alt=""
  464. style="width: 30px; margin-top: 10px"
  465. />
  466. <div>{{ $t('common.Online') }}</div>
  467. </div>
  468. <div
  469. style="
  470. width: 70px;
  471. height: 70px;
  472. text-align: center;
  473. font-size: 12px;
  474. color: #666;
  475. border-bottom: 1px solid rgba(241, 241, 241, 1);
  476. cursor: pointer;
  477. "
  478. @mouseover="mouseOver"
  479. @mouseleave="mouseLeave"
  480. >
  481. <img
  482. src="@/assets/img/home/footer/QRcodeexport@2x.png"
  483. alt=""
  484. style="width: 30px; margin-top: 10px"
  485. />
  486. <div>{{ $i18n.locale == 'zh' ? '手机网页版' : 'Mobile Web' }}</div>
  487. </div>
  488. <div
  489. ref="QRCode"
  490. id="qrcode"
  491. style="
  492. position: absolute;
  493. transform: translate(-120%, -50%);
  494. display: none;
  495. "
  496. ></div>
  497. <div
  498. style="
  499. width: 70px;
  500. height: 70px;
  501. text-align: center;
  502. font-size: 12px;
  503. color: #666;
  504. border-bottom: 1px solid rgba(241, 241, 241, 1);
  505. "
  506. class="cursor"
  507. @click="ShareChange"
  508. >
  509. <img
  510. src="@/assets/img/home/footer/rectangle@2x.png"
  511. alt=""
  512. style="width: 30px; margin-top: 10px"
  513. />
  514. <div>{{ $t('common.Share') }}</div>
  515. </div>
  516. <div
  517. style="
  518. width: 70px;
  519. height: 70px;
  520. text-align: center;
  521. font-size: 12px;
  522. color: #666;
  523. border-bottom: 1px solid rgba(241, 241, 241, 1);
  524. cursor: pointer;
  525. "
  526. @click="toView('appDownload')"
  527. >
  528. <img
  529. src="@/assets/img/home/footer/app.png"
  530. alt=""
  531. style="width: 30px; margin-top: 10px"
  532. />
  533. <div>{{ $t('common.appDownload') }}</div>
  534. </div>
  535. <!-- 首页跳转 -->
  536. <div
  537. style="
  538. width: 70px;
  539. height: 70px;
  540. text-align: center;
  541. font-size: 12px;
  542. color: #666;
  543. border-bottom: 1px solid rgba(241, 241, 241, 1);
  544. "
  545. class="cursor"
  546. @click="toView('home')"
  547. >
  548. <img
  549. src="@/assets/img/home/footer/home@2x.png"
  550. alt=""
  551. style="width: 30px; margin-top: 10px"
  552. />
  553. <div>{{ $t('common.Home') }}</div>
  554. </div>
  555. <div
  556. style="position: absolute; transform: translate(90%, -90%)"
  557. v-show="ShareNum"
  558. >
  559. <!-- <vshare ></vshare> -->
  560. <!-- <div class="share-component" data-sites="weibo,qzone,qq,wechat"></div> -->
  561. <share
  562. style="width: 84px; margin-bottom: 180px"
  563. :config="vshareConfig"
  564. ></share>
  565. </div>
  566. <div
  567. style="
  568. width: 70px;
  569. height: 70px;
  570. text-align: center;
  571. display: none;
  572. font-size: 12px;
  573. color: #666;
  574. border-bottom: 1px solid rgba(241, 241, 241, 1);
  575. "
  576. class="cursor"
  577. @click="toUp"
  578. id="toUp"
  579. >
  580. <img
  581. src="@/assets/img/home/footer/BackTopexport@2x.png"
  582. alt=""
  583. style="width: 30px; margin-top: 10px"
  584. />
  585. <div>{{ $t('common.Top') }}</div>
  586. </div>
  587. </div>
  588. <el-dialog
  589. width="50%"
  590. :visible.sync="detialPlayVideoVideo"
  591. @close="closePlay"
  592. >
  593. <player :video-url="videoUrl" :state="state"></player>
  594. </el-dialog>
  595. <el-dialog width="50%" :visible.sync="detialPlayVideoPdf">
  596. <div>
  597. <iframe
  598. width="100%"
  599. id="embed"
  600. height="600px"
  601. :src="src"
  602. frameborder="0"
  603. ></iframe>
  604. </div>
  605. </el-dialog>
  606. <footers></footers>
  607. <!-- 投票浮窗 -->
  608. <div class="mytest" v-if="voteflag">
  609. <i class="el-icon-circle-close" @click="voteoff()"></i>
  610. <img :src="'./api/file/pub/' + voteImg" alt="" @click="toVotelist()" />
  611. </div>
  612. <!-- 非洲活动飘窗 -->
  613. <!-- <div v-if="$i18n.locale == 'zh' ? true : false">-->
  614. <!-- <div class="africanActivity" v-if="activity">-->
  615. <!-- <i class="el-icon-circle-close" @click="voteoff1()"></i>-->
  616. <!-- <img src="@/assets/中文.png" alt="" @click="toVotelist1()" />-->
  617. <!-- </div>-->
  618. <!-- </div>-->
  619. <!-- <div v-else>-->
  620. <!-- <div class="africanActivity" v-if="activity">-->
  621. <!-- <i class="el-icon-circle-close" @click="voteoff1()"></i>-->
  622. <!-- <img src="@/assets/英文En.png" alt="" @click="toVotelist1()" />-->
  623. <!-- </div>-->
  624. <!-- </div>-->
  625. <!-- 广告栏浮窗-->
  626. <!-- 左对联-->
  627. <div
  628. class="advertise advertiseLeft"
  629. v-if="showLeftAdvertise && leftAdverList && leftAdverList.advPicUrl"
  630. >
  631. <img
  632. @click="toshowLink(leftAdverList, 'web_left_couplet')"
  633. :src="'./api/file/pub/' + leftAdverList.advPicUrl"
  634. alt=""
  635. style="width: 150px; height: 434px; display: block"
  636. />
  637. <!-- <img @click="toshowLink(leftAdverList[0].advPicLink)" v-else src="@/assets/img/home/advertise/adverRight.png" alt="" style="height: 100%">-->
  638. <div class="close1" @click="closeAdver(1)">
  639. x {{ $t('common.CloseAdvertise') }}
  640. </div>
  641. </div>
  642. <!-- 右对联-->
  643. <div
  644. class="advertise advertiseRight"
  645. v-if="showLeftAdvertise && rightAdverList && rightAdverList.advPicUrl"
  646. >
  647. <img
  648. @click="toshowLink(rightAdverList, 'web_right_couplet')"
  649. :src="'./api/file/pub/' + rightAdverList.advPicUrl"
  650. alt=""
  651. style="width: 100%; height: 100%"
  652. />
  653. <!-- <img @click="toshowLink(rightAdverList.advPicLink)" v-else src="@/assets/img/home/advertise/adverRight.png" alt="" style="height: 100%">-->
  654. <div class="close" @click="closeAdver(2)">
  655. x {{ $t('common.CloseAdvertise') }}
  656. </div>
  657. </div>
  658. <!-- 浮窗广告-->
  659. <div
  660. class="advertise advertiseUnderRight"
  661. v-if="showUnderRightAdver && UnderAdverList && UnderAdverList.advPicUrl"
  662. >
  663. <img
  664. @click="toshowLink(UnderAdverList, 'web_suspensio')"
  665. :src="'./api/file/pub/' + UnderAdverList.advPicUrl"
  666. alt=""
  667. style="width: 100%; height: 100%"
  668. />
  669. <!-- <img @click="toshowLink(UnderAdverList.advPicLink)" v-else src="@/assets/img/home/advertise/adverUnderRight.png" alt="" style="width: 100%">-->
  670. <div class="close" @click="closeAdver(3)">
  671. x {{ $t('common.CloseAdvertise') }}
  672. </div>
  673. </div>
  674. <!-- 投票邀请码和验证码 -->
  675. <el-dialog title="" :visible.sync="dialogFormVisible">
  676. <el-form :model="form">
  677. <el-form-item
  678. :label="$i18n.locale == 'zh' ? '投票码' : 'Voting code'"
  679. :label-width="formLabelWidth"
  680. >
  681. <el-input v-model="form.code" autocomplete="off"></el-input>
  682. <div class="voteWarn">{{ VoteText }}</div>
  683. </el-form-item>
  684. <el-form-item
  685. :label="$i18n.locale == 'zh' ? '验证码' : 'Verification code'"
  686. :label-width="formLabelWidth"
  687. style="position: relative"
  688. >
  689. <el-input
  690. v-model="form.verify"
  691. autocomplete="off"
  692. style="width: 50%"
  693. ></el-input>
  694. <div class="verify">
  695. <img :src="invitedUrl" alt="" @click="refreshCaptcha" />
  696. </div>
  697. <div class="voteWarn">{{ VerifyText }}</div>
  698. </el-form-item>
  699. </el-form>
  700. <div slot="footer" class="dialog-footer">
  701. <el-button @click="dialogFormVisible = false">{{
  702. $i18n.locale == 'zh' ? '取消' : 'cancel'
  703. }}</el-button>
  704. <el-button type="primary" @click="inviteEnter">{{
  705. $i18n.locale == 'zh' ? '确定' : 'confirm'
  706. }}</el-button>
  707. </div>
  708. </el-dialog>
  709. </div>
  710. </template>
  711. <script>
  712. import { goActivityTargetUrl } from '@/utils/urlConfig.js'
  713. import { getLatestInformationPortal } from '@/api/baseUnitView'
  714. import headers from '@/components/headerNew'
  715. //投票首页
  716. // import headers from "@/components/ballotHeader";
  717. import { BallotsLogin, BallotChanges } from '@/api/ballot/ballot'
  718. import HeaderItem from '@/components/headerItem'
  719. import editor from '@/components/dialog'
  720. import tabers from '@/components/taber'
  721. import search from '@/components/searchNew'
  722. import vshare from 'vshare'
  723. import Share from 'vue-social-share'
  724. import QRCode from 'qrcodejs2'
  725. import footers from '@/components/footersNew'
  726. import { getLatestBaseProjectViewPortal } from '@/api/project/baseProjectView'
  727. import { allInformationViewCount } from '@/api/information/information'
  728. import {
  729. getHomeImg,
  730. getLatestMeetingListPortal,
  731. getLatestMeetingListPortalEn,
  732. } from '@/api/meeting/meetingOutInfo'
  733. //用户投票状态查询方法引入
  734. import {
  735. getBannerUrls,
  736. getCouncilVoteSituation,
  737. getCouncilVoteSituationBeforeLogin,
  738. voteCodeVakidate,
  739. captchaValidate,
  740. } from '@/api/vote/council'
  741. // import {get} from "@/api/work/wtDeptWorkTaskInfo"; //注意引入
  742. import player from '@/components/Player'
  743. import pdf from 'vue-pdf'
  744. import { getActivityForVotes } from '@/api/vote/vote'
  745. import {
  746. advertisementTotals,
  747. advertisementEntitys,
  748. advertisementInfos,
  749. getAppAdvert,
  750. } from '@/api/operation/baseAdvertisement'
  751. //查询广告数据
  752. import { getCaptcha } from '@/api/user'
  753. import { getCaptchaNew } from '@/api/user'
  754. //各个功能日新增数
  755. import { getDataBroadcastInfos } from '@/api/dataBroadcastInfos'
  756. export default {
  757. name: 'Home',
  758. components: {
  759. headers,
  760. tabers,
  761. HeaderItem,
  762. search,
  763. footers,
  764. editor,
  765. vshare,
  766. Share,
  767. player,
  768. pdf,
  769. },
  770. data() {
  771. return {
  772. rules: {
  773. id: [{ required: true, message: '请输入用户ID', trigger: 'blur' }],
  774. password: [
  775. { required: true, message: '请输入用户密码', trigger: 'blur' },
  776. ],
  777. voteCode: [
  778. { required: true, message: '请输入验证码', trigger: 'blur' },
  779. ],
  780. },
  781. changeList: {
  782. id: undefined,
  783. oldPassword: undefined,
  784. password: undefined,
  785. newPassword: undefined,
  786. },
  787. //投票
  788. ballotLanguage: false,
  789. changeBallot: false,
  790. optionLists: [
  791. {
  792. value: 'CN',
  793. label: '中文',
  794. },
  795. {
  796. value: 'EN',
  797. label: 'English',
  798. },
  799. {
  800. value: 'FR',
  801. label: 'Français',
  802. },
  803. {
  804. value: 'RU',
  805. label: 'Русский',
  806. },
  807. ],
  808. languageInfo: {
  809. value: 'CN',
  810. },
  811. ruleForm: {
  812. id: '',
  813. password: '',
  814. voteCode: '',
  815. },
  816. activity: true,
  817. scrollArea: '',
  818. speed: 20,
  819. timer: null,
  820. delay: 1000,
  821. liHeight: '',
  822. //============================
  823. goActivityTargetUrl,
  824. moduleClassify: -1,
  825. dialogVisible: false,
  826. ShareNum: false,
  827. videoUrl: require('../assets/pdfAndVideo/video.mp4'),
  828. currentPage: 0, // pdf文件页码
  829. pageCount: 0, // pdf文件总页数
  830. fileType: 'pdf', // 文件类型
  831. src: null,
  832. pdfPage: 1,
  833. pageCount: 0,
  834. detialPlayVideoVideo: false,
  835. detialPlayVideoPdf: false,
  836. state: false,
  837. homeImg: '',
  838. paramKey: '',
  839. canClick: '',
  840. showLeftAdvertise: true,
  841. showUnderRightAdver: true,
  842. adverseList: [],
  843. rightAdverList: {},
  844. leftAdverList: {},
  845. UnderAdverList: {},
  846. leftUrl: '',
  847. rightUrl: '',
  848. UnderRightUrl: '',
  849. voteImg: '', //投票宣传图
  850. voteflag: false,
  851. voteTime: '', //投票时间
  852. whiteList: '', //白名单
  853. isWhiteList: '', //是否启用白名单
  854. loginAccount: '', //用户登录的账号
  855. params: {
  856. pageNo: 1,
  857. pageSize: 3,
  858. language: '',
  859. //0为默认排序,1为关注排序
  860. descStatus: 0,
  861. messageOpenType: 'Y',
  862. status: 1,
  863. },
  864. news: [
  865. {
  866. icon: 'new1',
  867. label: 'common.LatestNews',
  868. newItem: [],
  869. },
  870. {
  871. icon: 'project1',
  872. label: 'common.LatestProject',
  873. newItem: [],
  874. },
  875. {
  876. icon: 'meeting1',
  877. label: 'common.LatestMeeting',
  878. newItem: [],
  879. },
  880. ],
  881. initData: {
  882. data1: {
  883. label: 'common.ProjectResources',
  884. value: 'projectPresentation',
  885. icon: 'resources',
  886. dataitem: [
  887. // {
  888. // label: "common.Pre-planning",
  889. // value: "projectPresentation",
  890. // },
  891. // {
  892. // label: "common.ProjectShowcase",
  893. // value: "projectPresentation",
  894. // },
  895. // {
  896. // label: "common.EvaluationAnalysis",
  897. // value: "projectPresentation",
  898. // },
  899. // {
  900. // label: "common.MatchTracking",
  901. // value: "projectPresentation",
  902. // },
  903. ],
  904. },
  905. data2: {
  906. label: 'common.NewsData',
  907. icon: 'news',
  908. value: 'realTimeInfo1',
  909. dataitem: [
  910. // {
  911. // label: "common.Information",
  912. // value: "realTimeInfo",
  913. // json: "0",
  914. // },
  915. // {
  916. // label: "common.DataInformation",
  917. // value: "realTimeInfo",
  918. // json: "1",
  919. // },
  920. // {
  921. // label: "common.JournalInformation",
  922. // value: "realTimeInfo",
  923. // json: "2",
  924. // },
  925. ],
  926. },
  927. data3: {
  928. label: 'common.GlobalData',
  929. icon: 'data',
  930. value: 'realTimeInfo',
  931. dataitem: [
  932. // {
  933. // label: "common.ResearchResults",
  934. // value: "resourceSharing",
  935. // },
  936. // {
  937. // label: "common.ResearchResources",
  938. // value: "resourceSharing",
  939. // },
  940. // {
  941. // label: "common.ConferenceFacilities",
  942. // value: "resourceSharing",
  943. // },
  944. ],
  945. },
  946. data4: {
  947. label: 'common.CountryInformation',
  948. icon: 'country',
  949. value: 'countryInformation',
  950. dataitem: [
  951. // {
  952. // label: "common.Resources",
  953. // value: "countryInformation",
  954. // },
  955. // {
  956. // label: "common.EnergyDevelopmentPlanning",
  957. // value: "countryInformation",
  958. // },
  959. // {
  960. // label: "common.ProjectStatus",
  961. // value: "countryInformation",
  962. // },
  963. // {
  964. // label: "common.ProjectDevelopmentGuide",
  965. // value: "countryInformation",
  966. // },
  967. ],
  968. },
  969. data5: {
  970. icon: 'enterprise',
  971. label: 'common.EnterpriseShow',
  972. value: 'enterprise',
  973. dataitem: [
  974. // {
  975. // label: "common.CompanyProfile",
  976. // value: "enterprise",
  977. // },
  978. // {
  979. // label: "common.ProductInformation",
  980. // value: "enterprise",
  981. // },
  982. // {
  983. // label: "common.CoreTechnology",
  984. // value: "enterprise",
  985. // },
  986. // {
  987. // label: "common.ProjectPerformance",
  988. // value: "enterprise",
  989. // },
  990. ],
  991. },
  992. data6: {
  993. label: 'common.FinancialServices',
  994. icon: 'finance',
  995. value: 'financialServices',
  996. dataitem: [
  997. // {
  998. // label: "common.FinancialInstitutions",
  999. // value: "financialServices",
  1000. // },
  1001. // {
  1002. // label: "common.Fund",
  1003. // value: "financialServices",
  1004. // },
  1005. // {
  1006. // label: "common.Investment&FinancingCases",
  1007. // value: "financialServices",
  1008. // },
  1009. ],
  1010. },
  1011. data7: {
  1012. label: 'common.ThinkTankConsulting',
  1013. icon: 'ThinkTank',
  1014. value: 'thinkTankConsulting',
  1015. dataitem: [
  1016. // {
  1017. // label: "common.ThinkTankNews",
  1018. // value: "thinkTankConsulting",
  1019. // },
  1020. // {
  1021. // label: "common.ServiceScope",
  1022. // value: "thinkTankConsulting",
  1023. // },
  1024. // {
  1025. // label: "common.ProjectCase",
  1026. // value: "thinkTankConsulting",
  1027. // },
  1028. // {
  1029. // label: "common.WillingnessToCooperate",
  1030. // value: "thinkTankConsulting",
  1031. // },
  1032. ],
  1033. },
  1034. data8: {
  1035. label: 'common.CooperationNetwork',
  1036. icon: 'cooperation',
  1037. value: 'IntroductionMemberProfile',
  1038. dataitem: [
  1039. // {
  1040. // label: "common.MemberIntroduction",
  1041. // value: "IntroductionMemberProfile",
  1042. // json: "member",
  1043. // },
  1044. // {
  1045. // label: "common.AllianceIntroduction",
  1046. // value: "IntroductionMemberProfile",
  1047. // json: "union",
  1048. // },
  1049. // {
  1050. // label: "common.CooperativeUnitIntroduction",
  1051. // value: "IntroductionMemberProfile",
  1052. // json: "cooperation",
  1053. // },
  1054. // {
  1055. // label: "common.CustomService",
  1056. // value: "IntroductionMemberProfile",
  1057. // json: "custom",
  1058. // },
  1059. ],
  1060. },
  1061. data9: {
  1062. label: 'common.Cooperation&Communication',
  1063. icon: 'exchange',
  1064. value: 'cooperationExchange',
  1065. dataitem: [
  1066. // {
  1067. // label: "common.MemberActivities",
  1068. // value: "cooperationExchange",
  1069. // },
  1070. // {
  1071. // label: "common.AllianceActivities",
  1072. // value: "cooperationExchange",
  1073. // },
  1074. // {
  1075. // label: "common.CooperationActivities",
  1076. // value: "cooperationExchange",
  1077. // },
  1078. ],
  1079. },
  1080. data10: {
  1081. label: 'common.NationalregionalCommissions',
  1082. icon: 'commissions',
  1083. value: 'nationalregionalCommittees',
  1084. dataitem: [
  1085. // {
  1086. // label: "common.BriefintroductiontotheCommittee",
  1087. // value: "nationalregionalCommittees",
  1088. // },
  1089. // {
  1090. // label: "common.Committeelayout",
  1091. // value: "nationalregionalCommittees",
  1092. // },
  1093. // {
  1094. // label: "common.Committeeactivities",
  1095. // value: "nationalregionalCommittees",
  1096. // },
  1097. ],
  1098. },
  1099. // data9: {
  1100. // label: "common.ResourceSharing",
  1101. // icon: "share",
  1102. // value: "resourceSharing",
  1103. // dataitem: [
  1104. // // {
  1105. // // label: "common.ResearchResults",
  1106. // // value: "resourceSharing",
  1107. // // },
  1108. // // {
  1109. // // label: "common.ResearchResources",
  1110. // // value: "resourceSharing",
  1111. // // },
  1112. // // {
  1113. // // label: "common.ConferenceFacilities",
  1114. // // value: "resourceSharing",
  1115. // // },
  1116. // ],
  1117. // },
  1118. data11: {
  1119. label: 'common.ConferenceService',
  1120. icon: 'discussion',
  1121. value: 'conferenceServices',
  1122. dataitem: [
  1123. // {
  1124. // label: "common.ConferenceInformation",
  1125. // value: "conferenceServices",
  1126. // },
  1127. // {
  1128. // label: "common.ConferenceResults",
  1129. // value: "conferenceServices",
  1130. // },
  1131. // {
  1132. // label: "common.ConferenceFeedback",
  1133. // value: "conferenceServices",
  1134. // },
  1135. ],
  1136. },
  1137. data12: {
  1138. label: 'common.ExhibitionService',
  1139. icon: 'Exhibition',
  1140. value: 'exhibitionService',
  1141. dataitem: [
  1142. {
  1143. label: 'common.ExhibitionServices',
  1144. value: 'exhibitionService',
  1145. },
  1146. {
  1147. label: 'common.Cloudexhibition',
  1148. value: 'exhibitionService',
  1149. },
  1150. // {
  1151. // label: "common.ExhibitionService",
  1152. // value: "exhibitionService",
  1153. // },
  1154. {
  1155. label: 'common.OnlineExhibition',
  1156. value: 'exhibitionService',
  1157. },
  1158. // {
  1159. // label: "common.Exhibitionresults",
  1160. // value: "exhibitionService",
  1161. // },
  1162. // {
  1163. // label: "common.Exhibitionfeedback",
  1164. // value: "exhibitionService",
  1165. // },
  1166. ],
  1167. },
  1168. },
  1169. informationTotal: '',
  1170. dcpVip: '',
  1171. showHomeEntrance: '',
  1172. votedLeader: '',
  1173. votedMatter: '',
  1174. voteUrl: [],
  1175. //以下为投票码和验证码部分(主席投票所需数据)
  1176. dialogFormVisible: false,
  1177. formLabelWidth: '120px',
  1178. form: {
  1179. code: '', //投票码
  1180. verify: '', //验证码
  1181. },
  1182. invitedCode: [],
  1183. codeUid: '',
  1184. invitedUrl: '',
  1185. VerifyText: '', //验证码提示信息
  1186. VoteText: '', //投票码提示信息
  1187. //==========================
  1188. broadcastList: [], //新增数据播报
  1189. newIcon: [], //从接口里面取出的各个新增数据值
  1190. mynewIcon: [0, 0, 999, 999, 999, 999, 999, 0, 999, 0, 0, 999], //默认用cookie存储的新增值(中文)
  1191. mynewIconEn: [0, 0, 999, 999, 999, 999, 999, 0, 999, 0, 0, 999], //默认用cookie存储的新增值(英文)
  1192. broadcastFlag_one: false, //信息播报是否滚动样式flag
  1193. broadcastFlag_tow: false,
  1194. newSum: 0,
  1195. scrollArr: [], //用来判断新增条数,从而判断是否让播报滚动
  1196. vshareConfig: {
  1197. shareList: [
  1198. // 此处放分享列表(ID)
  1199. 'weixin',
  1200. ],
  1201. common: {
  1202. //此处放置通用设置
  1203. bdUrl: window.location.href,
  1204. },
  1205. share: [
  1206. {
  1207. //此处放置分享按钮设置
  1208. },
  1209. ],
  1210. url: window.location.href.replace('#/', ''), // 网址,默认使用
  1211. sites: ['wechat'],
  1212. wechatQrcodeTitle: '',
  1213. wechatQrcodeHelper: '<p>https://www.geidcp.com</p>',
  1214. image: [
  1215. //此处放置图片分享设置
  1216. ],
  1217. selectShare: [
  1218. //此处放置划词分享设置
  1219. ],
  1220. },
  1221. }
  1222. },
  1223. watch: {
  1224. '$i18n.locale'() {
  1225. this.getDataBroadcastInfo()
  1226. this.getRelevantList(1, null, this.$i18n.locale.toUpperCase())
  1227. this.getBaseProject()
  1228. this.getConfrences()
  1229. this.qrcode()
  1230. this.votefalgChange()
  1231. this.getAdver()
  1232. },
  1233. videoUrl: function (val) {
  1234. // const myPlayer = this.$refs.videoPlayer.player
  1235. if (val !== '') {
  1236. this.$refs.videoPlayer.player.src(val)
  1237. }
  1238. },
  1239. state: function (val) {
  1240. if (val) {
  1241. this.$refs.videoPlayer.player.pause()
  1242. }
  1243. },
  1244. },
  1245. mounted() {
  1246. this.getDataBroadcastInfo() //获取当日新增数
  1247. this.getMynewicon()
  1248. // setTimeout(()=>{
  1249. // this.scrollbar();//信息播报滚动
  1250. // },3000)
  1251. // console.log('账号',this.$Cookies.get('userInfo'))
  1252. //取出用户手机号和邮箱
  1253. // this.src = '../assets/pdfAndVideo/SchemeOfOnlineExhibitionHall.pdf';
  1254. if (this.$Cookies.get('token')) {
  1255. this.loginAccount = JSON.parse(this.$Cookies.get('userInfo')).umsUser
  1256. .userPreferredMobile
  1257. ? JSON.parse(this.$Cookies.get('userInfo')).umsUser.userPreferredMobile
  1258. : JSON.parse(this.$Cookies.get('userInfo')).umsUser.userEmail
  1259. }
  1260. if (window._bd_share_main) {
  1261. window._bd_share_main.init()
  1262. }
  1263. this.getshowEnter()
  1264. this.getVoteState()
  1265. this.getBannerUrl()
  1266. // this.src = pdf.createLoadingTask(this.src)
  1267. window.addEventListener('scroll', this.showbtn, true)
  1268. this.getRelevantList(1, null, this.$i18n.locale.toUpperCase()) // 最新资讯
  1269. this.getBaseProject()
  1270. this.getConfrences()
  1271. this.getHomeImgs()
  1272. this.getAdver()
  1273. if (this.$Cookies.get('token')) {
  1274. this.getActivityForVotesData()
  1275. } //投票活动
  1276. window.addEventListener('scroll', this.handleScroll)
  1277. this.src = '/api/file/pub/def/Scheme3ofonlineexhibitionhall.pdf'
  1278. document.all.iframeid.src = this.src ? this.src : ''
  1279. this.$forceUpdate()
  1280. },
  1281. loadPdfHandler(e) {
  1282. this.currentPage = 1 // 加载的时候先加载第一页
  1283. },
  1284. destroyed() {
  1285. window.removeEventListener('scroll', this.handleScroll)
  1286. },
  1287. methods: {
  1288. //修改密码
  1289. changePassword() {
  1290. this.ballotLanguage = false
  1291. this.changeBallot = true
  1292. },
  1293. sureChange() {
  1294. if (this.changeList.password != this.changeList.newPassword) {
  1295. this.$message.warning('两次密码不一致,请重新输入!')
  1296. } else {
  1297. let params = {
  1298. id: this.changeList.id,
  1299. oldPassword: this.changeList.oldPassword,
  1300. password: this.changeList.password,
  1301. }
  1302. console.log(params)
  1303. BallotChanges(params).then((res) => {
  1304. console.log(res)
  1305. this.$message.success('修改成功,请重新登录')
  1306. setTimeout(() => {
  1307. this.ballotLanguage = true
  1308. this.changeBallot = false
  1309. })
  1310. })
  1311. }
  1312. // if (localStorage.getItem('mettingUser')) {
  1313. // let idNum = localStorage.getItem('mettingUser')
  1314. // let idList = JSON.parse(idNum)
  1315. // let id = idList.userId
  1316. // console.log(id);
  1317. // } else {
  1318. // alert('登录之后才可以修改密码')
  1319. // }
  1320. },
  1321. //投票-新
  1322. getLogin() {
  1323. console.log(111)
  1324. this.ballotLanguage = true
  1325. this.changeBallot = false
  1326. this.refreshCaptchaNew()
  1327. },
  1328. closeInfo() {
  1329. this.ballotLanguage = false
  1330. },
  1331. changeCloseInfo() {
  1332. this.changeBallot = false
  1333. },
  1334. //投票登录
  1335. userLoginBallot(formName) {
  1336. this.$refs[formName].validate((valid) => {
  1337. if (valid) {
  1338. this.CaptchaValidate()
  1339. // this.GetBallotsLoginDetail()
  1340. } else {
  1341. console.log('error submit!!')
  1342. return false
  1343. }
  1344. })
  1345. },
  1346. getActivityForVotesData() {
  1347. getActivityForVotes().then((res) => {
  1348. this.voteTime = res.data.activityForVotes[0].voteEndDate //投票结束时间
  1349. if (this.loginAccount.slice(0, 4) == '0086') {
  1350. this.loginAccount = this.loginAccount.slice(4)
  1351. console.log(this.loginAccount, '====截取数据====')
  1352. }
  1353. this.isWhiteList = res.data.activityForVotes[0].isWhiteList
  1354. this.whiteList = res.data.activityForVotes[0].whiteList
  1355. //判断一下是否开启白名单,并判断用户账号是否在白名单里
  1356. if (this.isWhiteList == 'Yes') {
  1357. if (
  1358. this.$Cookies.get('token') &&
  1359. this.$i18n.locale == 'zh' &&
  1360. this.whiteList.includes(this.loginAccount)
  1361. ) {
  1362. this.voteflag = true
  1363. }
  1364. } else if (this.$Cookies.get('token') && this.$i18n.locale == 'zh') {
  1365. this.voteflag = true
  1366. }
  1367. //判断投票接口是否有数据,以及是否有投票图
  1368. if (res.data.activityForVotes) {
  1369. this.voteImg = res.data.activityForVotes[0].coverPictureUrl
  1370. if (!this.voteImg) {
  1371. this.voteflag = false
  1372. }
  1373. } else {
  1374. this.voteflag = false
  1375. }
  1376. })
  1377. },
  1378. handleScroll() {
  1379. var scrollTop =
  1380. window.pageYOffset ||
  1381. document.documentElement.scrollTop ||
  1382. document.body.scrollTop
  1383. var offsetTop = document.querySelector('.realTimeInfo_scree').offsetTop
  1384. let top =
  1385. document.getElementsByClassName('realTimeInfo_scree')[0].style.top
  1386. let leftAdver = document.getElementsByClassName('advertiseLeft')[0]
  1387. let rightAdver = document.getElementsByClassName('advertiseRight')[0]
  1388. let underRightAdver = document.getElementsByClassName(
  1389. 'advertiseUnderRight'
  1390. )[0]
  1391. console.log(top)
  1392. if (scrollTop > 400) {
  1393. document.getElementsByClassName('realTimeInfo_scree')[0].style.top =
  1394. '48%'
  1395. if (leftAdver) {
  1396. leftAdver.style.top = '10%'
  1397. }
  1398. if (rightAdver) {
  1399. rightAdver.style.top = '10%'
  1400. }
  1401. if (underRightAdver) {
  1402. underRightAdver.style.top = '50%'
  1403. }
  1404. } else if (scrollTop < 510) {
  1405. document.getElementsByClassName('realTimeInfo_scree')[0].style.top =
  1406. '80%'
  1407. if (leftAdver) {
  1408. leftAdver.style.top = '40%'
  1409. }
  1410. if (rightAdver) {
  1411. rightAdver.style.top = '40%'
  1412. }
  1413. if (underRightAdver) {
  1414. underRightAdver.style.top = '80%'
  1415. }
  1416. }
  1417. },
  1418. moduleClassifyHover(index) {
  1419. this.moduleClassify = index
  1420. },
  1421. previewPDF(row) {},
  1422. closeDialog() {
  1423. this.pdfPage = 1
  1424. },
  1425. //PDF改变页数
  1426. previousPage() {
  1427. var p = this.pdfPage
  1428. p = p > 1 ? p - 1 : this.pageCount
  1429. this.pdfPage = p
  1430. },
  1431. nextPage() {
  1432. var p = this.pdfPage
  1433. p = p < this.pageCount ? p + 1 : 1
  1434. this.pdfPage = p
  1435. },
  1436. getConfrences() {
  1437. var page = {
  1438. pageSize: 3,
  1439. pageNo: 1,
  1440. lang: this.$i18n.locale,
  1441. }
  1442. if (page.lang == 'zh') {
  1443. getLatestMeetingListPortal(page).then((res) => {
  1444. if (res.data) {
  1445. this.news[2].newItem = res.data.meetingBasicInfos || []
  1446. }
  1447. })
  1448. } else {
  1449. getLatestMeetingListPortalEn(page).then((res) => {
  1450. if (res.data) {
  1451. this.news[2].newItem = res.data.meetingBasicInfos || []
  1452. }
  1453. })
  1454. }
  1455. },
  1456. getHomeImgs() {
  1457. getHomeImg().then((res) => {
  1458. if (res.data.homeImg) {
  1459. this.homeImg = './api/fileextend/pub/' + res.data.homeImg[0].bannerUrl
  1460. this.paramKey = res.data.homeImg[0].paramKey
  1461. this.canClick = true
  1462. } else {
  1463. this.homeImg = require('@/assets/img/home/homeMeetingImg.png')
  1464. this.canClick = false
  1465. }
  1466. })
  1467. },
  1468. closePlay(val) {
  1469. console.log(val)
  1470. },
  1471. toViewImg(item) {
  1472. if (item.dataitem.length > 0) {
  1473. this.toView(
  1474. item.dataitem[0].value,
  1475. item.dataitem[0].json ? item.dataitem[0].json : ''
  1476. )
  1477. } else {
  1478. this.toView(item.value)
  1479. }
  1480. },
  1481. qrcode() {
  1482. document.getElementById('qrcode').innerHTML = ''
  1483. this.url = window.location.href
  1484. const that = this
  1485. let qrcode = new QRCode('qrcode', {
  1486. width: 132,
  1487. height: 132,
  1488. text: 'https://m.geidcp.com/#/?language=' + that.$i18n.locale, // 二维码地址
  1489. })
  1490. },
  1491. ShareChange() {
  1492. this.ShareNum = !this.ShareNum
  1493. },
  1494. mouseOver() {
  1495. this.qrcode()
  1496. this.ShareNum = false
  1497. this.$refs['QRCode'].style.display = 'block'
  1498. },
  1499. mouseLeave() {
  1500. this.$refs['QRCode'].style.display = 'none'
  1501. },
  1502. getRelevantList(num, type, language, title) {
  1503. let page = {
  1504. typeDict: type,
  1505. language: language,
  1506. pageSize: 3,
  1507. pageNo: num,
  1508. businessType: 'information',
  1509. title: title ? title : '',
  1510. }
  1511. getLatestInformationPortal(page).then((res) => {
  1512. if (res.data) {
  1513. this.news[0].newItem = res.data.portalInformationList || []
  1514. }
  1515. })
  1516. },
  1517. getBaseProject() {
  1518. this.params.language = this.$i18n.locale.toUpperCase()
  1519. getLatestBaseProjectViewPortal(this.params).then((result) => {
  1520. var data = result.data
  1521. if (data.baseProjectViews) {
  1522. this.news[1].newItem = result.data.baseProjectViews || []
  1523. }
  1524. })
  1525. allInformationViewCount().then((result) => {
  1526. var data = result.data
  1527. if (data) {
  1528. this.informationTotal = data.cmsInformationViewCount
  1529. }
  1530. })
  1531. },
  1532. viewChange(id, index, num) {
  1533. if (id) {
  1534. if (num == 0) {
  1535. this.toViews('realTimeInfoItemdetails', id)
  1536. }
  1537. if (num == 1) {
  1538. this.toViews('projectPresentationDetails', id)
  1539. }
  1540. if (num == 2) {
  1541. localStorage.setItem('conferenceId', id)
  1542. this.toViews('ConferenceDetail', id)
  1543. }
  1544. }
  1545. },
  1546. toViewChange(index) {
  1547. if (index == 0) {
  1548. this.toView('realTimeInfo')
  1549. }
  1550. console.log(index + 'index')
  1551. if (index == 1) {
  1552. this.toView('projectPresentation')
  1553. }
  1554. if (index == 2) {
  1555. this.toView('conferenceServices')
  1556. }
  1557. },
  1558. CreateMeeting() {
  1559. this.dialogVisible = true
  1560. },
  1561. showbtn() {
  1562. let topBtn = document.getElementById('toUp')
  1563. let scrollTop =
  1564. window.pageYOffset ||
  1565. document.documentElement.scrollTop ||
  1566. document.body.scrollTop
  1567. let browserHeight = window.outerHeight
  1568. if (scrollTop > 100) {
  1569. if (topBtn) {
  1570. topBtn.style.display = 'block'
  1571. }
  1572. } else {
  1573. if (topBtn) {
  1574. topBtn.style.display = 'none'
  1575. }
  1576. }
  1577. },
  1578. getIconUrl(url) {
  1579. return require('@/assets/img/home/' + url + '.png')
  1580. },
  1581. // 返回顶部
  1582. toUp() {
  1583. // window.scrollTo(0,0);
  1584. var timer = setInterval(function () {
  1585. let osTop =
  1586. document.documentElement.scrollTop || document.body.scrollTop
  1587. let ispeed = Math.floor(-osTop / 5)
  1588. document.documentElement.scrollTop = document.body.scrollTop =
  1589. osTop + ispeed
  1590. this.isTop = true
  1591. if (osTop === 0) {
  1592. clearInterval(timer)
  1593. }
  1594. }, 30)
  1595. },
  1596. toViews(router, json, item, i) {
  1597. this.$store.commit('modify', router)
  1598. window.localStorage.setItem('router', router)
  1599. localStorage.setItem('conferenceId', json)
  1600. const { href } = this.$router.resolve({
  1601. name: router,
  1602. query: {
  1603. key: json,
  1604. },
  1605. })
  1606. window.open(href, '_blank')
  1607. },
  1608. toView(router, json, item, i, myself) {
  1609. console.log(router, json, item, i, myself)
  1610. if (i && i.label == 'common.OnlineExhibition') {
  1611. // window.open("http://119.3.163.174:1080/23-2/", '_blank');
  1612. window.open(
  1613. 'http://tour.quanjingke.com/xiangmu/quanqiunengyuan_vtour_v7/index.html',
  1614. '_blank'
  1615. )
  1616. } else if (i && i.label == 'common.Cloudexhibition') {
  1617. window.open('http://show.lksby.com/index', '_blank')
  1618. } else if (i && i.label == 'common.Exhibitionfeedback') {
  1619. this.detialPlayVideoPdf = true
  1620. } else if (myself === 'newpro') {
  1621. //进入新项目
  1622. /*
  1623. 1,判断用户是否登录----如果登录了就判断用户是否为会员
  1624. 1.1 不是会员,弹窗提示 ‘示例:只有会员才能参与此活动’
  1625. 1.2 是会员 执行下面的代码
  1626. 1.3 未登录跳转到登录页
  1627. */
  1628. var popup = window.open(this.goActivityTargetUrl, '_blank')
  1629. if (popup) {
  1630. let data = {
  1631. localStorage: {
  1632. 'Auth-Token': '',
  1633. refresh_token: '',
  1634. user: this.$i18n.locale,
  1635. locale: '',
  1636. },
  1637. cookies: '',
  1638. // user:JSON.parse(localStorage.getItem('user')),
  1639. // lang: this.$i18n.locale,
  1640. isAutoLogin: true,
  1641. }
  1642. //遍历local storage
  1643. let storage = window.localStorage
  1644. Object.keys(data.localStorage).forEach((key) => {
  1645. data.localStorage[key] = storage.getItem(key)
  1646. })
  1647. //遍历cookie
  1648. let cookie = document.cookie
  1649. data.cookies = cookie.split('; ')
  1650. console.log(11)
  1651. console.log(data)
  1652. setTimeout(() => {
  1653. popup.postMessage(JSON.stringify(data), this.goActivityTargetUrl)
  1654. }, 500)
  1655. }
  1656. } else {
  1657. if (json) {
  1658. if (router == 'projectPresentationDetails') {
  1659. this.$router.push({ name: router, query: { key: json } })
  1660. } else {
  1661. this.$router.push({ name: router, query: { key: json } })
  1662. }
  1663. } else {
  1664. console.log(router, json, item, i, myself, '222222')
  1665. this.$router.push({ name: router })
  1666. }
  1667. this.$store.commit('modify', router)
  1668. window.localStorage.setItem('router', router)
  1669. }
  1670. },
  1671. //点击广告图片跳转并记录
  1672. toshowLink(item, position) {
  1673. console.log(item, position)
  1674. let clickPic = {
  1675. // position:position,
  1676. advId: item.id,
  1677. }
  1678. getAppAdvert(clickPic).then((res) => {
  1679. console.log(res)
  1680. })
  1681. if (item.advPicLink != '') {
  1682. console.log(item.advPicLink)
  1683. window.open(item.advPicLink, '_blank')
  1684. } else {
  1685. return
  1686. }
  1687. },
  1688. //理事投票入口点击事件
  1689. // clickVote() {
  1690. // if (!this.$Cookies.get('token')) {
  1691. // // this.toView('login')
  1692. // this.$router.push({path: 'login'});
  1693. // } else {
  1694. // if (this.dcpVip) {
  1695. // this.$router.push({path: 'electionBallot'});
  1696. // // this.toView('electionBallot', '', '', '', 'newpro')
  1697. // } else {
  1698. // this.$message.info(this.$t('common.notVip'));
  1699. // }
  1700. // }
  1701. // },
  1702. clickVote() {
  1703. if (!this.$Cookies.get('token')) {
  1704. // this.toView('login')
  1705. this.$router.push({ path: 'login' })
  1706. } else {
  1707. this.dialogFormVisible = true
  1708. this.refreshCaptcha()
  1709. }
  1710. },
  1711. //跳转到投票页
  1712. toVotelist() {
  1713. //投票老页面
  1714. // this.$router.push({ path: "voteList" });
  1715. //投票新页面
  1716. this.$router.push({ path: 'voteInfo' })
  1717. },
  1718. // 跳转到活动页
  1719. toVotelist1() {
  1720. let language = window.localStorage.getItem('locale')
  1721. let routerUrl = this.$router.resolve({
  1722. // key:"154a437de7c611ecbac48cec4bc03c2d",
  1723. path: '/nationalregionalCommissionsDetailds',
  1724. query: {
  1725. key: '7419a7b7e63c11ec963e0894ef7fd169',
  1726. language: language,
  1727. },
  1728. })
  1729. window.open(routerUrl.href, '_blank')
  1730. },
  1731. voteoff() {
  1732. this.voteflag = false
  1733. },
  1734. voteoff1() {
  1735. this.activity = false
  1736. },
  1737. votefalgChange() {
  1738. if (this.isWhiteList == 'Yes') {
  1739. if (
  1740. this.$Cookies.get('token') &&
  1741. this.$i18n.locale == 'zh' &&
  1742. this.whiteList.includes(this.loginAccount)
  1743. ) {
  1744. this.voteflag = true
  1745. } else {
  1746. this.voteflag = false
  1747. }
  1748. } else if (this.isWhiteList == 'No') {
  1749. if (this.$Cookies.get('token') && this.$i18n.locale == 'zh') {
  1750. this.voteflag = true
  1751. } else {
  1752. this.voteflag = false
  1753. }
  1754. }
  1755. },
  1756. // 判断投票是否结束
  1757. isVoteOver(t) {
  1758. var ct = Date.parse(new Date())
  1759. t = Date.parse(t)
  1760. if (t - ct > 0) {
  1761. return true
  1762. } else {
  1763. return false
  1764. }
  1765. },
  1766. //登录后查询投票用户状态
  1767. getVoteState() {
  1768. getCouncilVoteSituation().then((res) => {
  1769. let sta = res.data.councilVoteSituation
  1770. this.dcpVip = sta.dcpVip
  1771. this.showHomeEntrance = sta.showHomeEntrance
  1772. this.votedLeader = sta.votedLeader
  1773. this.votedMatter = sta.votedMatter
  1774. })
  1775. },
  1776. //登录前查询是否显示投票入口
  1777. getshowEnter() {
  1778. getCouncilVoteSituationBeforeLogin().then((res) => {
  1779. let status = res.data.councilVoteSituationBeforeLogin
  1780. this.showHomeEntrance = status.showHomeEntrance
  1781. })
  1782. },
  1783. //获取banner图片
  1784. getBannerUrl() {
  1785. getBannerUrls({
  1786. paramKey: 'COUNCIL_VOTE_ENTRANCE_ZH,COUNCIL_VOTE_ENTRANCE_EN',
  1787. }).then((res) => {
  1788. this.voteUrl = res.data.bannerUrls
  1789. })
  1790. },
  1791. //投票邀请码
  1792. inviteEnter() {
  1793. if (this.form.code.length == 0) {
  1794. this.VoteText =
  1795. this.$i18n.locale == 'zh'
  1796. ? '投票码不能为空!'
  1797. : 'The voting code cannot be empty!'
  1798. setTimeout(() => {
  1799. this.VoteText = ''
  1800. }, 3000)
  1801. }
  1802. if (this.form.verify.length == 0) {
  1803. this.VerifyText =
  1804. this.$i18n.locale == 'zh'
  1805. ? '验证码不能为空!'
  1806. : 'The verification code cannot be empty!'
  1807. setTimeout(() => {
  1808. this.VerifyText = ''
  1809. }, 3000)
  1810. }
  1811. if (this.form.code.length != 0 && this.form.verify.length != 0) {
  1812. this.CaptchaValidate()
  1813. }
  1814. // var msg = this.$i18n.locale == 'zh'?'投票码和验证码不能为空!':'The voting code and verification code cannot be empty!'
  1815. // if(this.form.code.length!=0 && this.form.verify.length!=0){
  1816. // this.VoteCodeVakidate();
  1817. // }else{
  1818. // this.$message({
  1819. // message: msg,
  1820. // type: 'warning'
  1821. // });
  1822. // }
  1823. },
  1824. refreshCaptchaNew() {
  1825. getCaptchaNew(this.codeUid).then((response) => {
  1826. this.codeUid = response['headers']['captcha-uid']
  1827. let data = response.data
  1828. if (data.size == 0) {
  1829. return
  1830. }
  1831. let reader = new FileReader()
  1832. reader.onload = (e) => {
  1833. this.invitedUrl = e.target.result || ''
  1834. }
  1835. reader.readAsDataURL(data)
  1836. })
  1837. },
  1838. refreshCaptcha() {
  1839. getCaptcha(this.codeUid).then((response) => {
  1840. this.codeUid = response['headers']['captcha-uid']
  1841. let data = response.data
  1842. if (data.size == 0) {
  1843. return
  1844. }
  1845. let reader = new FileReader()
  1846. reader.onload = (e) => {
  1847. this.invitedUrl = e.target.result || ''
  1848. }
  1849. reader.readAsDataURL(data)
  1850. })
  1851. },
  1852. VoteCodeVakidate() {
  1853. var msg = this.$i18n.locale == 'zh' ? '投票码错误!' : 'Voting code error!'
  1854. voteCodeVakidate(this.form.code)
  1855. .then((res) => {
  1856. if (res.status == 200) {
  1857. this.$router.push({
  1858. path: 'electionBallot',
  1859. query: { votedLeader: this.votedLeader },
  1860. })
  1861. }
  1862. })
  1863. .catch((error) => {
  1864. this.VoteText = msg
  1865. setTimeout(() => {
  1866. this.VoteText = ''
  1867. }, 3000)
  1868. })
  1869. },
  1870. CaptchaValidate() {
  1871. var msgs =
  1872. this.$i18n.locale == 'zh' ? '验证码错误!' : 'Verification code error!'
  1873. captchaValidate(this.ruleForm.voteCode, this.codeUid)
  1874. .then((res) => {
  1875. if (res.status == 200) {
  1876. this.VoteCodeVakidate()
  1877. // this.GetBallotsLoginDetail()
  1878. }
  1879. })
  1880. .catch((error) => {
  1881. this.VerifyText = msgs
  1882. setTimeout(() => {
  1883. this.VerifyText = ''
  1884. }, 3000)
  1885. })
  1886. },
  1887. GetBallotsLoginDetail() {
  1888. let params = {
  1889. voteCode: this.ruleForm.voteCode,
  1890. id: this.ruleForm.id,
  1891. password: this.ruleForm.password,
  1892. }
  1893. BallotsLogin(params).then((res) => {
  1894. // console.log(res);
  1895. if (res.status == 200) {
  1896. let userList = res.data
  1897. let mettingUser = JSON.stringify(userList)
  1898. localStorage.setItem('mettingUser', [mettingUser])
  1899. if (this.languageInfo.value == 'CN') {
  1900. this.$message.success('登陆成功')
  1901. }
  1902. if (this.languageInfo.value == 'EN') {
  1903. this.$message.success('Login successfully')
  1904. }
  1905. if (this.languageInfo.value == 'FR') {
  1906. this.$message.success('Connexion réussie avec')
  1907. }
  1908. if (this.languageInfo.value == 'RU') {
  1909. this.$message.success('Посадка завершена.')
  1910. }
  1911. setTimeout(() => {
  1912. this.$router.push({ path: 'ballotCampaignMainPage' })
  1913. }, 1500)
  1914. }
  1915. })
  1916. },
  1917. // CaptchaValidate() {
  1918. // var msgs =
  1919. // this.$i18n.locale == "zh" ? "验证码错误!" : "Verification code error!";
  1920. // captchaValidate(this.form.verify, this.codeUid)
  1921. // .then((res) => {
  1922. // if (res.status == 200) {
  1923. // this.VoteCodeVakidate();
  1924. // }
  1925. // })
  1926. // .catch((error) => {
  1927. // this.VerifyText = msgs;
  1928. // setTimeout(() => {
  1929. // this.VerifyText = "";
  1930. // }, 3000);
  1931. // });
  1932. // },
  1933. // 关闭广告
  1934. closeAdver(ele) {
  1935. if (ele == 1 || ele == 2) {
  1936. this.showLeftAdvertise = false
  1937. } else {
  1938. this.showUnderRightAdver = false
  1939. }
  1940. },
  1941. //获取广告
  1942. getAdver() {
  1943. this.rightAdverList = {}
  1944. this.leftAdverList = {}
  1945. this.UnderAdverList = {}
  1946. //左对联广告
  1947. let paramsLeft = {
  1948. position: 'web_left_couplet',
  1949. language: this.$i18n.locale.toUpperCase(),
  1950. }
  1951. getAppAdvert(paramsLeft).then((res) => {
  1952. if (res.data) {
  1953. let addverList2 = res.data[0].list
  1954. for (let i = 0; i < addverList2.length; i++) {
  1955. if (this.$i18n.locale == addverList2[i].languageDict) {
  1956. this.leftAdverList = addverList2[i]
  1957. break
  1958. } else {
  1959. this.leftAdverList = {}
  1960. }
  1961. }
  1962. console.log('this.leftAdverList')
  1963. console.log(this.leftAdverList)
  1964. }
  1965. })
  1966. //右对联广告
  1967. let paramsRight = {
  1968. position: 'web_right_couplet',
  1969. language: this.$i18n.locale.toUpperCase(),
  1970. }
  1971. getAppAdvert(paramsRight).then((res) => {
  1972. if (res.data) {
  1973. let addverList3 = res.data[0].list
  1974. for (let i = 0; i < addverList3.length; i++) {
  1975. if (this.$i18n.locale == addverList3[i].languageDict) {
  1976. this.rightAdverList = addverList3[i]
  1977. break
  1978. } else {
  1979. this.rightAdverList = {}
  1980. }
  1981. }
  1982. console.log('this.rightAdverList')
  1983. console.log(this.rightAdverList)
  1984. }
  1985. })
  1986. //浮窗广告
  1987. let paramsUnderRight = {
  1988. position: 'web_suspension',
  1989. language: this.$i18n.locale.toUpperCase(),
  1990. }
  1991. getAppAdvert(paramsUnderRight).then((res) => {
  1992. if (res.data) {
  1993. // this.UnderAdverList = res.data[0].list;
  1994. let addverList1 = res.data[0].list
  1995. for (let i = 0; i < addverList1.length; i++) {
  1996. if (this.$i18n.locale == addverList1[i].languageDict) {
  1997. this.UnderAdverList = addverList1[i]
  1998. break
  1999. } else {
  2000. this.UnderAdverList = {}
  2001. }
  2002. }
  2003. console.log('this.UnderAdverList')
  2004. console.log(this.UnderAdverList)
  2005. }
  2006. })
  2007. },
  2008. //打开页面时执行,如果没有cookie就存入,有的话取出赋值给mynewIcon
  2009. getMynewicon() {
  2010. //存中文
  2011. if (!this.getCookie('newflag')) {
  2012. this.setCookie('newflag', this.mynewIcon)
  2013. } else {
  2014. this.mynewIcon = this.getCookie('newflag').split(',')
  2015. }
  2016. //存英文
  2017. if (!this.getCookie('newflagEn')) {
  2018. this.setCookie('newflagEn', this.mynewIconEn)
  2019. } else {
  2020. this.mynewIconEn = this.getCookie('newflagEn').split(',')
  2021. }
  2022. // console.log('华为手机Pro',this.mynewIcon,this.mynewIconEn);
  2023. },
  2024. //点击图标时改变相应的数据,并重新存入cookie
  2025. changeIcon(i) {
  2026. var arr = [0, 1, 6, 9, 10]
  2027. if (arr.indexOf(i) != -1) {
  2028. if (this.$i18n.locale == 'zh') {
  2029. this.mynewIcon[i] = this.newIcon[i]
  2030. this.setCookie('newflag', this.mynewIcon)
  2031. } else {
  2032. this.mynewIconEn[i] = this.newIcon[i]
  2033. this.setCookie('newflagEn', this.mynewIconEn)
  2034. }
  2035. }
  2036. // console.log('华为手机====',this.getCookie('newflag').split(',')[i],this.newIcon[i])
  2037. },
  2038. //cookie存入
  2039. setCookie(cname, cvalue) {
  2040. var d = new Date()
  2041. var tomorrow =
  2042. Date.parse(new Date(new Date().setHours(0, 0, 0, 0))) + 86400000 //第二天零点的时间戳毫秒数
  2043. var now = Date.parse(new Date()) //现在的时间
  2044. d.setTime(d.getTime() + (tomorrow - now))
  2045. var expires = 'expires=' + d.toGMTString()
  2046. document.cookie = cname + '=' + cvalue + '; ' + expires
  2047. },
  2048. //cookie获取
  2049. getCookie(cname) {
  2050. var name = cname + '='
  2051. var ca = document.cookie.split(';')
  2052. for (var i = 0; i < ca.length; i++) {
  2053. var c = ca[i].trim()
  2054. if (c.indexOf(name) == 0) return c.substring(name.length, c.length)
  2055. }
  2056. return ''
  2057. },
  2058. //============================
  2059. getDataBroadcastInfo() {
  2060. getDataBroadcastInfos(this.$i18n.locale).then((res) => {
  2061. // this.broadcastList = res.data.dataBroadcastInfos;
  2062. var yes = res.data.dataBroadcastInfos
  2063. this.broadcastList = []
  2064. this.newIcon = []
  2065. if (this.$i18n.locale == 'zh') {
  2066. for (var key in yes) {
  2067. //把更新的数据判断后放入一个数组
  2068. // console.log('aabb',key,yes[key])
  2069. if (key == 'aProjectTodayNum') {
  2070. this.broadcastList.push({ title: '项目资源', number: yes[key] })
  2071. this.newIcon.push(Number(yes[key]))
  2072. } else if (key == 'bNewsTodayNum') {
  2073. this.broadcastList.push({ title: '资讯数据', number: yes[key] })
  2074. this.newIcon.push(Number(yes[key]))
  2075. } else if (key == 'cCountryTodayNum') {
  2076. this.broadcastList.push({ title: '国别信息', number: yes[key] })
  2077. this.newIcon.push(Number(yes[key]))
  2078. } else if (key == 'dUnitTodayNum') {
  2079. this.broadcastList.push({ title: '企业展示', number: yes[key] })
  2080. this.newIcon.push(Number(yes[key]))
  2081. } else if (key == 'eFinanceTodayNum') {
  2082. this.broadcastList.push({ title: '金融服务', number: yes[key] })
  2083. this.newIcon.push(Number(yes[key]))
  2084. } else if (key == 'fThinkTankTodayNum') {
  2085. this.broadcastList.push({ title: '智库咨询', number: yes[key] })
  2086. this.newIcon.push(Number(yes[key]))
  2087. } else if (key == 'gCooperationNetworkTodayNum') {
  2088. this.broadcastList.push({ title: '合作网络', number: yes[key] })
  2089. this.newIcon.push(Number(yes[key]))
  2090. } else if (key == 'hCooperationExchangeTodayNum') {
  2091. this.broadcastList.push({ title: '合作交流', number: yes[key] })
  2092. this.newIcon.push(Number(yes[key]))
  2093. } else if (key == 'iCommitteeTodayNum') {
  2094. this.broadcastList.push({
  2095. title: '区域和国家委员会',
  2096. number: yes[key],
  2097. })
  2098. this.newIcon.push(Number(yes[key]))
  2099. } else if (key == 'jResourceSharingTodayNum') {
  2100. this.broadcastList.push({ title: '资源共享', number: yes[key] })
  2101. this.newIcon.push(Number(yes[key]))
  2102. } else if (key == 'kMeetingTodayNum') {
  2103. this.broadcastList.push({ title: '会议服务', number: yes[key] })
  2104. this.newIcon.push(Number(yes[key]))
  2105. }
  2106. }
  2107. } else {
  2108. for (var key in yes) {
  2109. //把更新的数据判断后放入一个数组
  2110. // console.log('aabb',key,yes[key])
  2111. if (key == 'aProjectTodayNum') {
  2112. this.broadcastList.push({ title: 'Projects', number: yes[key] })
  2113. this.newIcon.push(Number(yes[key]))
  2114. } else if (key == 'bNewsTodayNum') {
  2115. this.broadcastList.push({ title: 'Info&Data', number: yes[key] })
  2116. this.newIcon.push(Number(yes[key]))
  2117. } else if (key == 'cCountryTodayNum') {
  2118. this.broadcastList.push({ title: 'Countries', number: yes[key] })
  2119. this.newIcon.push(Number(yes[key]))
  2120. } else if (key == 'dUnitTodayNum') {
  2121. this.broadcastList.push({
  2122. title: 'Enterprises',
  2123. number: yes[key],
  2124. })
  2125. this.newIcon.push(Number(yes[key]))
  2126. } else if (key == 'eFinanceTodayNum') {
  2127. this.broadcastList.push({
  2128. title: 'Financial Service',
  2129. number: yes[key],
  2130. })
  2131. this.newIcon.push(Number(yes[key]))
  2132. } else if (key == 'fThinkTankTodayNum') {
  2133. this.broadcastList.push({
  2134. title: 'Consulting',
  2135. number: yes[key],
  2136. })
  2137. this.newIcon.push(Number(yes[key]))
  2138. } else if (key == 'gCooperationNetworkTodayNum') {
  2139. this.broadcastList.push({
  2140. title: 'Cooperation Network',
  2141. number: yes[key],
  2142. })
  2143. this.newIcon.push(Number(yes[key]))
  2144. } else if (key == 'hCooperationExchangeTodayNum') {
  2145. this.broadcastList.push({
  2146. title: 'Cooperation & Communication',
  2147. number: yes[key],
  2148. })
  2149. this.newIcon.push(Number(yes[key]))
  2150. } else if (key == 'iCommitteeTodayNum') {
  2151. this.broadcastList.push({
  2152. title: 'Regional and National Committees',
  2153. number: yes[key],
  2154. })
  2155. this.newIcon.push(Number(yes[key]))
  2156. } else if (key == 'jResourceSharingTodayNum') {
  2157. this.broadcastList.push({
  2158. title: 'Resource Sharing',
  2159. number: yes[key],
  2160. })
  2161. this.newIcon.push(Number(yes[key]))
  2162. } else if (key == 'kMeetingTodayNum') {
  2163. this.broadcastList.push({
  2164. title: 'Conferences',
  2165. number: yes[key],
  2166. })
  2167. this.newIcon.push(Number(yes[key]))
  2168. }
  2169. }
  2170. }
  2171. this.newSum = 0
  2172. this.scrollArr = []
  2173. this.newIcon.forEach((item) => {
  2174. this.newSum = this.newSum + item
  2175. if (item > 0) {
  2176. this.scrollArr.push(item)
  2177. }
  2178. })
  2179. // setTimeout(()=>{
  2180. // this.scrollbar();//信息播报滚动
  2181. // },3000)
  2182. console.log(
  2183. '狮子王--------------',
  2184. this.newIcon,
  2185. this.newSum,
  2186. this.scrollArr
  2187. )
  2188. })
  2189. },
  2190. scrollbar() {
  2191. this.$nextTick(() => {
  2192. this.scrollArea = this.$refs.scroll
  2193. let li = this.scrollArea.getElementsByTagName('li')
  2194. this.liHeight = li[0].offsetHeight
  2195. this.scrollArea.scrollTop = 0
  2196. // this.scrollArea.innerHTML += this.scrollArea.innerHTML;
  2197. this.scrollArr.length > 1 && setTimeout(this.startScroll, this.delay)
  2198. })
  2199. },
  2200. startScroll() {
  2201. this.timer = setInterval(this.scrollUp, this.speed)
  2202. this.scrollArea.scrollTop++
  2203. },
  2204. scrollUp() {
  2205. // console.log('背灼炎天光',this.liHeight,this.scrollArea.scrollTop)
  2206. if (Math.round(this.scrollArea.scrollTop) % this.liHeight == 0) {
  2207. clearInterval(this.timer)
  2208. setTimeout(this.startScroll, this.delay)
  2209. } else {
  2210. this.scrollArea.scrollTop++
  2211. if (this.scrollArea.scrollTop >= this.scrollArea.scrollHeight / 2) {
  2212. this.scrollArea.scrollTop = 0
  2213. }
  2214. }
  2215. },
  2216. //new图标只显示==>项目资源、合作交流、资讯数据、资源共享、会议服务五个栏目
  2217. },
  2218. }
  2219. </script>
  2220. <style scoped>
  2221. * {
  2222. box-sizing: border-box;
  2223. padding: 0;
  2224. margin: 0;
  2225. }
  2226. /* 修改密码 */
  2227. .change-box1 {
  2228. margin: 20px auto;
  2229. width: 468px;
  2230. height: 570px;
  2231. z-index: 999;
  2232. background: linear-gradient(0deg, #ffffff 0%, #2ba5df 100%);
  2233. box-shadow: 0px -2px 4px 0px rgba(0, 0, 0, 0.5);
  2234. overflow: hidden;
  2235. }
  2236. .change-top {
  2237. width: 468px;
  2238. height: 81px;
  2239. background: #f5f5f5;
  2240. border-radius: 4px 4px 0px 0px;
  2241. position: relative;
  2242. }
  2243. .change-box {
  2244. width: 100px;
  2245. height: 30px;
  2246. z-index: 999999;
  2247. overflow: hidden;
  2248. position: absolute;
  2249. top: 26px;
  2250. left: 20px;
  2251. }
  2252. .change-change {
  2253. width: 180px;
  2254. height: 40px;
  2255. line-height: 40px;
  2256. font-size: 14px;
  2257. transform: translateX(-60px) translateY(-2px);
  2258. }
  2259. .change-text {
  2260. width: 80px;
  2261. height: 20px;
  2262. font-size: 20px;
  2263. font-family: PingFangSC-Medium, PingFang SC;
  2264. font-weight: 500;
  2265. color: #262626;
  2266. line-height: 20px;
  2267. position: absolute;
  2268. top: 32px;
  2269. left: 194px;
  2270. }
  2271. .change-pic {
  2272. width: 25px;
  2273. height: 24px;
  2274. text-align: center;
  2275. overflow: hidden;
  2276. border-radius: 20px;
  2277. cursor: pointer;
  2278. position: absolute;
  2279. top: 32px;
  2280. right: 21px;
  2281. }
  2282. .change-pic > img {
  2283. width: 100%;
  2284. height: 100%;
  2285. }
  2286. .change-user-info {
  2287. width: 384px;
  2288. height: 508px;
  2289. text-align: center;
  2290. margin-left: 42px;
  2291. }
  2292. .change-item-id {
  2293. width: 384px;
  2294. height: 51px;
  2295. margin-top: 20px;
  2296. position: relative;
  2297. }
  2298. .change-user-id {
  2299. width: 384px;
  2300. height: 51px;
  2301. margin-top: 10px;
  2302. position: relative;
  2303. }
  2304. .change-user-pws {
  2305. width: 384px;
  2306. height: 51px;
  2307. margin-top: 10px;
  2308. position: relative;
  2309. }
  2310. .change-user-yzm {
  2311. width: 384px;
  2312. height: 51px;
  2313. margin-top: 10px;
  2314. position: relative;
  2315. }
  2316. .change-title {
  2317. height: 39px;
  2318. line-height: 39px;
  2319. z-index: 999;
  2320. width: 80px;
  2321. text-align: left;
  2322. border-radius: 10px;
  2323. position: absolute;
  2324. top: 0;
  2325. left: 30px;
  2326. }
  2327. .user-change-pic {
  2328. width: 386px;
  2329. height: 59px;
  2330. text-align: center;
  2331. line-height: 59px;
  2332. border-radius: 10px;
  2333. cursor: pointer;
  2334. background-color: #47c4ef;
  2335. font-size: 24px;
  2336. color: #fff;
  2337. }
  2338. .user-change1 {
  2339. width: 375px;
  2340. height: 16px;
  2341. font-size: 16px;
  2342. font-family: PingFangSC-Regular, PingFang SC;
  2343. font-weight: 400;
  2344. text-align: initial;
  2345. color: #333333;
  2346. line-height: 16px;
  2347. margin-left: 10px;
  2348. }
  2349. .user-style {
  2350. margin-top: 19px;
  2351. display: flex;
  2352. margin-left: 10px;
  2353. text-align: initial;
  2354. }
  2355. .user-style1 {
  2356. width: 115px;
  2357. height: 24px;
  2358. font-size: 16px;
  2359. font-family: PingFangSC-Regular, PingFang SC;
  2360. font-weight: 400;
  2361. color: #333333;
  2362. line-height: 24px;
  2363. text-align: initial;
  2364. }
  2365. .user-style2 {
  2366. width: 298px;
  2367. height: 48px;
  2368. font-size: 15px;
  2369. font-family: PingFangSC-Regular, PingFang SC;
  2370. font-weight: 400;
  2371. color: #333333;
  2372. line-height: 24px;
  2373. text-align: initial;
  2374. }
  2375. .user-long {
  2376. width: 357px;
  2377. height: 20px;
  2378. font-size: 15px;
  2379. margin-top: 19px;
  2380. margin-left: 10px;
  2381. font-family: PingFangSC-Regular, PingFang SC;
  2382. font-weight: 400;
  2383. color: #333333;
  2384. line-height: 20px;
  2385. text-align: initial;
  2386. }
  2387. .change-btm-pic {
  2388. padding: 0;
  2389. margin: 0;
  2390. position: absolute;
  2391. top: 542px;
  2392. }
  2393. .change-details {
  2394. width: 468px;
  2395. height: 570px;
  2396. z-index: 999;
  2397. position: absolute;
  2398. top: 50px;
  2399. left: 50%;
  2400. transform: translateX(-50%);
  2401. }
  2402. /* 投票 */
  2403. .ballot-details {
  2404. width: 650px;
  2405. height: 570px;
  2406. z-index: 999;
  2407. position: absolute;
  2408. top: 50px;
  2409. left: 50%;
  2410. transform: translateX(-50%);
  2411. }
  2412. .user-box {
  2413. width: 650px;
  2414. height: 570px;
  2415. background: linear-gradient(0deg, #01b4ff 0%, #084ebf 100%);
  2416. box-shadow: 0px -2px 4px 0px rgba(0, 0, 0, 0.5);
  2417. overflow: hidden;
  2418. }
  2419. .login-top {
  2420. width: 650px;
  2421. height: 81px;
  2422. background: #f5f5f5;
  2423. border-radius: 4px 4px 0px 0px;
  2424. position: relative;
  2425. }
  2426. .select-select {
  2427. width: 140px;
  2428. height: 41px;
  2429. line-height: 41px;
  2430. font-size: 14px;
  2431. transform: translateX(30px) translateY(20px);
  2432. }
  2433. /* /deep/.el-input__suffix {
  2434. padding-right: 20px;
  2435. color: #000;
  2436. } */
  2437. .login-text {
  2438. width: 240px;
  2439. height: 20px;
  2440. font-size: 20px;
  2441. font-family: PingFangSC-Medium, PingFang SC;
  2442. font-weight: 700;
  2443. color: #262626;
  2444. line-height: 20px;
  2445. text-align: center;
  2446. position: absolute;
  2447. top: 32px;
  2448. left: 192px;
  2449. }
  2450. .close-pic {
  2451. width: 25px;
  2452. height: 24px;
  2453. text-align: center;
  2454. overflow: hidden;
  2455. border-radius: 20px;
  2456. cursor: pointer;
  2457. position: absolute;
  2458. top: 32px;
  2459. right: 21px;
  2460. }
  2461. .close-pic > img {
  2462. width: 100%;
  2463. height: 100%;
  2464. }
  2465. .user-info {
  2466. width: 600px;
  2467. height: 508px;
  2468. text-align: center;
  2469. margin-left: 20px;
  2470. }
  2471. .user-id {
  2472. width: 100%;
  2473. height: 51px;
  2474. margin-top: 40px;
  2475. position: relative;
  2476. }
  2477. .user-pws {
  2478. width: 100%;
  2479. height: 51px;
  2480. margin-top: 36px;
  2481. position: relative;
  2482. }
  2483. .user-yzm {
  2484. width: 100%;
  2485. height: 51px;
  2486. margin-top: 36px;
  2487. position: relative;
  2488. }
  2489. .user-text {
  2490. height: 39px;
  2491. line-height: 39px;
  2492. z-index: 999;
  2493. width: 140px;
  2494. text-align: left;
  2495. font-size: 14px;
  2496. border-radius: 10px;
  2497. position: absolute;
  2498. top: 0;
  2499. left: 40px;
  2500. }
  2501. .user-login {
  2502. width: 100%;
  2503. height: 59px;
  2504. text-align: center;
  2505. line-height: 59px;
  2506. cursor: pointer;
  2507. background: linear-gradient(177deg, #84e2ff 0%, #30ade8 100%);
  2508. box-shadow: 0px 2px 4px 0px #097fb0,
  2509. inset 0px 3px 3px 0px rgba(194, 235, 255, 0.63);
  2510. border-radius: 8px;
  2511. margin-top: 38px;
  2512. font-size: 24px;
  2513. color: #fff;
  2514. }
  2515. .user-change {
  2516. width: 56px;
  2517. height: 20px;
  2518. font-size: 14px;
  2519. font-family: PingFangSC-Regular, PingFang SC;
  2520. font-weight: 400;
  2521. color: #0b5da1;
  2522. line-height: 20px;
  2523. cursor: pointer;
  2524. }
  2525. .btm-pic {
  2526. width: 100%;
  2527. padding: 0;
  2528. margin: 0;
  2529. position: absolute;
  2530. top: 512px;
  2531. }
  2532. .btm-pic > img {
  2533. width: 100%;
  2534. }
  2535. /* /deep/ .user-info .el-input__inner {
  2536. padding-left: 150px;
  2537. background-color: #f5f5f5;
  2538. color: #000;
  2539. } */
  2540. .quick-entry-list,
  2541. .quick-entry-list2 {
  2542. width: 1180px;
  2543. overflow: hidden;
  2544. margin: 0 auto 30px auto;
  2545. }
  2546. .quick-entry-list2 > div,
  2547. .quick-entry-list > div {
  2548. width: 50%;
  2549. height: 120px;
  2550. float: left;
  2551. cursor: pointer;
  2552. }
  2553. .quick-entry-list > div:first-child {
  2554. background: #5882f1 url('../assets/img/home/quick-entry1.png') no-repeat
  2555. center center / 100% 100%;
  2556. }
  2557. .quick-entry-list > div:last-child {
  2558. background: #0091ff url('../assets/img/home/quick-entry2.png') no-repeat
  2559. center center / 100% 100%;
  2560. }
  2561. .quick-entry-list2 > div:first-child {
  2562. background: #5882f1 url('../assets/img/home/quick-entry3.png') no-repeat
  2563. center center / 100% 100%;
  2564. }
  2565. .quick-entry-list2 > div:last-child {
  2566. background: #0091ff url('../assets/img/home/quick-entry4.png') no-repeat
  2567. center center / 100% 100%;
  2568. }
  2569. .module-classify-list {
  2570. width: 1180px;
  2571. margin: 0 auto;
  2572. padding: 0 0 30px 0;
  2573. overflow: hidden;
  2574. background: #fff;
  2575. }
  2576. .module-classify-list * {
  2577. transition: all 0.3s;
  2578. }
  2579. .module-classify-list li {
  2580. width: 180px;
  2581. height: 205px;
  2582. margin: 0 8px;
  2583. float: left;
  2584. padding: 0 18px;
  2585. border-radius: 9px;
  2586. position: relative;
  2587. overflow: hidden;
  2588. }
  2589. .module-classify-list li:hover {
  2590. box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.1);
  2591. }
  2592. .module-classify-info {
  2593. position: relative;
  2594. }
  2595. .module-classify-icon {
  2596. width: 70px;
  2597. height: 70px;
  2598. margin: 0 auto;
  2599. margin-top: 46px;
  2600. /* background: #F4F8FF; */
  2601. border-radius: 50%;
  2602. position: relative;
  2603. }
  2604. .module-classify-icon img {
  2605. position: absolute;
  2606. top: 0;
  2607. left: 0;
  2608. /* transform: translate(-50%, -50%); */
  2609. width: 100%;
  2610. height: 100%;
  2611. }
  2612. .module-classify-title {
  2613. font-weight: 600;
  2614. font-size: 17px;
  2615. color: #666;
  2616. line-height: 20px;
  2617. margin-top: 23px;
  2618. text-align: center;
  2619. cursor: pointer;
  2620. }
  2621. .module-classify-line {
  2622. width: 0%;
  2623. height: 2px;
  2624. background: #0091ff;
  2625. position: absolute;
  2626. left: 50%;
  2627. transform: translateX(-50%);
  2628. bottom: -4px;
  2629. transition: all 0.3s;
  2630. opacity: 0;
  2631. }
  2632. .module-classify-info-active .module-classify-icon {
  2633. margin-top: 37px;
  2634. width: 84px;
  2635. height: 84px;
  2636. /* background: #0091FF; */
  2637. }
  2638. /* .module-classify-info-active .module-classify-icon img{
  2639. width: 42px;
  2640. height: 42px;
  2641. } */
  2642. .module-classify-info-active2 {
  2643. margin-top: 30px;
  2644. }
  2645. .module-classify-info-active2 .module-classify-icon {
  2646. width: 48px;
  2647. height: 48px;
  2648. margin-top: 30px;
  2649. /* background: #0091FF; */
  2650. }
  2651. /* .module-classify-info-active2 .module-classify-icon img{
  2652. width: 24px;
  2653. height: 24px;
  2654. } */
  2655. .module-classify-info-active2 .module-classify-title {
  2656. color: #0091ff;
  2657. margin-top: 0;
  2658. }
  2659. .module-classify-info-active2 .module-classify-line {
  2660. width: 100%;
  2661. opacity: 1;
  2662. }
  2663. .module-classify-children {
  2664. font-size: 12px;
  2665. font-weight: 400;
  2666. text-align: left;
  2667. color: #0091ff;
  2668. line-height: 20px;
  2669. padding: 10px 0;
  2670. opacity: 0;
  2671. position: absolute;
  2672. top: 205px;
  2673. left: 20px;
  2674. transition: all 0.3s;
  2675. }
  2676. .module-classify-children div {
  2677. display: inline-block;
  2678. width: 50%;
  2679. font-size: 13px;
  2680. overflow: hidden;
  2681. white-space: nowrap;
  2682. cursor: pointer;
  2683. }
  2684. .module-classify-list li:hover .module-classify-children {
  2685. top: 110px;
  2686. opacity: 1;
  2687. }
  2688. .module-classify-list li:hover .module-classify-children.en {
  2689. top: 140px;
  2690. }
  2691. .latest-news-content {
  2692. width: 1180px;
  2693. margin: 0 auto;
  2694. }
  2695. .latest-news-content .most-watched {
  2696. width: 100%;
  2697. }
  2698. .latest-news-more {
  2699. text-align: right;
  2700. }
  2701. .latest-news-more span {
  2702. font-size: 24px;
  2703. font-weight: 900;
  2704. color: #0091ff;
  2705. cursor: pointer;
  2706. }
  2707. .latest-news-more span:hover {
  2708. color: #dd541a;
  2709. }
  2710. .latest-news-list {
  2711. overflow: hidden;
  2712. padding-bottom: 20px;
  2713. }
  2714. .latest-news-list > li {
  2715. width: 33.3%;
  2716. min-height: 290px;
  2717. float: left;
  2718. padding: 0 14px;
  2719. position: relative;
  2720. }
  2721. .latest-news-list > li::before {
  2722. content: '';
  2723. position: absolute;
  2724. bottom: 30px;
  2725. left: 0;
  2726. width: 4px;
  2727. height: 125px;
  2728. }
  2729. .latest-news-list > li:nth-child(1)::before {
  2730. background: #608cc4;
  2731. }
  2732. .latest-news-list > li:nth-child(2)::before {
  2733. background: #6dd400;
  2734. }
  2735. .latest-news-list > li:nth-child(3)::before {
  2736. background: #ffaa05;
  2737. }
  2738. .latest-news-list ul {
  2739. margin-top: 20px;
  2740. margin-bottom: 10px;
  2741. line-height: 30px;
  2742. font-size: 14px;
  2743. }
  2744. .latest-news-list ul li {
  2745. padding-left: 18px;
  2746. position: relative;
  2747. height: 30px;
  2748. }
  2749. .latest-news-list ul li p {
  2750. width: 100%;
  2751. overflow: hidden;
  2752. text-overflow: ellipsis;
  2753. white-space: nowrap;
  2754. }
  2755. .latest-news-list ul li::before {
  2756. content: '';
  2757. display: block;
  2758. width: 8px;
  2759. height: 8px;
  2760. background: #cfe2fb;
  2761. position: absolute;
  2762. top: 11px;
  2763. left: 0;
  2764. }
  2765. .mytest {
  2766. position: fixed;
  2767. top: 60%;
  2768. right: 8%;
  2769. z-index: 2;
  2770. width: 300px;
  2771. height: 150px;
  2772. }
  2773. .mytest > img {
  2774. width: 100%;
  2775. height: 100%;
  2776. }
  2777. .africanActivity {
  2778. position: fixed;
  2779. top: 60%;
  2780. right: 8%;
  2781. z-index: 2;
  2782. width: 300px;
  2783. height: 150px;
  2784. }
  2785. .africanActivity > img {
  2786. width: 100%;
  2787. height: 100%;
  2788. }
  2789. .el-icon-circle-close {
  2790. position: absolute;
  2791. top: 5px;
  2792. right: 5px;
  2793. background-color: white;
  2794. border-radius: 50%;
  2795. }
  2796. .ballot-info {
  2797. width: 163px;
  2798. height: 38px;
  2799. text-align: center;
  2800. line-height: 32px;
  2801. border-radius: 50px;
  2802. position: absolute;
  2803. top: 290px;
  2804. right: 582px;
  2805. z-index: 999;
  2806. cursor: pointer;
  2807. opacity: 0;
  2808. }
  2809. .ballot-login {
  2810. width: 100%;
  2811. height: 100%;
  2812. color: #fff;
  2813. font-size: 14px;
  2814. font-weight: 700;
  2815. }
  2816. .voteBallot {
  2817. position: fixed;
  2818. left: 67%;
  2819. top: 11%;
  2820. transform: translate(-800px, -50%);
  2821. z-index: 999;
  2822. width: 200px;
  2823. height: 71px;
  2824. box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.5);
  2825. }
  2826. .verify {
  2827. width: 138px;
  2828. height: 35px;
  2829. z-index: 99999;
  2830. position: absolute;
  2831. top: 0;
  2832. right: 20px;
  2833. }
  2834. .voteWarn {
  2835. height: 25px;
  2836. color: red;
  2837. font-size: 10px;
  2838. line-height: 30px;
  2839. transition: height 2s;
  2840. }
  2841. .advertise {
  2842. border: 1px solid #ccc;
  2843. box-sizing: border-box;
  2844. z-index: 999;
  2845. box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.5);
  2846. cursor: pointer;
  2847. }
  2848. .advertiseLeft {
  2849. width: 150px;
  2850. height: 455px;
  2851. position: fixed;
  2852. top: 50%;
  2853. left: 200px;
  2854. }
  2855. .advertiseRight {
  2856. width: 80px;
  2857. height: 300px;
  2858. position: fixed;
  2859. top: 40%;
  2860. right: 20px;
  2861. }
  2862. .advertiseUnderRight {
  2863. width: 180px;
  2864. height: 150px;
  2865. position: fixed;
  2866. top: 80%;
  2867. right: 20px;
  2868. }
  2869. .close {
  2870. width: 150px;
  2871. background: #f5f5f5;
  2872. cursor: pointer;
  2873. font-size: 14px;
  2874. text-align: center;
  2875. /*color: #ccc;*/
  2876. }
  2877. .close1 {
  2878. width: 150px;
  2879. /* background: #f5f5f5; */
  2880. cursor: pointer;
  2881. font-size: 14px;
  2882. text-align: center;
  2883. }
  2884. .new {
  2885. position: relative;
  2886. z-index: 1;
  2887. float: right;
  2888. width: 38px;
  2889. height: 20px;
  2890. margin-right: 25%;
  2891. line-height: 20px;
  2892. background: red;
  2893. color: white;
  2894. text-align: center;
  2895. border-radius: 9px;
  2896. font-size: 13px;
  2897. }
  2898. .broadcast {
  2899. width: 100%;
  2900. background-color: #2b5e9e;
  2901. height: 55px;
  2902. line-height: 55px;
  2903. margin: 20px 0 0 0;
  2904. padding: 0 28px;
  2905. border-top-left-radius: 35px;
  2906. border-top-right-radius: 35px;
  2907. white-space: nowrap;
  2908. /* overflow: hidden; */
  2909. }
  2910. @-webkit-keyframes short {
  2911. 0% {
  2912. -webkit-transform: translate3d(0, 0, 0);
  2913. transform: translate3d(0, 0, 0);
  2914. }
  2915. 100% {
  2916. -webkit-transform: translate3d(-300px, 0, 0);
  2917. transform: translate3d(-280px, 0, 0);
  2918. }
  2919. }
  2920. @-webkit-keyframes long {
  2921. 0% {
  2922. -webkit-transform: translate3d(0, 0, 0);
  2923. transform: translate3d(0, 0, 0);
  2924. }
  2925. 100% {
  2926. -webkit-transform: translate3d(-300px, 0, 0);
  2927. transform: translate3d(-980px, 0, 0);
  2928. }
  2929. }
  2930. .testtest_one {
  2931. width: max-content;
  2932. height: 100%;
  2933. }
  2934. .testtest_one span {
  2935. vertical-align: top;
  2936. }
  2937. .testtest_tow {
  2938. width: max-content;
  2939. /* 动画部分 */
  2940. /* animation-name: rowup;
  2941. animation-duration: 5s;
  2942. animation-iteration-count: infinite; */
  2943. -webkit-animation: 10s short linear infinite normal;
  2944. animation: 10s short linear infinite normal;
  2945. }
  2946. .testtest_three {
  2947. width: max-content;
  2948. /* 动画部分 */
  2949. /* animation-name: rowup;
  2950. animation-duration: 5s;
  2951. animation-iteration-count: infinite; */
  2952. -webkit-animation: 12s long linear infinite normal;
  2953. animation: 12s long linear infinite normal;
  2954. }
  2955. .scroll-up {
  2956. height: 50px;
  2957. line-height: 50px;
  2958. overflow: hidden;
  2959. }
  2960. </style>