index.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <template>
  2. <div :class="['app-container', 'home',processClass]">
  3. <iframe :src="bigDataUrl" frameborder="0"></iframe>
  4. <span @click="goBigData" class="full_screen-icon"></span>
  5. </div>
  6. </template>
  7. <script>
  8. export default {
  9. name: "Index",
  10. data() {
  11. return {
  12. // 版本号
  13. version: "3.8.6",
  14. processClass: '',
  15. bigDataUrl: process.env.VUE_APP_DIG_DATA_URL
  16. };
  17. },
  18. created(){
  19. console.log("bigDataUrl===",this.bigDataUrl,process.env)
  20. // 根据环境切换名称和背景图
  21. // if(process.env.NODE_ENV == 'development') { // 开发环境
  22. // this.processClass = 'login-dev';
  23. // } else if (process.env.NODE_ENV == 'staging') { // 测试环境
  24. // this.processClass = 'login-stage';
  25. // } else if (process.env.NODE_ENV == 'production') { // 生产环境
  26. // this.processClass = 'login-prod';
  27. // }
  28. },
  29. methods: {
  30. goTarget(href) {
  31. window.open(href, "_blank");
  32. },
  33. goBigData(){
  34. window.open(this.bigDataUrl, "_blank");
  35. }
  36. }
  37. };
  38. </script>
  39. <style scoped lang="scss">
  40. .app-container{
  41. display: flex;
  42. justify-content: center;
  43. align-items: center;
  44. min-height: calc(100vh - 84px);
  45. background-size: 100% 100%;
  46. position: relative;
  47. > iframe {
  48. width: 100%;
  49. min-height: calc(100vh - 84px);
  50. }
  51. .full_screen-icon {
  52. position: absolute;
  53. background-image: url("../assets/sssss.png") !important;
  54. background-repeat: no-repeat;
  55. background-size: 100% 100%;
  56. z-index: 99;
  57. width: 28px;
  58. height: 28px;
  59. top: 43px;
  60. right: 80px;
  61. }
  62. }
  63. .login-prod {
  64. background-image: url("../assets/images/login-prod.jpg") !important;
  65. }
  66. .login-stage {
  67. background-image: url("../assets/index_bgm.jpg") !important;
  68. }
  69. .login-dev {
  70. background-image: url("../assets/index_bgm.jpg") !important;
  71. }
  72. .home {
  73. blockquote {
  74. padding: 10px 20px;
  75. margin: 0 0 20px;
  76. font-size: 17.5px;
  77. border-left: 5px solid #eee;
  78. }
  79. hr {
  80. margin-top: 20px;
  81. margin-bottom: 20px;
  82. border: 0;
  83. border-top: 1px solid #eee;
  84. }
  85. .col-item {
  86. margin-bottom: 20px;
  87. }
  88. ul {
  89. padding: 0;
  90. margin: 0;
  91. }
  92. font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  93. font-size: 13px;
  94. color: #676a6c;
  95. overflow-x: hidden;
  96. ul {
  97. list-style-type: none;
  98. }
  99. h4 {
  100. margin-top: 0px;
  101. }
  102. h2 {
  103. margin-top: 10px;
  104. font-size: 26px;
  105. font-weight: 100;
  106. }
  107. p {
  108. margin-top: 10px;
  109. b {
  110. font-weight: 700;
  111. }
  112. }
  113. .update-log {
  114. ol {
  115. display: block;
  116. list-style-type: decimal;
  117. margin-block-start: 1em;
  118. margin-block-end: 1em;
  119. margin-inline-start: 0;
  120. margin-inline-end: 0;
  121. padding-inline-start: 40px;
  122. }
  123. }
  124. }
  125. </style>