UserLayout.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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="desc">-->
  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; 2020 乾元坤和
  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/meteorshower.jpg);
  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. .container {
  61. width: 100%;
  62. min-height: 100%;
  63. background-size: 100%;
  64. padding: 110px 0 144px;
  65. position: relative;
  66. a {
  67. text-decoration: none;
  68. }
  69. .top {
  70. text-align: center;
  71. .header {
  72. height: 44px;
  73. line-height: 44px;
  74. .badge {
  75. position: absolute;
  76. display: inline-block;
  77. line-height: 1;
  78. vertical-align: middle;
  79. margin-left: -12px;
  80. margin-top: -10px;
  81. opacity: 0.8;
  82. }
  83. .logo {
  84. height: 44px;
  85. vertical-align: top;
  86. margin-right: 16px;
  87. border-style: none;
  88. }
  89. .title {
  90. font-size: 33px;
  91. color: rgba(0, 0, 0, .85);
  92. font-family: Avenir, 'Helvetica Neue', Arial, Helvetica, sans-serif;
  93. font-weight: 600;
  94. position: relative;
  95. top: 2px;
  96. }
  97. }
  98. .desc {
  99. font-size: 24px;
  100. color: white;
  101. margin-top: 30px;
  102. margin-bottom: 40px;
  103. }
  104. }
  105. .main {
  106. min-width: 260px;
  107. width: 368px;
  108. margin: 0 auto;
  109. }
  110. .footer {
  111. position: absolute;
  112. width: 100%;
  113. bottom: 0;
  114. padding: 0 16px;
  115. margin: 48px 0 24px;
  116. text-align: center;
  117. .links {
  118. margin-bottom: 8px;
  119. font-size: 14px;
  120. a {
  121. color: white;
  122. transition: all 0.3s;
  123. &:not(:last-child) {
  124. margin-right: 40px;
  125. }
  126. }
  127. }
  128. .copyright {
  129. color: white;
  130. font-size: 14px;
  131. font-weight: bold;
  132. }
  133. }
  134. }
  135. }
  136. </style>