UserLayout.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. position: relative;
  70. a {
  71. text-decoration: none;
  72. }
  73. .footer {
  74. position: absolute;
  75. width: 100%;
  76. bottom: 15%;
  77. padding: 0 16px;
  78. margin: 48px 0 24px;
  79. text-align: center;
  80. .links {
  81. margin-bottom: 8px;
  82. font-size: 14px;
  83. a {
  84. color: white;
  85. transition: all 0.3s;
  86. &:not(:last-child) {
  87. margin-right: 40px;
  88. }
  89. }
  90. }
  91. .copyright {
  92. color: #00eaff;
  93. font-size: 20px;
  94. font-weight: 500;
  95. font-family: PingFang SC;
  96. }
  97. }
  98. }
  99. }
  100. </style>