change-bind.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <template>
  2. <view class="change-bind">
  3. <custom-nav :title="title"></custom-nav>
  4. <view class="content">
  5. <view class="item">
  6. <input type="text" maxlength="11" v-mode="oldPhone" placeholder="请输入旧手机号" />
  7. </view>
  8. <view class="item">
  9. <input type="text" maxlength="11" v-mode="newPhone" placeholder="请输入新手机号" />
  10. </view>
  11. <view class="item">
  12. <input type="text" maxlength="6" v-mode="key" placeholder="请输入6位手机验证码" />
  13. <view class="countdown">
  14. 发送验证码 <text v-if="countdown_num">{{ countdown_num }}</text>
  15. </view>
  16. </view>
  17. <view class="big-btn bg">绑定手机</view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {
  25. title: '绑定手机',
  26. show: true,
  27. countdown_num: 59,
  28. oldPhone: '',
  29. newPhone: '',
  30. key: ''
  31. }
  32. },
  33. methods: {
  34. switchPSW(index) {
  35. this.show = !this.show
  36. }
  37. }
  38. }
  39. </script>
  40. <style lang="scss">
  41. .change-bind {
  42. @include page();
  43. .content {
  44. .item {
  45. @include flex();
  46. height: 90rpx;
  47. width: 690rpx;
  48. font-size: 26rpx;
  49. margin: 20rpx auto;
  50. background: #FFFFFF;
  51. justify-content: flex-start;
  52. input {
  53. flex: 1;
  54. height: 100%;
  55. padding: 0 40rpx;
  56. box-sizing: border-box;
  57. }
  58. .countdown {
  59. @include flex();
  60. height: 56rpx;
  61. font-size: 24rpx;
  62. padding: 0 20rpx;
  63. background: #FFEFF0;
  64. margin-right: 20rpx;
  65. border-radius: 33rpx;
  66. color: $app-base-color;
  67. text {
  68. margin-left: 8rpx;
  69. }
  70. }
  71. }
  72. }
  73. }
  74. </style>