Addipc.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <template>
  2. <view class="authentication">
  3. <view class="title">添加银行卡</view>
  4. <view class="inpt">
  5. <input type="number" value="" placeholder="点击输入*** 银行卡号" v-model="ipc" />
  6. <view class="right">
  7. <image class="img" src="https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-09-26-15-37-46LVTmoDST.png" mode=""></image>
  8. <view class="text1">扫描绑定</view>
  9. </view>
  10. </view>
  11. <u-button type="primary" :disabled="!canSubmit" @click="submit">下一步</u-button>
  12. </view>
  13. </template>
  14. <script>
  15. import { mapState } from 'vuex';
  16. import Titlenav from '../components/Titlenav.vue';
  17. export default {
  18. components: {
  19. Titlenav
  20. },
  21. data() {
  22. return {
  23. ipc: ''
  24. };
  25. },
  26. computed: {
  27. ...mapState(['systemInfo']),
  28. canSubmit() {
  29. if (this.ipc) {
  30. return true;
  31. } else {
  32. return false;
  33. }
  34. }
  35. },
  36. methods: {
  37. submit() {
  38. // if (!/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(this.idNo)) {
  39. // this.toast('请输入正确身份证');
  40. // return;
  41. // }
  42. uni.navigateTo({
  43. url: '/pages/Walletdetails'
  44. });
  45. }
  46. }
  47. };
  48. </script>
  49. <style lang="scss" scoped>
  50. .authentication {
  51. /deep/ .uni-input-placeholder {
  52. font-size: 13px;
  53. font-weight: 400;
  54. color: #aaabad;
  55. line-height: 24px;
  56. }
  57. /deep/ .u-btn {
  58. height: 48px;
  59. font-size: 16px;
  60. margin: 0 22px;
  61. }
  62. margin: 10px 20px 0;
  63. .title {
  64. font-size: 24px;
  65. font-weight: bold;
  66. color: #000000;
  67. line-height: 33px;
  68. }
  69. .inpt {
  70. background: #f5f7fa;
  71. border-radius: 8px;
  72. padding: 8px 16px;
  73. margin: 30px 0 60px;
  74. display: flex;
  75. align-items: center;
  76. justify-content: space-between;
  77. .right {
  78. text-align: center;
  79. .img {
  80. width: 24px;
  81. height: 24px;
  82. }
  83. .text1 {
  84. font-size: 10px;
  85. font-weight: 400;
  86. color: #aaabad;
  87. line-height: 14px;
  88. }
  89. }
  90. }
  91. }
  92. </style>