UserLayout.vue 4.9 KB

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