register.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <template>
  2. <view class="content">
  3. <view class="row-input">
  4. <text class="name">+86</text>
  5. <input placeholder="手机号码" maxlength="11" />
  6. </view>
  7. <view class="row-input">
  8. <text class="name">验证码</text>
  9. <input placeholder="输入验证码" maxlength="6" />
  10. <view class="code">
  11. <text>获取验证码</text>
  12. </view>
  13. </view>
  14. <view class="row-input">
  15. <text class="name">登录密码</text>
  16. <input placeholder="6~16位字母和数字结合" maxlength="16" />
  17. </view>
  18. <view class="row-input">
  19. <text class="name">确认密码</text>
  20. <input placeholder="再次输入您的密码" maxlength="16" />
  21. </view>
  22. <view class="tip-link">
  23. <checkbox :checked="true" style="transform: scale(0.6);" />
  24. <text>我同意并接受</text>
  25. <text class="link">《用户协议》</text>
  26. </view>
  27. <view class="register-btn">注册</view>
  28. </view>
  29. </template>
  30. <script>
  31. export default {
  32. data() {
  33. return {}
  34. },
  35. }
  36. </script>
  37. <style lang="scss">
  38. page {
  39. background-color: #0b0c14;
  40. }
  41. .content {
  42. padding: 40rpx;
  43. .row-input {
  44. display: flex;
  45. justify-content: flex-start;
  46. align-items: center;
  47. height: 110rpx;
  48. padding: 0 30rpx;
  49. background-color: #2b2f41;
  50. border-radius: 8rpx;
  51. margin-bottom: 50rpx;
  52. font-size: 30rpx;
  53. .name {
  54. width: 150rpx;
  55. letter-spacing: 4rpx;
  56. color: #FFFFFF;
  57. }
  58. input {
  59. flex: 1;
  60. color: #a1a2a3;
  61. }
  62. .code {
  63. display: flex;
  64. justify-content: flex-end;
  65. letter-spacing: 2rpx;
  66. width: 180rpx;
  67. color: #1e70fe;
  68. }
  69. }
  70. .register-btn {
  71. margin-top: 60rpx;
  72. display: flex;
  73. justify-content: center;
  74. align-items: center;
  75. font-size: 35rpx;
  76. letter-spacing: 15rpx;
  77. color: #FFFFFF;
  78. height: 110rpx;
  79. border-radius: 8rpx;
  80. background-image: linear-gradient(to right, #3feaea, #0168e6);
  81. }
  82. .tip-link{
  83. display: flex;
  84. justify-content: flex-start;
  85. align-items: center;
  86. color: #FFFFFF;
  87. letter-spacing: 4rpx;
  88. font-size: 28rpx;
  89. .link{
  90. color: #007AFF;
  91. }
  92. }
  93. }
  94. </style>