You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

verification-apply.vue 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <template>
  2. <view class="formBox">
  3. <view class="from_item">
  4. <text class="label">账号验证</text>
  5. <input type="text" placeholder="输入验证码" v-model="model1.uname" placeholder-style="color:#000">
  6. </view>
  7. <view class="from_item">
  8. <text class="label">手机号码</text>
  9. <input type="text" placeholder="" v-model="model1.phone" placeholder-style="color:#000" disabled="true">
  10. </view>
  11. <view class="from_item">
  12. <text class="label">验证码</text>
  13. <input type="text" placeholder="请输入验证码" placeholder-style="color:#000">
  14. <text class="btn" @click="getCode">获取验证码</text>
  15. </view>
  16. <button class="submit" >验证</button>
  17. </view>
  18. </template>
  19. <script setup lang="ts">
  20. import {
  21. reactive
  22. } from "vue";
  23. let model1 = reactive({
  24. uname: '输入验证码',
  25. phone: '135****9090',
  26. code: ''
  27. })
  28. const getCode = () => {
  29. console.log(123);
  30. }
  31. </script>
  32. <style>
  33. page {
  34. width: 100%;
  35. height: 100%;
  36. }
  37. </style>
  38. <style lang="scss" scoped>
  39. .formBox {
  40. height: 90%;
  41. width: 100%;
  42. border-top: 1rpx solid #EEF7F7;
  43. // background-color: red;
  44. .from_item {
  45. padding: 30rpx;
  46. padding-top: 60rpx;
  47. position: relative;
  48. .label {
  49. font-size: 28rpx;
  50. font-family: Microsoft YaHei;
  51. font-weight: 400;
  52. color: #777777;
  53. }
  54. input {
  55. font-size: 32rpx;
  56. font-family: Microsoft YaHei;
  57. font-weight: 400;
  58. color: #333333;
  59. line-height: 58rpx;
  60. border-bottom: 1rpx solid #DCDCDC;
  61. margin-top: 50rpx;
  62. padding-bottom: 10rpx;
  63. }
  64. .btn {
  65. position: absolute;
  66. right: 45rpx;
  67. bottom: 48rpx;
  68. background: transparent;
  69. font-size: 30rpx;
  70. color: #15E5C1;
  71. z-index: 999;
  72. }
  73. }
  74. .submit{
  75. background: linear-gradient(to left, #43A1E0 0%, #13E7C1 100%);
  76. width: 670rpx;
  77. height: 80rpx;
  78. line-height: 80rpx;
  79. color: #fff;
  80. border-radius: 100rpx;
  81. position: fixed;
  82. bottom: 100rpx;
  83. left:50%;
  84. transform: translate(-50%);
  85. font-size: 32rpx;
  86. font-family: Microsoft YaHei;
  87. font-weight: 400;
  88. color: #FFFFFF;
  89. line-height: 80rpx;
  90. }
  91. }
  92. </style>