UserLayout.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <template>
  2. <div id="userLayout" :class="['user-layout-wrapper', device]">
  3. <div class="container">
  4. <div class="top">
  5. <div class="header">
  6. <a >
  7. <img src="~@/assets/login/title4.png" class="logo" alt="logo">
  8. </a>
  9. </div>
  10. <!-- <div class="desc">
  11. Jeecg Boot 是中国最具影响力的 企业级 低代码平台
  12. </div>-->
  13. </div>
  14. <route-view></route-view>
  15. <div class="footer">
  16. <!-- <div class="links">
  17. <a href="http://doc.jeecg.com" target="_blank">帮助</a>
  18. <a href="https://github.com/zhangdaiscott/jeecg-boot" target="_blank">隐私</a>
  19. <a href="https://github.com/zhangdaiscott/jeecg-boot/blob/master/LICENSE" target="_blank">条款</a>
  20. </div>-->
  21. <div class="copyright">
  22. <!-- Copyright &copy; 2019 <a href="http://www.sdjintian.com" target="_blank">金田产业发展集团</a> 出品-->
  23. </div>
  24. </div>
  25. <img src='@/assets/login/left-bg.png' class='left-img' alt=''>
  26. </div>
  27. </div>
  28. </template>
  29. <script>
  30. import RouteView from "@/components/layouts/RouteView"
  31. import { mixinDevice } from '@/utils/mixin.js'
  32. export default {
  33. name: "UserLayout",
  34. components: { RouteView },
  35. mixins: [mixinDevice],
  36. data () {
  37. return {}
  38. },
  39. mounted () {
  40. document.body.classList.add('userLayout')
  41. },
  42. beforeDestroy () {
  43. document.body.classList.remove('userLayout')
  44. },
  45. }
  46. </script>
  47. <style lang="less" scoped>
  48. #userLayout.user-layout-wrapper {
  49. height: 100%;
  50. background: #f0f2f5 url(~@/assets/login/background.jpg) no-repeat 50%;
  51. background-size: 100%;
  52. //overflow: hidden;
  53. &.mobile {
  54. .container {
  55. .main {
  56. max-width: 368px;
  57. width: 98%;
  58. position: relative;
  59. z-index: 300;
  60. }
  61. }
  62. }
  63. .container {
  64. width: 100%;
  65. height: 100%;
  66. padding: 6% 0 144px;
  67. padding-right: 90px;
  68. position: relative;
  69. .left-img{
  70. position: absolute;
  71. top: 8%;
  72. left: 36px;
  73. width:70%
  74. }
  75. a {
  76. text-decoration: none;
  77. }
  78. .top {
  79. text-align: left;
  80. position: relative;
  81. z-index: 300;
  82. .header {
  83. height: 44px;
  84. line-height: 44px;
  85. .badge {
  86. position: absolute;
  87. display: inline-block;
  88. line-height: 1;
  89. vertical-align: middle;
  90. margin-left: -12px;
  91. margin-top: -10px;
  92. opacity: 0.8;
  93. }
  94. .logo {
  95. //height: 44px;
  96. vertical-align: top;
  97. margin-right: -16px;
  98. border-style: none;
  99. margin-left: 110px;
  100. margin-top: -50px;
  101. width: 40%;
  102. }
  103. .title {
  104. font-size: 33px;
  105. color: rgba(0, 0, 0, .85);
  106. font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  107. font-weight: 600;
  108. position: relative;
  109. top: 2px;
  110. }
  111. }
  112. .desc {
  113. font-size: 14px;
  114. color: rgba(0, 0, 0, 0.45);
  115. margin-top: 12px;
  116. margin-bottom: 40px;
  117. }
  118. }
  119. .main {
  120. min-width: 260px;
  121. width: 25%;
  122. margin: 0 auto;
  123. margin-top:4% ;
  124. margin-right: 0px;
  125. }
  126. .footer {
  127. position: absolute;
  128. width: 100%;
  129. bottom: 0;
  130. padding: 0 16px;
  131. margin: 48px 0 24px;
  132. text-align: center;
  133. .links {
  134. margin-bottom: 8px;
  135. font-size: 14px;
  136. a {
  137. color: rgba(0, 0, 0, 0.45);
  138. transition: all 0.3s;
  139. &:not(:last-child) {
  140. margin-right: 40px;
  141. }
  142. }
  143. }
  144. .copyright {
  145. color: rgba(0, 0, 0, 0.45);
  146. font-size: 14px;
  147. }
  148. }
  149. }
  150. }
  151. </style>