page.vue 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <template>
  2. <div class="jbd-login-page-bg">
  3. <el-container class="login-container" @keyup.enter="handleLogin">
  4. <div class="official">
  5. <a href="https://www.mingjiantech.com" target="_blank">官网首页</a>
  6. </div>
  7. <el-main style="width: 80%; height: 100%; overflow: hidden; border: 0px">
  8. <div class="login-border">
  9. <div class="login-main animated fadeIn jbd-login-page-main">
  10. <!-- <span>{{ $t('login.userLogin') }}</span> -->
  11. <div class="logo-box" style="width: 100%; margin: -0.0625rem">
  12. <p>
  13. <img src="../../../assets/images/login/bg.png" style="height: 80px; width: 387px; background-size: 100% 100%" />
  14. </p>
  15. <p class="txt">欢迎登录·明鉴检测实验室信息管理系统</p>
  16. </div>
  17. <ibps-api-base-url-controller v-if="$nodeEnv === 'development'">
  18. <el-tooltip effect="dark" :content="$t('navbar.switchEnvironment')" placement="bottom">
  19. <el-button type="text" class="ibps-fr ibps-mr-5 btn-text can-hover">
  20. <ibps-icon name="wifi" style="font-size: 18px" />
  21. </el-button>
  22. </el-tooltip>
  23. </ibps-api-base-url-controller>
  24. <user-login />
  25. <login-bottom />
  26. </div>
  27. </div>
  28. </el-main>
  29. <el-footer style="width: 100%" height="55px">
  30. <div class="footer">
  31. <hr />
  32. <span style="display: flex; justify-content: space-between">
  33. <a><i class="el-icon-s-platform" /> 深圳市金源信通科技有限公司开发</a>
  34. <div>
  35. <div style="color: #8c92a4;margin-bottom: 5px;">©2021 深圳市明鉴检测专业技术有限公司 版权所有</div>
  36. <a href="https://beian.miit.gov.cn" target="_blank">粤ICP备2022077950号</a>
  37. </div>
  38. <a></a>
  39. </span>
  40. </div>
  41. </el-footer>
  42. </el-container>
  43. </div>
  44. </template>
  45. <script>
  46. import '@/assets/styles/pages/login.scss'
  47. import LoginBottom from './login-bottom'
  48. import UserLogin from './user-login'
  49. import IbpsPluginLanguage from '@/plugins/language'
  50. import IbpsApiBaseUrlController from '@/plugins/api-base-url'
  51. export default {
  52. name: 'login',
  53. components: {
  54. LoginBottom,
  55. UserLogin,
  56. IbpsPluginLanguage,
  57. IbpsApiBaseUrlController
  58. },
  59. data() {
  60. const date = new Date()
  61. return {
  62. activeName: 'user',
  63. year: date.getFullYear()
  64. }
  65. },
  66. methods: {
  67. handleLogin() {}
  68. }
  69. }
  70. </script>
  71. <style lang="scss">
  72. .jbd-login-page-bg {
  73. margin-top: 0px;
  74. height: 100%;
  75. width: 100%;
  76. background-color: #f0f3f5;
  77. //background-image: url("../../../assets/images/login/MJ02.jpg");
  78. //background-repeat:no-repeat;
  79. //background-size:100% ;
  80. }
  81. .jbd-login-page-main {
  82. //margin-top: 140px;
  83. //margin-right: 40%;
  84. margin-bottom: 20px;
  85. //box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1);
  86. padding: 30px;
  87. height: 400px;
  88. width: 460px;
  89. //background-image: url('../../../assets/images/login/03.png');
  90. background-size: 100%;
  91. background-repeat: no-repeat;
  92. //border-radius: 5%;
  93. //box-sizing: border-box;
  94. // border: solid black;
  95. //opacity:0.9;
  96. }
  97. .logo-box {
  98. width: 460px;
  99. height: 120px;
  100. margin: 0;
  101. //margin: 150px auto;
  102. position: relative;
  103. }
  104. .txt {
  105. font-family: '微软雅黑';
  106. font-size: 20px;
  107. line-height: 24px;
  108. font-weight: bold;
  109. color: grey;
  110. text-align: center;
  111. }
  112. .backindex {
  113. text-align: right;
  114. padding-right: 45px;
  115. }
  116. .backindexText {
  117. font-family: '微软雅黑';
  118. font-size: 16px;
  119. line-height: 16px;
  120. font-weight: bold;
  121. color: #a73a3a;
  122. }
  123. // .jbd-login-page-main-img {
  124. // /* box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); */
  125. // margin-top: 70px;
  126. // height: 520px;
  127. // width: 650px;
  128. // margin-right: 3%;
  129. // background-image: url('../../../assets/images/login/MJ_login0.jpg');
  130. // background-size: 100%;
  131. // background-repeat: no-repeat;
  132. // }
  133. .footer {
  134. font-size: 12px;
  135. text-align: center;
  136. a {
  137. // color: #000;
  138. width: 200px;
  139. color: #8c92a4;
  140. }
  141. }
  142. .official {
  143. margin-left: 10px;
  144. font-size: 26px;
  145. font-weight: bold;
  146. position: fixed;
  147. left: 0;
  148. top: 0;
  149. a {
  150. // color: #8c92a4;
  151. color: black;
  152. }
  153. }
  154. </style>