OldUserLayout.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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. <!-- 技能博物馆 -->
  8. <!-- <img src="~@/assets/logo-cd-left1.png" class="logo" alt="logo">
  9. <span class="title">OA办公系统</span> -->
  10. <img src="~@/assets/logo-cd.png" class="logo" alt="logo">
  11. <span class="title">上海萃颠信息科技有限公司</span>
  12. </a>
  13. </div>
  14. <div class="desc">
  15. <!-- Jeecg Boot 是中国最具影响力的 企业级 快速开发平台 -->
  16. </div>
  17. </div>
  18. <route-view></route-view>
  19. <div class="footer">
  20. <div class="links">
  21. <a href="http://doc.jeecg.com" target="_blank">帮助</a>
  22. <a href="https://github.com/zhangdaiscott/jeecg-boot" target="_blank">隐私</a>
  23. <a href="https://github.com/zhangdaiscott/jeecg-boot/blob/master/LICENSE" target="_blank">条款</a>
  24. </div>
  25. <div class="copyright">
  26. Copyright &copy; 2019 <a href="http://www.jeecg.com" target="_blank">JEECG开源社区</a> 出品
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. </template>
  32. <script>
  33. import RouteView from '@/components/layouts/RouteView'
  34. import { mixinDevice } from '@/utils/mixin.js'
  35. export default {
  36. name: 'UserLayout',
  37. components: { RouteView },
  38. mixins: [mixinDevice],
  39. data () {
  40. return {}
  41. },
  42. mounted () {
  43. document.body.classList.add('userLayout')
  44. },
  45. beforeDestroy () {
  46. document.body.classList.remove('userLayout')
  47. }
  48. }
  49. </script>
  50. <style lang="less" scoped>
  51. #userLayout.user-layout-wrapper {
  52. height: 100%;
  53. &.mobile {
  54. .container {
  55. .main {
  56. max-width: 368px;
  57. width: 98%;
  58. }
  59. }
  60. }
  61. .container {
  62. width: 100%;
  63. min-height: 100%;
  64. background: #f0f2f5 url(~@/assets/background.svg) no-repeat 50%;
  65. background-size: 100%;
  66. padding: 110px 0 144px;
  67. position: relative;
  68. a {
  69. text-decoration: none;
  70. }
  71. .top {
  72. text-align: center;
  73. .header {
  74. height: 44px;
  75. line-height: 44px;
  76. .badge {
  77. position: absolute;
  78. display: inline-block;
  79. line-height: 1;
  80. vertical-align: middle;
  81. margin-left: -12px;
  82. margin-top: -10px;
  83. opacity: 0.8;
  84. }
  85. .logo {
  86. height: 44px;
  87. vertical-align: top;
  88. margin-right: 16px;
  89. border-style: none;
  90. }
  91. .title {
  92. font-size: 33px;
  93. color: rgba(0, 0, 0, .85);
  94. 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";
  95. font-weight: 600;
  96. position: relative;
  97. top: 2px;
  98. }
  99. }
  100. .desc {
  101. font-size: 14px;
  102. color: rgba(0, 0, 0, 0.45);
  103. margin-top: 12px;
  104. margin-bottom: 40px;
  105. }
  106. }
  107. .main {
  108. min-width: 260px;
  109. width: 368px;
  110. margin: 0 auto;
  111. }
  112. .footer {
  113. position: absolute;
  114. width: 100%;
  115. bottom: 0;
  116. padding: 0 16px;
  117. margin: 48px 0 24px;
  118. text-align: center;
  119. .links {
  120. margin-bottom: 8px;
  121. font-size: 14px;
  122. a {
  123. color: rgba(0, 0, 0, 0.45);
  124. transition: all 0.3s;
  125. &:not(:last-child) {
  126. margin-right: 40px;
  127. }
  128. }
  129. }
  130. .copyright {
  131. color: rgba(0, 0, 0, 0.45);
  132. font-size: 14px;
  133. }
  134. }
  135. }
  136. }
  137. </style>