footersNewZH.vue 12 KB

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