login.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <template>
  2. <view class="df jcc aic myComRoot">
  3. <view class="df aic login-center">
  4. <view>
  5. <view class="login-lefttitle1">虚拟仿真实验网站首页</view>
  6. <view class="login-lefttitle2">记录产品分享设计</view>
  7. <view class="login-leftpic">
  8. <img src="../../assets/login/loginPic1.png" />
  9. </view>
  10. </view>
  11. <!-- 中间竖线 -->
  12. <view class="login-middleline"></view>
  13. <LoginByPWD class="showborder" v-show="visibleLoginByPWD" v-on:onLogin="onLogin" v-on:onForget="onForget"></LoginByPWD>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. import LoginByPWD from './loginByPWD.vue'
  19. export default {
  20. components: {
  21. LoginByPWD,
  22. },
  23. data() {
  24. return {
  25. visibleLoginByPWD: true,
  26. }
  27. },
  28. methods: {
  29. onLogin: function() {
  30. this.$emit("onLogin");
  31. this.visibleLoginByPWD = false;
  32. },
  33. }
  34. }
  35. </script>
  36. <style>
  37. .login-center {
  38. /* width: 1431px;
  39. height: 752px; */
  40. width: 74.5vw;
  41. height: 39.1vw;
  42. background: #FFFFFF;
  43. box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.1);
  44. border-radius: 10px;
  45. /* margin-top: 86px; */
  46. justify-content: space-evenly;
  47. }
  48. .login-lefttitle1 {
  49. /* font-size: 26px; */
  50. font-size: 1.4vw;
  51. font-family: MicrosoftYaHei;
  52. color: #020202;
  53. /* line-height: 35px; */
  54. line-height: 1.8vw;
  55. /* letter-spacing: 2px; */
  56. letter-spacing: 0.02vw;
  57. }
  58. .login-lefttitle2 {
  59. /* font-size: 20px; */
  60. font-size: 1.041vw;
  61. font-family: MicrosoftYaHei;
  62. color: #6C6F6E;
  63. /* line-height: 26px;
  64. letter-spacing: 1px;
  65. margin-top: 16px; */
  66. line-height: 1.4vw;
  67. letter-spacing: 1px;
  68. margin-top: 0.8vw;
  69. }
  70. .login-leftpic {
  71. /* margin-top: 79px;
  72. margin-left: 15px; */
  73. margin-top: 4.114vw;
  74. margin-left: 0.07vw;
  75. }
  76. .login-leftpic img {
  77. width: 17.552vw;
  78. }
  79. .login-middleline {
  80. width: 0.1vw;
  81. height: 29vw;
  82. background-color: #979797;
  83. opacity: 0.2;
  84. }
  85. </style>