UserLayout.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <template>
  2. <div id="userLayout" :class="['user-layout-wrapper', device]">
  3. <div class="container">
  4. <div class="top">
  5. <div class="header">
  6. <img src="~@/assets/logo.png" class="logo" alt="logo">
  7. <span class="title">欢迎登陆短视频流量投放系统</span>
  8. </div>
  9. <div class="desc">
  10. Tomorrow may be cruel, but, I want see
  11. </div>
  12. </div>
  13. <route-view></route-view>
  14. <div class="footer">
  15. <div class="links">
  16. <a href="https://www.nosum.cn/">首页</a>
  17. <a href="https://blog.csdn.net/qq_41098163">CSDN</a>
  18. <a href="https://www.aliyun.com/?accounttraceid=2b30b46a-dab9-4099-9800-3f3c74ed04fb&source=5176.11533457&userCode=fzfxtn3t&type=copy/">阿里云</a>
  19. <a href="https://git.nosum.cn/">GIT</a>
  20. </div>
  21. <div class="copyright">
  22. Copyright &copy; 2019-2022 Deliver
  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. &.mobile {
  50. .container {
  51. .main {
  52. max-width: 368px;
  53. width: 98%;
  54. }
  55. }
  56. }
  57. .container {
  58. width: 100%;
  59. min-height: 100%;
  60. background: #f0f2f5 url(~@/assets/background.svg) no-repeat 50%;
  61. background-size: 100%;
  62. padding: 110px 0 144px;
  63. position: relative;
  64. a {
  65. text-decoration: none;
  66. }
  67. .top {
  68. text-align: center;
  69. .header {
  70. height: 44px;
  71. line-height: 44px;
  72. .badge {
  73. position: absolute;
  74. display: inline-block;
  75. line-height: 1;
  76. vertical-align: middle;
  77. margin-left: -12px;
  78. margin-top: -10px;
  79. opacity: 0.8;
  80. }
  81. .logo {
  82. height: 44px;
  83. vertical-align: top;
  84. margin-right: 16px;
  85. border-style: none;
  86. }
  87. .title {
  88. font-size: 33px;
  89. color: rgba(0, 0, 0, .85);
  90. font-family: Avenir, 'Helvetica Neue', Arial, Helvetica, sans-serif;
  91. font-weight: 600;
  92. position: relative;
  93. top: 2px;
  94. }
  95. }
  96. .desc {
  97. font-size: 14px;
  98. color: rgba(0, 0, 0, 0.45);
  99. margin-top: 12px;
  100. margin-bottom: 40px;
  101. }
  102. }
  103. .main {
  104. min-width: 260px;
  105. width: 368px;
  106. margin: 0 auto;
  107. }
  108. .footer {
  109. position: absolute;
  110. width: 100%;
  111. bottom: 0;
  112. padding: 0 16px;
  113. margin: 48px 0 24px;
  114. text-align: center;
  115. .links {
  116. margin-bottom: 8px;
  117. font-size: 14px;
  118. a {
  119. color: rgba(0, 0, 0, 0.45);
  120. transition: all 0.3s;
  121. &:not(:last-child) {
  122. margin-right: 40px;
  123. }
  124. }
  125. }
  126. .copyright {
  127. color: rgba(0, 0, 0, 0.45);
  128. font-size: 14px;
  129. }
  130. }
  131. }
  132. }
  133. </style>