vcode-login.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <template>
  2. <view class="login">
  3. <view class="logo">
  4. <image src="../../static/images/login/logo.png" style="width: 160upx;height: 160upx;" mode="scaleToFill"></image>
  5. </view>
  6. <view class="login-from">
  7. <view class="input-item">
  8. <label for="">
  9. <image src="../../static/images/login/phone.png" style="width: 30upx;height: 40upx;" mode=""></image>
  10. </label>
  11. <input type="text" placeholder="请输入手机号">
  12. </view>
  13. <view class="input-item">
  14. <label for="">
  15. <image src="../../static/images/login/lock.png" style="width: 30upx;height: 40upx;" mode=""></image>
  16. </label>
  17. <input type="number" placeholder="请输入验证码" maxlength="6">
  18. <button class="send-vcode">获取验证码</button>
  19. </view>
  20. <view class="button-item" style="margin-top: 140upx;">
  21. <button class="login-btn">登录</button>
  22. </view>
  23. </view>
  24. <view class="third-party">
  25. <view class="title"><text>第三方登录</text></view>
  26. <view class="content">
  27. <image src="../../static/images/login/wx.png" style="width: 90upx;height: 90upx;" mode="scaleToFill"></image>
  28. </view>
  29. </view>
  30. </view>
  31. </template>
  32. <script>
  33. export default {
  34. data() {
  35. return {
  36. }
  37. },
  38. methods: {
  39. }
  40. }
  41. </script>
  42. <style lang="scss" scoped>
  43. .login {
  44. background: $primary-color;
  45. height: 100vh;
  46. width: 750rpx;
  47. /* #ifdef APP-PLUS */
  48. padding-bottom: 60upx;
  49. /* #endif */
  50. }
  51. .logo {
  52. width: 160upx;
  53. height: 160upx;
  54. background: white;
  55. border-radius: 160upx;
  56. border: 10upx solid $primary-color;
  57. margin: auto;
  58. margin-top: -60upx;
  59. position: relative;
  60. top: 80upx;
  61. z-index: 999;
  62. }
  63. .login-from {
  64. margin: auto;
  65. width: 600upx;
  66. height: 700upx;
  67. background-color: white;
  68. border-radius: 20rpx;
  69. padding: 72upx;
  70. padding-top: 180upx;
  71. box-sizing: border-box;
  72. position: relative;
  73. z-index: 2;
  74. &::after {
  75. content: "";
  76. background: url(../../static/images/login/box-bottom.png) no-repeat;
  77. background-size: contain;
  78. width: 564upx;
  79. height: 30upx;
  80. display: block;
  81. position: absolute;
  82. bottom: -30upx;
  83. left: 18upx;
  84. z-index: -1;
  85. }
  86. }
  87. .input-item {
  88. display: flex;
  89. margin-bottom: 48upx;
  90. position: relative;
  91. label {
  92. width: 50upx;
  93. }
  94. input {
  95. border-bottom: 2upx solid $primary-color;
  96. flex-grow: 1;
  97. padding: 5upx;
  98. font-size: 30upx;
  99. }
  100. }
  101. .send-vcode {
  102. background: $primary-color;
  103. color: white;
  104. font-size: 24upx;
  105. position: absolute;
  106. padding: 5upx 0;
  107. width: 160upx;
  108. line-height: normal;
  109. right: 0upx;
  110. top: -5upx;
  111. }
  112. .login-btn {
  113. height: 80upx;
  114. border: 2upx solid $primary-color;
  115. line-height: 80upx;
  116. margin: 30upx 0;
  117. font-size: 32upx;
  118. background: $primary-color;
  119. color: white;
  120. &::after {
  121. border: none;
  122. }
  123. }
  124. .third-party {
  125. margin: auto;
  126. text-align: center;
  127. margin-top: 100upx;
  128. .title {
  129. font-size: 28upx;
  130. color: white;
  131. &::before,
  132. &::after {
  133. display: inline-block;
  134. width: 100upx;
  135. height: 0upx;
  136. border: 1upx solid #ff8ca8;
  137. transform: scaleY(0.5);
  138. content: "";
  139. margin: 8upx 20upx;
  140. }
  141. }
  142. .content {
  143. margin-top: 50upx;
  144. }
  145. }
  146. </style>