index.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <template>
  2. <div class="ldm-login">
  3. <van-overlay :show="show" @click="show = false">
  4. <div class="wrapper flex justify-center items-center" @click.stop>
  5. <div class="block flex items-center flex-col">
  6. <div class="close" @click="onClose"></div>
  7. <img
  8. class="logo"
  9. src="https://static.caimei365.com/www/authentic/pc/ldm-logo-rect.png"
  10. alt=""
  11. />
  12. <div class="forlogoutm">
  13. <div class="form-item mb-4">
  14. <input type="text" placeholder="手机号" />
  15. </div>
  16. <div class="form-item mb-4">
  17. <input type="text" placeholder="验证码" class="code" />
  18. <span class="send">获取验证码</span>
  19. </div>
  20. <div class="submit" @click="onSubmit">登录</div>
  21. </div>
  22. </div>
  23. </div>
  24. </van-overlay>
  25. </div>
  26. </template>
  27. <script>
  28. export default {
  29. name: 'ldm-login',
  30. data() {
  31. return {
  32. show: true,
  33. }
  34. },
  35. methods: {
  36. onSubmit() {},
  37. onClose() {
  38. this.show = false
  39. },
  40. },
  41. }
  42. </script>
  43. <style scoped lang="scss">
  44. @media screen and (min-width: 768px) {
  45. .wrapper {
  46. height: 100vh;
  47. .block {
  48. position: relative;
  49. width: 532px;
  50. background: linear-gradient(180deg, #d7dbe6, #ffffff);
  51. border-radius: 45px;
  52. .close {
  53. position: absolute;
  54. right: 16px;
  55. top: 16px;
  56. width: 24px;
  57. height: 24px;
  58. background: url(https://static.caimei365.com/www/authentic/h5/icon-close.png)
  59. center no-repeat;
  60. background-size: 24px 24px;
  61. cursor: pointer;
  62. }
  63. .logo {
  64. width: 294px;
  65. height: 57px;
  66. margin: 98px 0 82px;
  67. }
  68. .form-item {
  69. position: relative;
  70. width: 464px;
  71. input {
  72. width: 464px;
  73. height: 50px;
  74. display: block;
  75. padding: 16px 24px;
  76. font-size: 14px;
  77. border: 1px solid #000000;
  78. box-sizing: border-box;
  79. background: transparent;
  80. font-size: 19px;
  81. }
  82. .code {
  83. padding-right: 220px;
  84. }
  85. .send {
  86. position: absolute;
  87. right: 18px;
  88. top: 50%;
  89. transform: translateY(-50%);
  90. font-size: 16px;
  91. color: #a62645;
  92. cursor: pointer;
  93. }
  94. }
  95. .submit {
  96. width: 200px;
  97. height: 58px;
  98. margin: 0 auto;
  99. background: #000;
  100. font-size: 16px;
  101. color: #fff;
  102. text-align: center;
  103. line-height: 58px;
  104. cursor: pointer;
  105. margin-top: 39px;
  106. margin-bottom: 59px;
  107. }
  108. }
  109. }
  110. }
  111. @media screen and (max-width: 768px) {
  112. .wrapper {
  113. height: 100vh;
  114. .block {
  115. position: relative;
  116. width: 76vw;
  117. background: linear-gradient(180deg, #d7dbe6, #ffffff);
  118. border-radius: 4.5vw;
  119. .close {
  120. position: absolute;
  121. right: 2.4vw;
  122. top: 2.4vw;
  123. width: 5.6vw;
  124. height: 5.6vw;
  125. background: url(https://static.caimei365.com/www/authentic/h5/icon-close.png)
  126. center no-repeat;
  127. background-size: 4.8vw 4.8vw;
  128. cursor: pointer;
  129. }
  130. .logo {
  131. width: 42vw;
  132. height: 8.2vw;
  133. margin: 14vw 0 11.6vw;
  134. }
  135. .form-item {
  136. position: relative;
  137. width: 66.1vw;
  138. input {
  139. width: 66.1vw;
  140. height: 7.1vw;
  141. display: block;
  142. padding: 2.2vw 3.4vw;
  143. font-size: 2.7vw;
  144. border: 0.1vw solid #000;
  145. background: transparent;
  146. box-sizing: border-box;
  147. font-size: 2.7vw;
  148. }
  149. .code {
  150. padding-right: 30vw;
  151. }
  152. .send {
  153. position: absolute;
  154. right: 3vw;
  155. top: 50%;
  156. transform: translateY(-50%);
  157. font-size: 3.2vw;
  158. color: #bc1724;
  159. cursor: pointer;
  160. }
  161. }
  162. .submit {
  163. width: 28.4vw;
  164. height: 8.2vw;
  165. margin: 0 auto;
  166. background: #000;
  167. font-size: 3.2vw;
  168. color: #fff;
  169. text-align: center;
  170. line-height: 8.2vw;
  171. margin-top: 5.6vw;
  172. margin-bottom: 8.4vw;
  173. }
  174. }
  175. }
  176. }
  177. </style>