UserLayout.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. <template>
  2. <div id="userLayout" :class="['user-layout-wrapper', device]">
  3. <div class="container">
  4. <!-- <div ref='vantaRef' style="left: 0%;
  5. width: 99%;
  6. height: 99%;
  7. position: absolute;
  8. top: 0%;">
  9. </div>-->
  10. <div class="aui-container">
  11. <div class="aui-form">
  12. <!-- 左面图片-->
  13. <div class="aui-image">
  14. <div style="position: absolute;top: 33%">
  15. <img style="width: 150px;height: 150px;border-radius:50%" src="../../../public/logo.png"/>
  16. </div>
  17. <div class="aui-image-text" style="top: 44%;left: 26%;width: 100%;position: absolute;">
  18. <div style="color: white;font-weight: 600;font-size: 24px;}">共建反诈防线,守护财产安全</div>
  19. </div>
  20. </div>
  21. <div class="aui-formBox">
  22. <div class="top">
  23. <div class="header" style="">
  24. <a href="/">
  25. <!-- <img src="~@/assets/telecom.png" class="logo" alt="logo">-->
  26. <span class="title" style="color: #1890FF">智慧运营系统</span>
  27. </a>
  28. </div>
  29. <div class="desc">
  30. </div>
  31. </div>
  32. <route-view></route-view>
  33. <div class="footer">
  34. </div>
  35. </div>
  36. </div>
  37. </div>
  38. </div>
  39. </div>
  40. </template>
  41. <script>
  42. import RouteView from "@/components/layouts/RouteView"
  43. import {mixinDevice} from '@/utils/mixin.js'
  44. import * as THREE from 'three'
  45. import BIRDS from 'vanta/src/vanta.birds'
  46. export default {
  47. name: "UserLayout",
  48. components: {RouteView},
  49. mixins: [mixinDevice],
  50. data() {
  51. return {}
  52. },
  53. mounted() {
  54. document.body.classList.add('userLayout')
  55. this.vantaEffect = BIRDS({
  56. el: this.$refs.vantaRef,
  57. THREE: THREE
  58. })
  59. this.vantaEffect.setOptions({
  60. color: 0x3fc6ff,
  61. color2: 0xf2089f,
  62. mouseControls: false,
  63. touchControls: false,
  64. gyroControls: false,
  65. backgroundAlpha: 0.00,
  66. minHeight: 200.00,
  67. minWidth: 200.00,
  68. scale: 1.00,
  69. scaleMobile: 1.00,
  70. birdSize: 1.10,
  71. wingSpan: 10.00,
  72. speedLimit: 0.10,
  73. quantity: 4.00
  74. })
  75. },
  76. beforeDestroy() {
  77. if (this.vantaEffect) {
  78. this.vantaEffect.destroy()
  79. }
  80. document.body.classList.remove('userLayout')
  81. },
  82. }
  83. </script>
  84. <style lang="less" scoped>
  85. .aui-formBox {
  86. flex-basis: 40%;
  87. -webkit-flex-basis: 40%;
  88. box-sizing: border-box;
  89. padding: 30px 20px;
  90. background: #fff;
  91. box-shadow: 2px 9px 49px -17px #0000001a;
  92. }
  93. .aui-image-text {
  94. top: 50%;
  95. left: 50%;
  96. width: 100%;
  97. }
  98. .aui-image {
  99. padding: 250px 80px;
  100. flex-basis: 60%;
  101. -webkit-flex-basis: 60%;
  102. background-color: #0198cd;
  103. background-image: url(../../assets/20140727123732_UdfWT.jpeg);
  104. background-size: cover;
  105. }
  106. .aui-form {
  107. width: 100%;
  108. background: #eee;
  109. display: flex
  110. }
  111. .aui-container {
  112. max-width: 1000px;
  113. margin: 0 auto;
  114. box-shadow: 0 4px 8px 1px #0003;
  115. position: fixed;
  116. top: 50%;
  117. left: 50%;
  118. width: 92%;
  119. height: auto;
  120. transform: translate(-50%) translateY(-50%);
  121. -webkit-transform: translateX(-50%) translateY(-50%);
  122. }
  123. #userLayout.user-layout-wrapper {
  124. height: 100%;
  125. &.mobile {
  126. .container {
  127. .main {
  128. max-width: 368px;
  129. width: 98%;
  130. }
  131. }
  132. }
  133. .container {
  134. width: 100%;
  135. min-height: 100%;
  136. //background: #f0f2f5 url(~@/assets/background.svg) no-repeat 50%;
  137. background: rgb(240, 242, 245);
  138. background-size: 100%;
  139. padding: 110px 0 144px;
  140. position: relative;
  141. a {
  142. text-decoration: none;
  143. }
  144. .top {
  145. text-align: center;
  146. .header {
  147. height: 44px;
  148. line-height: 44px;
  149. .badge {
  150. position: absolute;
  151. display: inline-block;
  152. line-height: 1;
  153. vertical-align: middle;
  154. margin-left: -12px;
  155. margin-top: -10px;
  156. opacity: 0.8;
  157. }
  158. .logo {
  159. height: 44px;
  160. vertical-align: top;
  161. margin-right: 16px;
  162. border-style: none;
  163. }
  164. .title {
  165. font-size: 33px;
  166. color: rgba(0, 0, 0, .85);
  167. 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";
  168. font-weight: 600;
  169. position: relative;
  170. top: 2px;
  171. }
  172. }
  173. .desc {
  174. font-size: 14px;
  175. color: rgba(0, 0, 0, 0.45);
  176. margin-top: 12px;
  177. margin-bottom: 40px;
  178. }
  179. }
  180. .main {
  181. min-width: 260px;
  182. width: 368px;
  183. margin: 0 auto;
  184. }
  185. .footer {
  186. position: absolute;
  187. width: 100%;
  188. bottom: 0;
  189. padding: 0 16px;
  190. margin: 48px 0 24px;
  191. text-align: center;
  192. .links {
  193. margin-bottom: 8px;
  194. font-size: 14px;
  195. a {
  196. color: rgba(0, 0, 0, 0.45);
  197. transition: all 0.3s;
  198. &:not(:last-child) {
  199. margin-right: 40px;
  200. }
  201. }
  202. }
  203. .copyright {
  204. color: rgba(0, 0, 0, 0.45);
  205. font-size: 14px;
  206. }
  207. }
  208. }
  209. }
  210. </style>