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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <template>
  2. <view class="container" @click="navTo('/subpackage/personal-center/setting/bank-card/bank-card-add')">
  3. <view class="">
  4. <image class="bg" style="width:100%;height: 260rpx;" :src="`${$imgUrl}bank-bg.png`"></image>
  5. <view class="content">
  6. <view class="flex">
  7. <image style="width:68rpx;height:68rpx;" :src="`${$imgUrl}gongshang.png`">
  8. </image>
  9. <view style="margin-left: 15rpx;" class="">
  10. <view class="bank">工商银行</view>
  11. <view class="card">储蓄卡</view>
  12. </view>
  13. </view>
  14. <view class="button" @click.stop='delCard()'>解除绑定</view>
  15. </view>
  16. <view class="value">6216 **** **** 8721</view>
  17. <view class='default'>默认</view>
  18. </view>
  19. </view>
  20. <view class="container" @click="navTo('/subpackage/personal-center/setting/bank-card/bank-card-add')">
  21. <view class="">
  22. <image class="bg" style="width:100%;height: 260rpx;" :src="`${$imgUrl}bank-bg.png`"></image>
  23. <view class="content">
  24. <view class="flex">
  25. <image style="width:68rpx;height:68rpx;" :src="`${$imgUrl}gongshang.png`">
  26. </image>
  27. <view style="margin-left: 15rpx;" class="">
  28. <view class="bank">工商银行</view>
  29. <view class="card">储蓄卡</view>
  30. </view>
  31. </view>
  32. <view class="button" @click.stop='delCard()'>解除绑定</view>
  33. </view>
  34. <view class="value">6216 **** **** 8721</view>
  35. <view class='default'>默认</view>
  36. </view>
  37. </view>
  38. <view style='margin-top: 40rpx;' @click="navTo('/subpackage/personal-center/setting/bank-card/bank-card-add')">
  39. <submit-button title="+ 添加银行卡">
  40. </submit-button>
  41. </view>
  42. </template>
  43. <script lang="ts" setup>
  44. import {navTo} from '@/utils/utils';
  45. const delCard=()=>{
  46. console.log("删除")
  47. }
  48. </script>
  49. <style lang="scss" scoped>
  50. .container {
  51. padding: 30rpx 30rpx 0 30rpx;
  52. position:relative;
  53. .flex {
  54. display: flex;
  55. align-items: center;
  56. }
  57. .value {
  58. position: absolute;
  59. top: 160rpx;
  60. left: 30rpx;
  61. right: 30rpx;
  62. font-size: 36rpx;
  63. font-family: Microsoft YaHei;
  64. font-weight: 400;
  65. color: #FFFFFF;
  66. text-align: center;
  67. line-height: 36rpx;
  68. }
  69. .default{
  70. position: absolute;
  71. top: 235rpx;
  72. left: 60rpx;
  73. font-size: 29rpx;
  74. font-family: Microsoft YaHei;
  75. font-weight: 400;
  76. color: #FFFFFF;
  77. line-height: 36rpx;
  78. }
  79. .content {
  80. padding: 30rpx;
  81. position: absolute;
  82. top: 30rpx;
  83. left: 30rpx;
  84. right: 30rpx;
  85. display: flex;
  86. justify-content: space-between;
  87. .bank {
  88. font-size: 28rpx;
  89. font-family: Microsoft YaHei;
  90. font-weight: 400;
  91. color: #FFFFFF;
  92. line-height: 28rpx;
  93. }
  94. .card {
  95. font-size: 24rpx;
  96. font-family: Microsoft YaHei;
  97. font-weight: 400;
  98. color: #FFFFFF;
  99. line-height: 24rpx;
  100. margin-top: 5rpx;
  101. }
  102. .button {
  103. height: 48rpx;
  104. line-height: 48rpx;
  105. border: 1px solid #FFFFFF;
  106. border-radius: 20rpx;
  107. color: #ffffff;
  108. font-size: 24rpx;
  109. text-align: center;
  110. padding: 0 20rpx;
  111. }
  112. }
  113. }
  114. </style>