PaymentWay.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <template>
  2. <div class="payment-way">
  3. <div class="apply-mask" @click="emits('paymentWayClose')"></div>
  4. <div class="apply-content">
  5. <div class="slide-line"></div>
  6. <div class="apply-text pf600 fs18 fc121212">支付方式</div>
  7. <div class="payment-main">
  8. <div class="payment-item" v-for="(item, index) in paymentWayData" :key="index">
  9. <div class="pf500 fs16 fc121212">{{ item }}</div>
  10. <img src="@/assets/icon/asset/ic_check_blue.svg" alt="" />
  11. </div>
  12. </div>
  13. <div class="sure-btn pf600 fs14 fcFFFFFF">确认</div>
  14. <div class="reset pf500 fs14 fcDF384C">重置</div>
  15. </div>
  16. </div>
  17. </template>
  18. <script setup>
  19. const emits = defineEmits(["paymentWayClose"]);
  20. const paymentWayData = ["全部", "支付宝", "银行卡"];
  21. </script>
  22. <style lang="less" scoped>
  23. .payment-way {
  24. position: fixed;
  25. left: 0;
  26. top: 0;
  27. z-index: 1000;
  28. display: flex;
  29. flex-direction: column;
  30. justify-content: flex-end;
  31. width: 100%;
  32. min-height: 100vh;
  33. .apply-mask {
  34. position: fixed;
  35. left: 0;
  36. top: 0;
  37. z-index: -1;
  38. width: 100%;
  39. min-height: 100vh;
  40. background: rgba(0, 0, 0, 0.5);
  41. }
  42. .apply-content {
  43. display: flex;
  44. flex-direction: column;
  45. justify-content: flex-start;
  46. align-items: center;
  47. width: 375px;
  48. height: 313px;
  49. background: #ffffff;
  50. border-radius: 24px 24px 0px 0px;
  51. .slide-line {
  52. margin-top: 12px;
  53. width: 32px;
  54. height: 4px;
  55. border-radius: 2px;
  56. opacity: 0.4;
  57. background: rgba(0, 0, 0, 0.5);
  58. }
  59. .apply-text {
  60. margin-top: 21px;
  61. width: 345px;
  62. height: 24px;
  63. line-height: 24px;
  64. letter-spacing: 0.2px;
  65. }
  66. .payment-main {
  67. margin-top: 15px;
  68. width: 345px;
  69. .payment-item {
  70. display: flex;
  71. flex-direction: row;
  72. justify-content: space-between;
  73. align-items: center;
  74. margin-top: 15px;
  75. width: 345px;
  76. height: 25px;
  77. &:first-child {
  78. margin-top: 0px;
  79. }
  80. img {
  81. width: 20px;
  82. height: 20px;
  83. }
  84. }
  85. }
  86. .sure-btn {
  87. margin-top: 24px;
  88. width: 311px;
  89. height: 40px;
  90. line-height: 40px;
  91. text-align: center;
  92. border-radius: 100px;
  93. background: #df384c;
  94. }
  95. .reset {
  96. margin-top: 15px;
  97. }
  98. }
  99. }
  100. </style>