footersNewBlack.vue 13 KB

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