ballotHome.vue 110 KB

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