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.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. console.log(123);
  33. }
  34. const submit = () => {
  35. console.log("111");
  36. navTo('/subpackage/after-sale/account-change/cancellation-contract')
  37. }
  38. </script>
  39. <style>
  40. page {
  41. width: 100%;
  42. height: 100%;
  43. }
  44. </style>
  45. <style lang="scss" scoped>
  46. .formBox {
  47. height: 90%;
  48. width: 100%;
  49. // background-color: red;
  50. .from_item {
  51. padding: 30rpx;
  52. padding-top: 60rpx;
  53. position: relative;
  54. .label {
  55. font-size: 28rpx;
  56. font-family: Microsoft YaHei;
  57. font-weight: 400;
  58. color: #777777;
  59. }
  60. input {
  61. font-size: 32rpx;
  62. font-family: Microsoft YaHei;
  63. font-weight: 400;
  64. color: #333333;
  65. line-height: 58rpx;
  66. border-bottom: 1rpx solid #DCDCDC;
  67. margin-top: 50rpx;
  68. padding-bottom: 10rpx;
  69. }
  70. .btn {
  71. position: absolute;
  72. right: 45rpx;
  73. bottom: 48rpx;
  74. background: transparent;
  75. font-size: 30rpx;
  76. color: #15E5C1;
  77. z-index: 999;
  78. }
  79. }
  80. .submit {
  81. background: linear-gradient(to left, #43A1E0 0%, #13E7C1 100%);
  82. width: 670rpx;
  83. height: 80rpx;
  84. line-height: 80rpx;
  85. color: #fff;
  86. border-radius: 100rpx;
  87. position: fixed;
  88. bottom: 100rpx;
  89. left: 50%;
  90. transform: translate(-50%);
  91. font-size: 32rpx;
  92. font-family: Microsoft YaHei;
  93. font-weight: 400;
  94. color: #FFFFFF;
  95. line-height: 80rpx;
  96. }
  97. }
  98. </style>