page.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <template>
  2. <div class="jbd-login-page-bg">
  3. <el-container class="login-container" @keyup.enter="handleLogin">
  4. <el-main style="width: 100%; height: 100%; overflow: hidden;border: 0;">
  5. <div class="">
  6. <div class="logoTitle">
  7. <h1 class="login-title">
  8. <!-- <img src="../../../assets/images/login/logo.jpg" class="logoImg"> -->
  9. <!-- 金通检测/校准实验室质量管理系统(LQMS) -->
  10. <div style="height: 50px;" />
  11. </h1>
  12. <h1 class="login-title" style="font-size: 52px">{{ systemName }}</h1>
  13. </div>
  14. <div class="jbd-login-page-main">
  15. <h3>
  16. <span>{{ $t('login.userLogin') }}</span>
  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. </h3>
  25. <user-login />
  26. <login-bottom />
  27. </div>
  28. </div>
  29. </el-main>
  30. <el-footer style="width: 80%">
  31. <div style="font-size: 12px; text-align: right">
  32. <hr>
  33. <div><i class="el-icon-s-platform" /> 深圳市金源信通科技有限公司开发</div>
  34. </div>
  35. </el-footer>
  36. </el-container>
  37. </div>
  38. </template>
  39. <script>
  40. import '@/assets/styles/pages/login.scss'
  41. import LoginBottom from './login-bottom'
  42. import UserLogin from './user-login'
  43. // import IbpsPluginLanguage from '@/plugins/language'
  44. import IbpsApiBaseUrlController from '@/plugins/api-base-url'
  45. import { SYSTEM_NAME } from '@/constant'
  46. export default {
  47. name: 'login',
  48. components: {
  49. LoginBottom,
  50. UserLogin,
  51. // IbpsPluginLanguage,
  52. IbpsApiBaseUrlController
  53. },
  54. data () {
  55. return {
  56. systemName: SYSTEM_NAME,
  57. activeName: 'user'
  58. }
  59. },
  60. methods: {
  61. handleLogin () {}
  62. }
  63. }
  64. </script>
  65. <style>
  66. .jbd-login-page-bg {
  67. background-image: url('../../../assets/images/login/bgImg.png');
  68. background-repeat: no-repeat;
  69. background-size: 100% 100%;
  70. position: absolute;
  71. top: 0;
  72. left: 0;
  73. right: 0;
  74. bottom: 0;
  75. }
  76. .jbd-login-page-main {
  77. margin-top: 80px;
  78. margin-left: 3%;
  79. margin-bottom: 20px;
  80. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  81. padding: 30px;
  82. height: 340px;
  83. width: 300px;
  84. background-repeat: no-repeat;
  85. border-radius: 5%;
  86. box-sizing: border-box;
  87. }
  88. .login-title {
  89. font-size: 26px;
  90. color: #01a39e;
  91. }
  92. .logoImg {
  93. width: 30px;
  94. height: 30px;
  95. position: relative;
  96. top: 5px;
  97. }
  98. </style>
  99. <style scoped>
  100. .logoTitle {
  101. margin: 30px;
  102. }
  103. </style>