index.vue 2.0 KB

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