index.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <script lang="ts" setup>
  2. import { storeToRefs } from 'pinia'
  3. import { ref } from 'vue'
  4. import { useUserStore } from '@/store'
  5. import { useTokenStore } from '@/store/token'
  6. definePage({
  7. style: {
  8. navigationBarTitleText: '绑定银行卡',
  9. },
  10. })
  11. const list = ref([{
  12. bankName: '建设银行',
  13. }, {
  14. bankName: '中国银行',
  15. }, {
  16. bankName: '农业银行',
  17. }, {
  18. bankName: '工商银行',
  19. }])
  20. </script>
  21. <template>
  22. <view class="profile-container">
  23. <view class="bank-list">
  24. <view v-for="item in list" :key="item.bankName" class="bank-list-item">
  25. <view class="bank-list-item-left">
  26. <view class="bank-list-item-left-hanke">
  27. <image src="/static/images/income/y-1.png" />
  28. <view class="bank-list-item-left-hanke-text">
  29. {{ item.bankName }}
  30. </view>
  31. </view>
  32. </view>
  33. <view class="bank-list-item-right">
  34. <u-icon name="arrow-right" size="13" color="#666" />
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </template>
  40. <style lang="scss" scoped>
  41. .profile-container {
  42. font-family: Alibaba PuHuiTi;
  43. min-height: 100vh;
  44. background-color: #f5f5f5;
  45. line-height: 1;
  46. padding: 20rpx;
  47. }
  48. .bank-list {
  49. padding: 0 20rpx;
  50. background: #ffff;
  51. border-radius: 10rpx;
  52. .bank-list-item {
  53. display: flex;
  54. align-items: center;
  55. justify-content: space-between;
  56. // padding: 0 24rpx;
  57. background: #fff;
  58. border-radius: 10rpx;
  59. margin-bottom: 20rpx;
  60. border-bottom: 1rpx solid #eeeeee;
  61. &:last-child {
  62. border-bottom: none;
  63. }
  64. .bank-list-item-left {
  65. display: flex;
  66. align-items: center;
  67. gap: 14rpx;
  68. padding: 28rpx 0 28rpx 4rpx;
  69. .bank-list-item-left-hanke {
  70. display: flex;
  71. align-items: center;
  72. gap: 14rpx;
  73. font-weight: 400;
  74. font-size: 26rpx;
  75. color: #333333;
  76. image {
  77. width: 30rpx;
  78. height: 30rpx;
  79. }
  80. .bank-list-item-left-hanke-text {
  81. font-weight: 400;
  82. font-size: 26rpx;
  83. color: #333333;
  84. }
  85. }
  86. }
  87. .bank-list-item-right {
  88. display: flex;
  89. align-items: center;
  90. gap: 10rpx;
  91. padding: 28rpx 4rpx 28rpx 0;
  92. }
  93. }
  94. }
  95. </style>