recharge.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <template>
  2. <view>
  3. <u-navbar title="充值">
  4. </u-navbar>
  5. <view class="recharge">
  6. <view class="recharge-text">
  7. <p>账单余额(元)</p>
  8. <h1>0.00</h1>
  9. </view>
  10. <view class="recharge-btn">
  11. 账单
  12. </view>
  13. </view>
  14. <view class="charge">
  15. <view class="chargeTit">
  16. 选择充值金额
  17. </view>
  18. <view class="chargeMain">
  19. <view class="chargeMain-item active"><p>10元</p> <span>赠1元</span></view>
  20. <view class="chargeMain-item"><p>20元</p> <span>赠3元</span></view>
  21. <view class="chargeMain-item"><p>50元</p> <span>赠8元</span></view>
  22. <view class="chargeMain-item"><p>100元</p> <span>赠20元</span></view>
  23. </view>
  24. </view>
  25. <view class="charge">
  26. <view class="chargeRadio">
  27. <view class="u-flex">
  28. <u-icon name="weixinzhifu" custom-prefix="custom-icon" color="#22ac38" size="80"></u-icon>
  29. <view class="chargeRadio-text">
  30. <h4>微信支付</h4>
  31. <p>推荐微信支付</p>
  32. </view>
  33. </view>
  34. <u-radio-group>
  35. <u-radio></u-radio>
  36. </u-radio-group>
  37. </view>
  38. </view>
  39. <view class="foot-btn">
  40. <view class="foot-pirce">
  41. <u-icon name="tikuan" custom-prefix="custom-icon" color="#FF9502" size="48"></u-icon>
  42. <span>支付 ¥1.00</span>
  43. </view>
  44. <u-button type="primary" :custom-style="customStyle" shape="square">确定充值</u-button>
  45. </view>
  46. </view>
  47. </template>
  48. <script>
  49. export default {
  50. data() {
  51. return {
  52. customStyle: {
  53. background: '#1677ff'
  54. }
  55. }
  56. },
  57. methods: {
  58. }
  59. }
  60. </script>
  61. <style>
  62. page{
  63. background-color: #f7f7f7;
  64. }
  65. </style>
  66. <style lang="scss" scoped>
  67. .recharge{
  68. padding: 15px;
  69. background-color: #1677FF;
  70. margin-bottom: 10px;
  71. display: flex;
  72. justify-content: space-between;
  73. align-items: center;
  74. .recharge-text{
  75. color:#fff;
  76. }
  77. .recharge-btn{
  78. width: 60px;
  79. height: 30px;
  80. text-align: center;
  81. line-height: 30px;
  82. background-color: #589EFF;
  83. color:#fff;
  84. border-radius: 15px;
  85. }
  86. }
  87. .charge{
  88. padding: 15px;
  89. background-color: #fff;
  90. margin-bottom: 10px;
  91. }
  92. .chargeRadio{
  93. display: flex;
  94. justify-content: space-between;
  95. align-items: center;
  96. width: 100%;
  97. .chargeRadio-text{
  98. margin-left: 5px;
  99. h4{
  100. font-weight: normal;
  101. font-size: 15px;
  102. }
  103. p{
  104. font-size: 12px;
  105. color:#999;
  106. margin-top: 5px;
  107. }
  108. }
  109. }
  110. .chargeTit{
  111. border-bottom: 1px solid #f7f7f7;
  112. padding-bottom: 10px;
  113. font-size: 15px;
  114. }
  115. .chargeMain{
  116. display: flex;
  117. flex-wrap: wrap;
  118. justify-content: space-between;
  119. margin-top: 20px;
  120. .chargeMain-item{
  121. width: 48%;
  122. text-align: center;
  123. padding: 25px 10px;
  124. border: 2px solid #cacaca;
  125. margin-bottom: 10px;
  126. border-radius: 10px;
  127. color:#333;
  128. position: relative;
  129. p{
  130. font-size: 20px;
  131. }
  132. span{
  133. background-color: #ff8d00;
  134. color:#fff;
  135. padding: 2px 10px;
  136. border-radius:0 10px 0 10px;
  137. position: absolute;
  138. font-size: 12px;
  139. right: -2px;
  140. top: -2px;
  141. }
  142. }
  143. .active{
  144. border-color:#ff8d00;
  145. color:#ff8d00;
  146. }
  147. .fault{
  148. background-color:#e1e1e1;
  149. color:#666;
  150. border: 1px solid #ccc;
  151. }
  152. .occupy{
  153. color:#FF4F3F;
  154. border: 1px solid #FF4F3F;
  155. }
  156. }
  157. .foot-btn{
  158. padding: 10px;
  159. position: fixed;
  160. left: 0;
  161. right: 0;
  162. bottom: 0;
  163. background-color: #fff;
  164. .foot-pirce{
  165. display: flex;
  166. align-items: center;
  167. span{
  168. margin-left: 5px;
  169. font-size: 16px;
  170. }
  171. padding-bottom: 10px;
  172. border-bottom: 1px solid #f7f7f7;
  173. margin-bottom: 10px;
  174. }
  175. }
  176. </style>