pay-view.css 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. /* 支付界面样式 */
  2. .pay-view-overlay {
  3. position: fixed;
  4. top: 0;
  5. left: 0;
  6. width: 100%;
  7. height: 100%;
  8. background: rgba(0, 0, 0, 0.6);
  9. display: flex;
  10. align-items: center;
  11. justify-content: center;
  12. z-index: 1000003;
  13. opacity: 0;
  14. transition: opacity 0.3s ease;
  15. pointer-events: none;
  16. }
  17. .pay-view-overlay.show {
  18. opacity: 1;
  19. pointer-events: auto;
  20. }
  21. .pay-view-container {
  22. background: white;
  23. border-radius: 12px;
  24. width: 90%;
  25. max-width: 480px;
  26. max-height: 90vh;
  27. overflow: hidden;
  28. box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  29. transform: scale(0.9);
  30. transition: transform 0.3s ease;
  31. }
  32. .pay-view-overlay.show .pay-view-container {
  33. transform: scale(1);
  34. }
  35. .pay-view-header {
  36. display: flex;
  37. align-items: center;
  38. justify-content: space-between;
  39. padding: 20px 24px;
  40. border-bottom: 1px solid #e5e5e5;
  41. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  42. color: white;
  43. }
  44. .pay-view-title {
  45. margin: 0;
  46. font-size: 18px;
  47. font-weight: 600;
  48. }
  49. .pay-view-close {
  50. background: none;
  51. border: none;
  52. color: white;
  53. font-size: 28px;
  54. line-height: 1;
  55. cursor: pointer;
  56. padding: 0;
  57. width: 32px;
  58. height: 32px;
  59. display: flex;
  60. align-items: center;
  61. justify-content: center;
  62. border-radius: 4px;
  63. transition: background 0.2s;
  64. }
  65. .pay-view-close:hover {
  66. background: rgba(255, 255, 255, 0.2);
  67. }
  68. .pay-view-content {
  69. padding: 32px 24px;
  70. }
  71. .pay-info {
  72. text-align: center;
  73. margin-bottom: 32px;
  74. }
  75. .pay-item-name {
  76. font-size: 18px;
  77. font-weight: 600;
  78. color: #333;
  79. margin-bottom: 8px;
  80. }
  81. .pay-item-price {
  82. font-size: 32px;
  83. font-weight: 700;
  84. color: #667eea;
  85. margin-bottom: 4px;
  86. }
  87. .qr-code-container {
  88. text-align: center;
  89. margin-bottom: 32px;
  90. }
  91. .qr-code-placeholder {
  92. display: inline-block;
  93. padding: 20px;
  94. background: white;
  95. border: 2px solid #e5e5e5;
  96. border-radius: 8px;
  97. margin-bottom: 16px;
  98. }
  99. .qr-code-hint {
  100. font-size: 16px;
  101. color: #666;
  102. margin: 8px 0;
  103. }
  104. .qr-code-tip {
  105. font-size: 14px;
  106. color: #999;
  107. margin: 4px 0;
  108. }
  109. .pay-view-actions {
  110. display: flex;
  111. justify-content: center;
  112. gap: 12px;
  113. }
  114. .pay-confirm-btn,
  115. .pay-cancel-btn {
  116. flex: 1;
  117. padding: 12px 24px;
  118. border: none;
  119. border-radius: 8px;
  120. font-size: 16px;
  121. font-weight: 500;
  122. cursor: pointer;
  123. transition: all 0.2s;
  124. }
  125. .pay-confirm-btn {
  126. background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
  127. color: white;
  128. box-shadow: 0 2px 8px rgba(82, 196, 26, 0.3);
  129. }
  130. .pay-confirm-btn:hover {
  131. transform: translateY(-1px);
  132. box-shadow: 0 4px 12px rgba(82, 196, 26, 0.4);
  133. }
  134. .pay-cancel-btn {
  135. background: #f5f5f5;
  136. color: #666;
  137. }
  138. .pay-cancel-btn:hover {
  139. background: #e5e5e5;
  140. }