UserLayout.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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 href="/">-->
  7. <!-- <img src="~@/assets/logo.png" class="logo" alt="logo">-->
  8. <!-- </a>-->
  9. <!-- </div>-->
  10. <div class="top font">
  11. 设备管理系统平台
  12. </div>
  13. <!-- </div>-->
  14. <route-view></route-view>
  15. <div class="footer">
  16. <!-- <div class="links">-->
  17. <!-- <a href="_self">帮助</a>-->
  18. <!-- <a href="_self">隐私</a>-->
  19. <!-- <a href="_self">条款</a>-->
  20. <!-- </div>-->
  21. <div class="copyright">
  22. Copyright &copy; 2022 乾元坤和
  23. </div>
  24. </div>
  25. </div>
  26. </div>
  27. </template>
  28. <script>
  29. import RouteView from './RouteView'
  30. import { mixinDevice } from '@/utils/mixin'
  31. export default {
  32. name: 'UserLayout',
  33. components: { RouteView },
  34. mixins: [mixinDevice],
  35. data () {
  36. return {}
  37. },
  38. mounted () {
  39. document.body.classList.add('userLayout')
  40. },
  41. beforeDestroy () {
  42. document.body.classList.remove('userLayout')
  43. }
  44. }
  45. </script>
  46. <style lang="less" scoped>
  47. #userLayout.user-layout-wrapper {
  48. height: 100%;
  49. background: #f0f2f5 url(~@/assets/NewBg.png);
  50. background-size: 100% 100%;
  51. background-repeat: no-repeat;
  52. &.mobile {
  53. .container {
  54. .main {
  55. max-width: 368px;
  56. width: 98%;
  57. }
  58. }
  59. }
  60. .font{
  61. font-size:50px;
  62. color:#00EAFF;
  63. letter-spacing: 3px;
  64. }
  65. .container {
  66. width: 100%;
  67. min-height: 100%;
  68. background-size: 100%;
  69. padding: 110px 0 144px;
  70. position: relative;
  71. a {
  72. text-decoration: none;
  73. }
  74. .top {
  75. text-align: center;
  76. .header {
  77. height: 44px;
  78. line-height: 44px;
  79. .badge {
  80. position: absolute;
  81. display: inline-block;
  82. line-height: 1;
  83. vertical-align: middle;
  84. margin-left: -12px;
  85. margin-top: -10px;
  86. opacity: 0.8;
  87. }
  88. .logo {
  89. height: 44px;
  90. vertical-align: top;
  91. margin-right: 16px;
  92. border-style: none;
  93. }
  94. .title {
  95. font-size: 33px;
  96. color: rgba(0, 0, 0, .85);
  97. font-family: Avenir, 'Helvetica Neue', Arial, Helvetica, sans-serif;
  98. font-weight: 600;
  99. position: relative;
  100. top: 2px;
  101. }
  102. }
  103. .desc {
  104. font-size: 24px;
  105. color: white;
  106. margin-top: 30px;
  107. margin-bottom: 40px;
  108. }
  109. }
  110. .main {
  111. min-width: 260px;
  112. width: 368px;
  113. margin: 0 auto;
  114. }
  115. .footer {
  116. position: absolute;
  117. width: 100%;
  118. bottom: 15%;
  119. padding: 0 16px;
  120. margin: 48px 0 24px;
  121. text-align: center;
  122. .links {
  123. margin-bottom: 8px;
  124. font-size: 14px;
  125. a {
  126. color: white;
  127. transition: all 0.3s;
  128. &:not(:last-child) {
  129. margin-right: 40px;
  130. }
  131. }
  132. }
  133. .copyright {
  134. color: #00EAFF;
  135. font-size: 20px;
  136. font-weight: 500;
  137. font-family: PingFang SC;
  138. }
  139. }
  140. }
  141. }
  142. </style>