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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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. wx.showModal({
  37. title: '模拟两种情况',
  38. confirmText: '过期',
  39. cancelText: '不过期',
  40. success: function(res) {
  41. if (res.confirm) {
  42. console.log('用户点击确定');
  43. navTo('/after-sale/to-bookkeeping-card/pay-page')
  44. } else if (res.cancel) {
  45. console.log('用户点击取消');
  46. navTo('/after-sale/to-bookkeeping-card/base-change-people')
  47. }
  48. }
  49. });
  50. }
  51. </script>
  52. <style>
  53. page {
  54. width: 100%;
  55. height: 100%;
  56. }
  57. </style>
  58. <style lang="scss" scoped>
  59. .formBox {
  60. height: 90%;
  61. width: 100%;
  62. // background-color: red;
  63. .from_item {
  64. padding: 30rpx;
  65. padding-top: 60rpx;
  66. position: relative;
  67. .label {
  68. font-size: 28rpx;
  69. font-family: Microsoft YaHei;
  70. font-weight: 400;
  71. color: #777777;
  72. }
  73. input {
  74. font-size: 32rpx;
  75. font-family: Microsoft YaHei;
  76. font-weight: 400;
  77. color: #333333;
  78. line-height: 58rpx;
  79. border-bottom: 1rpx solid #DCDCDC;
  80. margin-top: 50rpx;
  81. padding-bottom: 10rpx;
  82. }
  83. .btn {
  84. position: absolute;
  85. right: 45rpx;
  86. bottom: 48rpx;
  87. background: transparent;
  88. font-size: 30rpx;
  89. color: #15E5C1;
  90. z-index: 999;
  91. }
  92. }
  93. .submit {
  94. background: linear-gradient(to left, #43A1E0 0%, #13E7C1 100%);
  95. width: 670rpx;
  96. height: 80rpx;
  97. line-height: 80rpx;
  98. color: #fff;
  99. border-radius: 100rpx;
  100. position: fixed;
  101. bottom: 100rpx;
  102. left: 50%;
  103. transform: translate(-50%);
  104. font-size: 32rpx;
  105. font-family: Microsoft YaHei;
  106. font-weight: 400;
  107. color: #FFFFFF;
  108. line-height: 80rpx;
  109. }
  110. }
  111. </style>