PaymentAccount.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <template>
  2. <div class="not-account">
  3. <div class="apply-mask" @click="emits('paymentAccountClose')"></div>
  4. <div class="apply-content">
  5. <div class="slide-line"></div>
  6. <div class="account-not" v-if="current == 0">
  7. <div class="not-item pf600 fs16 fc333333" v-for="(item, index) in 2" :key="index">
  8. 暂无银行卡账号
  9. <div class="add pf500 fs12 fcFFFFFF">添加</div>
  10. </div>
  11. </div>
  12. <div class="account-have" v-else>
  13. <div class="have-item" v-for="(item, index) in 2" :key="index">
  14. <div class="have-left">
  15. <div class="left-text pf600 fs16 fcDF384C">
  16. 银行卡&nbsp;&nbsp;<span class="pf500 fs12 fcA8A8A8">删除</span>
  17. </div>
  18. <div class="left-bumber pf400 fs14 fcDF384C">1502 0802 0802 0820 252</div>
  19. </div>
  20. <div class="have-right">
  21. <img src="@/assets/icon/asset/Checkbox Only.svg" alt="" />
  22. </div>
  23. </div>
  24. </div>
  25. </div>
  26. </div>
  27. </template>
  28. <script setup>
  29. import { ref } from "vue";
  30. const emits = defineEmits(["paymentAccountClose"]);
  31. const current = ref(0);
  32. </script>
  33. <style lang="less" scoped>
  34. .not-account {
  35. position: fixed;
  36. left: 0;
  37. top: 0;
  38. z-index: 1000;
  39. display: flex;
  40. flex-direction: column;
  41. justify-content: flex-end;
  42. width: 100%;
  43. min-height: 100vh;
  44. .apply-mask {
  45. position: fixed;
  46. left: 0;
  47. top: 0;
  48. z-index: -1;
  49. width: 100%;
  50. min-height: 100vh;
  51. background: rgba(0, 0, 0, 0.5);
  52. }
  53. .apply-content {
  54. display: flex;
  55. flex-direction: column;
  56. justify-content: flex-start;
  57. align-items: center;
  58. width: 375px;
  59. height: 300px;
  60. background: #ffffff;
  61. border-radius: 24px 24px 0px 0px;
  62. .slide-line {
  63. margin-top: 12px;
  64. width: 32px;
  65. height: 4px;
  66. border-radius: 2px;
  67. opacity: 0.4;
  68. background: rgba(0, 0, 0, 0.5);
  69. }
  70. .account-not {
  71. margin-top: 29px;
  72. .not-item {
  73. display: flex;
  74. flex-direction: row;
  75. justify-content: space-between;
  76. align-items: center;
  77. padding: 0 16px;
  78. margin-top: 12px;
  79. width: 345px;
  80. height: 80px;
  81. border-radius: 16px;
  82. border: 1px solid #a8a8a8;
  83. box-sizing: border-box;
  84. &:first-child {
  85. margin-top: 0;
  86. }
  87. .add {
  88. width: 76px;
  89. height: 24px;
  90. line-height: 24px;
  91. text-align: center;
  92. border-radius: 5px;
  93. background: #df384c;
  94. }
  95. }
  96. }
  97. .account-have {
  98. margin-top: 29px;
  99. .have-item {
  100. display: flex;
  101. flex-direction: row;
  102. justify-content: space-between;
  103. align-items: center;
  104. margin-top: 12px;
  105. padding: 0 16px;
  106. width: 345px;
  107. height: 80px;
  108. border-radius: 16px;
  109. border: 1px solid #a8a8a8;
  110. box-sizing: border-box;
  111. &:first-child {
  112. margin-top: 0;
  113. }
  114. }
  115. .have-left {
  116. .left-text {
  117. display: flex;
  118. flex-direction: row;
  119. justify-content: flex-start;
  120. align-items: center;
  121. height: 22px;
  122. }
  123. .left-bumber {
  124. height: 22px;
  125. line-height: 22px;
  126. }
  127. }
  128. .have-right {
  129. width: 24px;
  130. height: 24px;
  131. }
  132. }
  133. }
  134. }
  135. </style>