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.vue 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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" @click="submit">验证</button>
  17. </view>
  18. </template>
  19. <script setup lang="ts">
  20. import {
  21. reactive
  22. } from "vue";
  23. import {
  24. navTo
  25. } from "@/utils/utils"
  26. let model1 = reactive({
  27. uname: '输入验证码',
  28. phone: '135****9090',
  29. code: ''
  30. })
  31. const getCode = () => {
  32. }
  33. const submit = () => {
  34. navTo('/subpackage/after-sale/account-change/cancellation-contract')
  35. }
  36. </script>
  37. <style>
  38. page {
  39. width: 100%;
  40. height: 100%;
  41. }
  42. </style>
  43. <style lang="scss" scoped>
  44. .formBox {
  45. height: 90%;
  46. width: 100%;
  47. // background-color: red;
  48. .from_item {
  49. padding: 30rpx;
  50. padding-top: 60rpx;
  51. position: relative;
  52. .label {
  53. font-size: 28rpx;
  54. font-family: Microsoft YaHei;
  55. font-weight: 400;
  56. color: #777777;
  57. }
  58. input {
  59. font-size: 32rpx;
  60. font-family: Microsoft YaHei;
  61. font-weight: 400;
  62. color: #333333;
  63. line-height: 58rpx;
  64. border-bottom: 1rpx solid #DCDCDC;
  65. margin-top: 50rpx;
  66. padding-bottom: 10rpx;
  67. }
  68. .btn {
  69. position: absolute;
  70. right: 45rpx;
  71. bottom: 48rpx;
  72. background: transparent;
  73. font-size: 30rpx;
  74. color: #15E5C1;
  75. z-index: 999;
  76. }
  77. }
  78. .submit {
  79. background: linear-gradient(to left, #43A1E0 0%, #13E7C1 100%);
  80. width: 670rpx;
  81. height: 80rpx;
  82. line-height: 80rpx;
  83. color: #fff;
  84. border-radius: 100rpx;
  85. position: fixed;
  86. bottom: 100rpx;
  87. left: 50%;
  88. transform: translate(-50%);
  89. font-size: 32rpx;
  90. font-family: Microsoft YaHei;
  91. font-weight: 400;
  92. color: #FFFFFF;
  93. line-height: 80rpx;
  94. }
  95. }
  96. </style>