recharge.vue 3.5 KB

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