footersNewFR.vue 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  1. <template>
  2. <div class="footers2">
  3. <div class="autoBox">
  4. <span class="LeftBracket"></span>
  5. <span class="RightBracket"></span>
  6. <div class="centerBracket">
  7. <div class="centerBracket_div1">
  8. <span
  9. style="color: #e0edee;margin-left: -40px;margin-right: 20px;font-size: 14px;">Organisateur principal</span>
  10. <img src="@/assets/img/home/footer/footerLogo.png" alt="" style="height:88%;vertical-align: middle;"
  11. @click="toViewChange">
  12. <!-- href="https://www.geidco.org.cn/" -->
  13. </div>
  14. <div style="margin:0px 0 10px 0;background:#8395b3;border:1px solid #5a729b"></div>
  15. <div class="centerBracket_div4">
  16. <span @click="getAboutMenu('关于我们')" class="cursor">À propos de nous</span>
  17. <span>|</span>
  18. <span @click="getAboutMenu('用户协议')" class="cursor">Convention d'utilisation</span>
  19. <span>|</span>
  20. <span @click="getAboutMenu('隐私政策')" class="cursor">Politique de confidentialité</span>
  21. <span>|</span>
  22. <span @click="toViewLega('helpCenter')" class="cursor">Centre d'aide</span>
  23. <span>|</span>
  24. <span @click="cofLogin" class="cursor">Commentaires</span>
  25. </div>
  26. <div class="centerBracket_div3"
  27. style="width:100%;min-width: 700px;position: relative;left:50%;transform: translateX(-50%);">
  28. <span>{{ year }} GEIDCO
  29. <span @click="toView" class="cursor">Tous </span>
  30. <span class="cursor" @click="toNewHome"> droits </span>
  31. <span>réservés.
  32. <!-- <a style="color:#fff;" class="beianSrc"
  33. href="https://beian.miit.gov.cn/#/Integrated/index"
  34. target="_blank">京ICP备19029734号-3</a>. -->
  35. </span>
  36. <span> &ensp;&ensp; </span>
  37. <span style="text-align: center;color: #fff;font-size: 14px;">
  38. &emsp; E-mail: <span> </span> geidcp-info@geidco.org
  39. </span>
  40. </span>
  41. </div>
  42. </div>
  43. </div>
  44. <div id="dialog">
  45. <el-dialog :visible.sync="dialogVisible" width="30%" ref="dialog" center>
  46. <div style="min-height: 120px;">
  47. <span style="font-size: 23px;text-align: center;display: block;width: 100%;">
  48. Le lien que vous avez visité est sur le point de quitter le site web de can global. Voulez-vous
  49. continuer?
  50. </span>
  51. </div>
  52. <span slot="footer" class="dialog-footer"
  53. style="height: 50px;display: block;width: 100%;color: #ab0d07;font-size: 20px;">
  54. <span style="margin-right:30px;padding: 10px 18px;
  55. background:linear-gradient(#eee, #f1f1f1,#e6e6e6);
  56. border-radius: 10px;cursor: pointer;" @click="toViewChange('1')">
  57. Continuer la visite
  58. </span>
  59. <span @click="dialogVisible = false" style="cursor: pointer;">Abandonner</span>
  60. </span>
  61. </el-dialog>
  62. </div>
  63. <!-- 用户协议 -->
  64. <div>
  65. <el-dialog width="60%"
  66. :title="$i18n.locale == 'en' ? '《User Agreement of Global Energy Interconnection Development and Cooperation Platform》' : '《全球能源互联网发展合作平台用户协议》'"
  67. :visible.sync="innerVisible1" append-to-body>
  68. <!-- <PlatformRegistered ></PlatformRegistered> -->
  69. <iframe v-if="$i18n.locale == 'CN'" width="100%" id="embed" name="main" ref="embed1" height="600px"
  70. :src="srcPdf3" frameborder="0"></iframe>
  71. <iframe v-if="$i18n.locale == 'en'" width="100%" id="embed" name="main" ref="embed1" height="600px"
  72. :src="srcPdf4" frameborder="0"></iframe>
  73. </el-dialog>
  74. <el-dialog width="60%"
  75. :title="$i18n.locale == 'en' ? '《Privacy Policy of Global Energy Interconnection Development and Cooperation Platform》' : '《全球能源互联网发展合作平台隐私政策》'"
  76. :visible.sync="innerVisible2" append-to-body>
  77. <!-- <LegalNotices></LegalNotices> -->
  78. <iframe v-if="$i18n.locale == 'CN'" width="100%" id="embed" name="main" ref="embed2" height="600px"
  79. :src="srcPdf" frameborder="0"></iframe>
  80. <iframe v-if="$i18n.locale == 'en'" width="100%" id="embed" name="main" ref="embed2" height="600px"
  81. :src="srcPdf2" frameborder="0"></iframe>
  82. <!-- <div>asdasdasdasd</div> -->
  83. </el-dialog>
  84. </div>
  85. <!-- 登录提示 -->
  86. <el-dialog :title="$i18n.locale == 'CN' ? '提示' : 'Reminder'" :visible.sync="toViewLogin"
  87. :width="$i18n.locale == 'CN' ? '500px' : '750px'" :height="$i18n.locale == 'CN' ? '300px' : '386px'"
  88. :before-close="toViewLoginChange">
  89. <div style="width: 100%;height: 100%;">
  90. <img src="@/assets/img/loginTips.png" alt="" style="width: 180px;height: 180px;margin-left: 20px;">
  91. <div style="float: right;margin-right: 20px;"
  92. :style="$i18n.locale == 'CN' ? 'width: 49%;margin-top: 10px;' : 'width: 453px;margin-top: -25px;'">
  93. <div style="font-size: 20px;font-weight: normal;color: #333333;
  94. font-family: HiraginoSansGB-W3, HiraginoSansGB;
  95. line-height: 40px;">
  96. Cette fonction doit être utilisée après connexion
  97. </div>
  98. <div style="font-size: 16px;font-family: HiraginoSansGB-W3, HiraginoSansGB;
  99. font-weight: normal;color: #666666;line-height: 30px;">
  100. Le système sera disponible dans <span style="color: #0091FF;font-size: 18px;">{{ num }}</span>
  101. {{
  102. $t('common.ReminderThird')
  103. }}
  104. </div>
  105. <div style="font-size: 14px;font-family: HiraginoSansGB-W3, HiraginoSansGB;
  106. font-weight: normal;color: #666666;line-height: 30px;">
  107. Si la page ne saute pas automatiquement, veuillez cliquer sur le lien suivant
  108. </div>
  109. <div style="font-size: 14px;font-family: HiraginoSansGB-W3, HiraginoSansGB;
  110. height:33px;line-height:60px;font-weight: normal;color: #0091FF;">
  111. <span style="margin-left: 40px;" class="cursor" @click="toViewLega('login')">
  112. Je veux Me Connecter
  113. </span>
  114. <span style="margin-left: 10px;" class="cursor" @click="toViewLega('Register')">
  115. Je veux m’inscrire
  116. </span>
  117. </div>
  118. </div>
  119. </div>
  120. </el-dialog>
  121. </div>
  122. </template>
  123. <script>
  124. import { getHelpColumnTree } from '@/api/operation/help/helpCenterEntity';
  125. import Base from "@/views/base/Base";
  126. import { getToken } from '@/utils/auth';
  127. export default {
  128. name: 'Footers',
  129. extends: Base,
  130. data() {
  131. return {
  132. dialogVisible: false,
  133. RegistdialogVisible: false,
  134. innerVisible1: false,
  135. innerVisible2: false,
  136. year: null,
  137. menu: [],
  138. aboutMenu: [],
  139. srcPdf: null,
  140. srcPdf2: null,
  141. srcPdf3: null,
  142. srcPdf4: null,
  143. toViewLogin: false,
  144. img: [{
  145. url: 'Instagram'
  146. }, {
  147. url: 'YouTube'
  148. }, {
  149. url: 'faceBook'
  150. }, {
  151. url: 'in'
  152. }, {
  153. url: 'Twitter'
  154. }, {
  155. url: 'WeChat'
  156. }, {
  157. url: 'microBlog'
  158. }],
  159. num: 0,
  160. timer: null,
  161. }
  162. },
  163. mounted() {
  164. this.srcPdf = '/api/file/pub/def/PrivacyPolicy_CN.pdf';
  165. this.srcPdf2 = '/api/file/pub/def/PrivacyPolicy_EN.pdf';
  166. this.srcPdf3 = '/api/file/pub/def/UserAgreement_CN.pdf';
  167. this.srcPdf4 = '/api/file/pub/def/UserAgreement_EN.pdf';
  168. let date = new Date;
  169. this.year = date.getFullYear();
  170. this.getAboutId()
  171. },
  172. watch: {
  173. "toViewLogin"() {
  174. if (this.toViewLogin == true) {
  175. this.loginTipsChange()
  176. }
  177. }
  178. },
  179. methods: {
  180. //登录跳转
  181. loginTipsChange() {
  182. const that = this;
  183. this.num = 5;
  184. this.timer = setInterval(function () {
  185. if (that.num > 0) {
  186. that.num--;
  187. } else {
  188. if (that.toViewLogin == true) {
  189. clearInterval(that.timer);
  190. that.toViewLega('login')
  191. } else {
  192. clearInterval(that.timer);
  193. }
  194. }
  195. }, 1000)
  196. },
  197. // 判断未登录跳转是否关闭
  198. toViewLoginChange(done) {
  199. this.toViewLogin = false;
  200. this.num = 5;
  201. clearInterval(this.timer);
  202. },
  203. cofLogin() {
  204. let token = getToken();
  205. console.log(!token)
  206. if (!token) {
  207. this.toViewLogin = true;
  208. } else {
  209. this.toViewLega('Feedback')
  210. }
  211. },
  212. //尾页关于我们数据连接处理
  213. getAboutMenu(type) {
  214. this.aboutMenu.forEach(item => {
  215. if (item.name == type) {
  216. this.toViewAbout('helpCenter', item.id);
  217. }
  218. })
  219. },
  220. getIconUrl(url) {
  221. return require("@/assets/img/home/footer/" + url + ".png");
  222. },
  223. toView(router, json, item) {
  224. this.$router.push({ name: 'HomeHistory' });
  225. },
  226. toNewHome() {
  227. this.$router.push({ name: 'homeNew' });
  228. },
  229. toViewLega(router, json, item) {
  230. this.$store.commit('modify', router);
  231. window.localStorage.setItem('router', router);
  232. this.$router.push({ name: router });
  233. },
  234. //跳转关于我们
  235. toViewAbout(router, id) {
  236. this.$store.commit('modify', router);
  237. window.localStorage.setItem('router', router);
  238. const { href } = this.$router.resolve({
  239. name: router,
  240. query: {
  241. key: id
  242. }
  243. });
  244. window.open(href, '_blank');
  245. },
  246. toViewChange(json) {
  247. this.dialogVisible = true;
  248. console.log(this.$refs.dialog.style)
  249. this.$refs.dialog.style.backgroundColor = 'rgba(0,0,0,.8)';
  250. if (json == 1) {
  251. this.dialogVisible = false;
  252. window.open('https://www.geidco.org.cn/');
  253. }
  254. // window.open('https://www.geidco.org')
  255. },
  256. handleClose(done) {
  257. this.RegistdialogVisible = false;
  258. },
  259. //获取关于我们id信息
  260. getAboutId() {
  261. var language = "CN"
  262. getHelpColumnTree(language).then((result) => {
  263. this.aboutMenu = [];
  264. let menuHelp = result.data;
  265. for (let i = 0; i <= menuHelp.length - 1; i++) {
  266. if (menuHelp[i].name == "关于我们" || menuHelp[i].name == "About Us") {
  267. this.aboutMenu = menuHelp[i].children;
  268. console.log(this.aboutMenu)
  269. }
  270. }
  271. })
  272. },
  273. }
  274. }
  275. </script>
  276. <style scoped>
  277. a:hover,
  278. a:active {
  279. color: red !important;
  280. }
  281. a {
  282. text-decoration: none;
  283. }
  284. .footers1 {
  285. height: 170px;
  286. }
  287. .footers2 {
  288. width: 100%;
  289. height: 170px;
  290. background: #0E4891;
  291. }
  292. .LeftBracket {
  293. float: left;
  294. width: 340px;
  295. height: 170px;
  296. background: url('../assets/img/home/LeftBracket.png') no-repeat;
  297. margin-left: 206px;
  298. margin-right: 240px;
  299. }
  300. .RightBracket {
  301. float: left;
  302. width: 340px;
  303. height: 170px;
  304. background: url('../assets/img/home/RightBracket.png') no-repeat;
  305. }
  306. .centerBracket {
  307. position: absolute;
  308. left: 320px;
  309. top: 0;
  310. width: 559px;
  311. height: 170px;
  312. }
  313. .centerBracket_div1 {
  314. margin-top: 10px;
  315. height: 64px;
  316. text-align: center;
  317. cursor: pointer;
  318. }
  319. .centerBracket_div2 {
  320. display: flex;
  321. justify-content: space-between;
  322. flex-wrap: wrap;
  323. padding: 10px 100px;
  324. font-size: 14px;
  325. color: #e0edee;
  326. }
  327. .centerBracket_div4 {
  328. display: flex;
  329. font-family: AlibabaPuHuiTiR;
  330. /* justify-content: space-between; */
  331. flex-wrap: wrap;
  332. padding: 10px 20px;
  333. font-size: 14px;
  334. color: #e0edee;
  335. }
  336. .centerBracket_div3 {
  337. text-align: center;
  338. /*display: flex;*/
  339. /*justify-content:space-between;*/
  340. /*flex-wrap:wrap;*/
  341. /*padding: 0px 90px;*/
  342. font-size: 14px;
  343. color: #e0edee;
  344. }
  345. .el-dialog__wrapper,
  346. .background {
  347. background-color: rgba(0, 0, 0, .5) !important;
  348. }
  349. </style>