phoneLogin.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <template>
  2. <view class="register">
  3. <view class="register_head">
  4. <text>手机快捷登录</text>
  5. <text>未注册过的手机号将自动创建账号</text>
  6. </view>
  7. <view class="register_ul">
  8. <view class="register_li flex">
  9. <view class="register_ipt">
  10. <input type="number" maxlength="11" placeholder="请输入手机号" placeholder-style="color:#999999" />
  11. </view>
  12. </view>
  13. <view class="register_li flex">
  14. <view class="register_ipt">
  15. <input type="password" maxlength="12" placeholder="请输入验证码" placeholder-style="color:#999999" />
  16. </view>
  17. <view class="code center">获取验证码</view>
  18. </view>
  19. </view>
  20. <button class="register_btn" hover-class="hover-view">登录</button>
  21. <view class="register_footer center">
  22. <text>密码登录</text>
  23. <text></text>
  24. <text>注册账号</text>
  25. </view>
  26. <view class="register_fast center">
  27. <text>快捷登录</text>
  28. <image src="/static/logo.png" mode=""></image>
  29. </view>
  30. <view class="register_consent center">
  31. <image src="/static/logo.png" mode=""></image>
  32. <text>登录即表明同意</text>
  33. <text class="blue">《用户协议》</text>
  34. <text>和</text>
  35. <text class="blue">《隐私政策》</text>
  36. </view>
  37. </view>
  38. </template>
  39. <script>
  40. export default {
  41. data() {
  42. return {
  43. };
  44. }
  45. }
  46. </script>
  47. <style>
  48. page {
  49. background: #FFFFFF;
  50. }
  51. </style>
  52. <style lang="scss">
  53. .register {
  54. min-height: 100vh;
  55. padding: 0 42rpx;
  56. position: relative;
  57. .register_head {
  58. display: flex;
  59. flex-direction: column;
  60. padding: 30rpx 0 40rpx 0;
  61. text {
  62. &:first-child {
  63. font-size: 40rpx;
  64. font-weight: bold;
  65. }
  66. &:last-child {
  67. color: #999999;
  68. font-size: 26rpx;
  69. margin-top: 20rpx;
  70. }
  71. }
  72. }
  73. .register_li {
  74. padding: 40rpx 0;
  75. border-bottom: 2rpx solid #DDDDDD;
  76. .register_ipt {
  77. flex: 1;
  78. input {
  79. width: 100%;
  80. font-size: 30rpx;
  81. }
  82. }
  83. .code {
  84. width: 150rpx;
  85. color: #4EABFC;
  86. font-size: 28rpx;
  87. }
  88. }
  89. }
  90. .register_btn {
  91. height: 80rpx;
  92. margin-top: 60rpx;
  93. background: #F6AF32;
  94. border-radius: 40rpx;
  95. }
  96. .register_code {
  97. color: #4EABFC;
  98. font-size: 28rpx;
  99. text-align: right;
  100. margin: 30rpx 0 50rpx 0;
  101. }
  102. .register_footer {
  103. margin: 50rpx 0 125rpx 0;
  104. text {
  105. color: #4EABFC;
  106. font-size: 26rpx;
  107. &:nth-child(2) {
  108. width: 1px;
  109. height: 25rpx;
  110. margin: 0 35rpx;
  111. background: #4EABFC;
  112. }
  113. }
  114. }
  115. .register_fast {
  116. flex-direction: column;
  117. text {
  118. color: #999999;
  119. margin-bottom: 40rpx;
  120. }
  121. image {
  122. width: 71rpx;
  123. height: 71rpx;
  124. }
  125. }
  126. .register_consent {
  127. width: 100%;
  128. position: absolute;
  129. left: 50%;
  130. bottom: 70rpx;
  131. transform: translateX(-50%);
  132. image {
  133. width: 30rpx;
  134. height: 30rpx;
  135. flex-shrink: 0;
  136. margin-right: 10rpx;
  137. }
  138. .blue {
  139. color: #4EABFC;
  140. }
  141. }
  142. </style>