appDownload.vue 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <template>
  2. <div style="height: 100px;background-color: #fff;" class="registerBox">
  3. <div class="header1">
  4. <div class="header2">
  5. <div class="logo">
  6. <img
  7. :src="$i18n.locale=='zh'?require('@/assets/img/home/LOGO2020-12-22.png'):require('@/assets/img/home/LOGO2020-12-22.png')"
  8. alt
  9. class="cursor"
  10. :style="$i18n.locale=='zh'?'width: 336px;':'width:336px;transform:translateY(1px)'"
  11. @click="toView(0,'home')"
  12. />
  13. </div>
  14. </div>
  15. </div>
  16. <div style="width: 100%;height: 800px;background-color: #deedfe;">
  17. <div style="width: 1200px;height: 700px;margin: auto;position: relative;" class="appCload">
  18. <div style="position: absolute;top: 100px;right: 100px;">
  19. <img src="../../assets/img/home/footer/cn.png" alt="" v-if="$i18n.locale == 'zh'">
  20. <img src="../../assets/img/home/footer/en.png" alt="" v-else>
  21. </div>
  22. <div style="padding-top: 180px;">
  23. <div style="color: #2c558a;font-weight: 700;" :style="$i18n.locale=='zh'?'font-size: 60px;':'font-size: 40px;'">
  24. {{$i18n.locale=='zh'?'能联全球APP':'World of Energy Interconnection APP'}}
  25. </div>
  26. <div style="margin-top: 20px;color: #2c558a;text-indent: 5px;" :style="$i18n.locale=='zh'?'font-size: 35px;':'font-size: 30px;'">
  27. {{$i18n.locale=='zh'?'绿色 低碳 可持续发展':'Green, low carbon and sustainable development'}}
  28. </div>
  29. <div style="margin-top: 65px;font-size: 20px;margin-bottom: 20px;">
  30. {{$i18n.locale=='zh'?'请根据您的手机选择下载客户端':'Please select the download client according to your mobile phone'}}
  31. </div>
  32. <div style="position: relative;width: 153px;text-align: center;float: left;">
  33. <div ref="qrcodeAndroidEn" id="qrcodeAndroidEn" v-show="$i18n.locale=='en'"></div>
  34. <div ref="qrcodeAndroidZh" id="qrcodeAndroidZh" v-show="$i18n.locale=='zh'"></div>
  35. <div style="margin-top: 8px;">
  36. <img src="../../assets/img/home/footer/android.png" alt="" style="vertical-align: middle;">
  37. Android
  38. </div>
  39. </div>
  40. <div style="position: relative;width: 153px;text-align: center;float: left;margin-left: 50px;">
  41. <div ref="qrcodeIOSZH" id="qrcodeIOSZH" v-show="$i18n.locale=='zh'"></div>
  42. <div ref="qrcodeIOSEN" id="qrcodeIOSEN" v-show="$i18n.locale=='en'"></div>
  43. <div style="margin-top: 8px;">
  44. <img src="../../assets/img/home/footer/iphone.png" alt="" style="vertical-align: middle;">
  45. IOS
  46. </div>
  47. </div>
  48. <div style="position: relative;width: 153px;text-align: center;float: left;margin-left: 50px;">
  49. <div ref="qrcodeH5" id="qrcodeH5"></div>
  50. <div style="margin-top: 10px;">
  51. <!-- <img src="../../assets/img/home/footer/iphone.png" alt="" style="vertical-align: middle;"> -->
  52. {{$i18n.locale=='zh'?'手机网页版':'Mobile Web'}}
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. </template>
  60. <script>
  61. import QRCode from 'qrcodejs2'
  62. export default {
  63. name: "appDownload",
  64. data() {
  65. return {
  66. };
  67. },
  68. mounted() {
  69. this.qrcode();
  70. },
  71. methods: {
  72. toView(num, router, json) {
  73. console.log(num,router)
  74. this.$router.push({ name: router, query: { key: json } });
  75. this.$store.commit("modify", router);
  76. window.localStorage.setItem("router", router);
  77. if (num == 1) {
  78. let i = {
  79. label: "用户中心",
  80. value: "userCenterView",
  81. };
  82. if (this.$Cookies.get('token')) {
  83. return (this.i = 2);
  84. } else if (this.$i18n.locale == "en") {
  85. return (this.i = 3);
  86. } else {
  87. return (this.i = 1);
  88. }
  89. this.$nextTick(() => {
  90. Bus.$emit("title", i);
  91. });
  92. }
  93. },
  94. qrcode () {
  95. this.$nextTick(() => {
  96. let qrcodeAndroidEn = new QRCode('qrcodeAndroidEn', {
  97. width: 153,
  98. height: 153,
  99. text: 'https://www.geidcp.com/api/file/pub/app/apk/EN.apk', // 二维码地址
  100. })
  101. let qrcodeAndroidZh = new QRCode('qrcodeAndroidZh', {
  102. width: 153,
  103. height: 153,
  104. text: 'https://www.geidcp.com/api/file/pub/app/apk/SN.apk', // 二维码地址
  105. })
  106. let qrcodeIOSZH = new QRCode('qrcodeIOSZH', {
  107. width: 153,
  108. height: 153,
  109. text: 'https://apps.apple.com/us/app/id1543854564', // 二维码地址
  110. })
  111. let qrcodeIOSEN = new QRCode('qrcodeIOSEN', {
  112. width: 153,
  113. height: 153,
  114. text: 'https://apps.apple.com/us/app/id1543854564', // 二维码地址
  115. })
  116. let qrcodeH5 = new QRCode('qrcodeH5', {
  117. width: 153,
  118. height: 153,
  119. text: 'https://m.geidcp.com', // 二维码地址
  120. })
  121. });
  122. },
  123. },
  124. };
  125. </script>
  126. <!-- Add "scoped" attribute to limit CSS to this component only -->
  127. <style scoped>
  128. .header1 {
  129. width: 100%;
  130. height: 120px;
  131. margin: auto;
  132. background: #2c558a;
  133. /* border-bottom: 2px solid #c2c2c2; */
  134. }
  135. .header2 {
  136. width: 1200px;
  137. height: 120px;
  138. margin: auto;
  139. position: relative;
  140. border-bottom: 1px solid #fff;
  141. /* background: skyblue; */
  142. }
  143. .language {
  144. line-height: 50px;
  145. color: #ccc;
  146. font-weight: 400;
  147. font-size: 12px;
  148. }
  149. .logo {
  150. position: absolute;
  151. top: 30px;
  152. left: 421px;
  153. width: 240px;
  154. height: 55px;
  155. /* background-image: url(@/assets/logo.png); */
  156. }
  157. .title {
  158. position: absolute;
  159. top: 40px;
  160. left: 450px;
  161. font-size: 30px;
  162. font-weight: 700;
  163. color: #fff;
  164. }
  165. .appCload {
  166. background: url('../../assets/img/home/footer/bg.png');
  167. }
  168. </style>