fastRecharge.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. <template>
  2. <view>
  3. <view class="container">
  4. <view class="top">
  5. <text class="iconfont back">&#xe602;</text>充电结束
  6. </view>
  7. <view class="main">
  8. <view class="text-1">
  9. 选择充值金额
  10. </view>
  11. <view class="text-2">
  12. 当前余额¥0.00
  13. </view>
  14. <!-- 金额选择 -->
  15. <view class="price-choices">
  16. <view class="choices-items">
  17. 10
  18. </view>
  19. <view class="choices-items">
  20. 20
  21. </view>
  22. <view class="choices-items">
  23. 50
  24. </view>
  25. <view class="choices-items">
  26. 100
  27. </view>
  28. <view class="choices-items">
  29. 200
  30. </view>
  31. <view class="choices-items">
  32. 500
  33. </view>
  34. </view>
  35. <view class="other-amount">其他充值金额
  36. <input type="text" placeholder="100" />
  37. </view>
  38. <!-- 支付方式 -->
  39. <view class="pay-methods">
  40. <view class="pay-text">
  41. 选择支付方式
  42. </view>
  43. <view class="pay-items">
  44. <view class="item-left">
  45. <view class="iconfont wechat">&#xe62d;</view> <view class="left-text">微信支付</view>
  46. </view>
  47. <view class="item-right" >
  48. <label class="radio">
  49. <radio value="" /><text></text>
  50. </label>
  51. </view>
  52. </view>
  53. <view class="pay-items">
  54. <view class="item-left">
  55. <view class="iconfont alipay">&#xe630;</view> <view class="left-text">支付宝支付</view>
  56. </view>
  57. <view class="item-right" >
  58. <label class="radio">
  59. <radio value="" /><text></text>
  60. </label>
  61. </view>
  62. </view>
  63. </view>
  64. <u-radio-group class="agreement" v-model="value" label-size="">
  65. <u-radio shape="circle" >我已阅读并同意《充值协议》</u-radio>
  66. </u-radio-group>
  67. </view>
  68. <!-- 底部 -->
  69. <view class="bottom">
  70. <u-button class="button" shape="square">立即充值</u-button>
  71. </view>
  72. </view>
  73. </view>
  74. </template>
  75. <script>
  76. export default {
  77. data() {
  78. return {
  79. }
  80. },
  81. methods: {
  82. }
  83. }
  84. </script>
  85. <style lang="scss">
  86. .container {
  87. display: flex;
  88. flex-direction: column;
  89. height: 100vh;
  90. background-color: #fff;
  91. }
  92. // 头部
  93. .top {
  94. width: 100%;
  95. height: 44px;
  96. line-height: 44px;
  97. background-color: rgba(255, 255, 255, 100);
  98. text-align: center;
  99. border: 1px solid rgba(242, 242, 242, 100);
  100. }
  101. // 主体
  102. .main {
  103. flex: 1; // 填充剩余空间
  104. width: 90%;
  105. margin: 0 auto;
  106. // padding: 20px 30px;
  107. .text-1 {
  108. height: 22px;
  109. color: rgba(16, 16, 16, 100);
  110. font-size: 16px;
  111. text-align: left;
  112. margin-top: 20px;
  113. }
  114. .text-2 {
  115. height: 20px;
  116. color: rgba(102, 102, 102, 100);
  117. font-size: 14px;
  118. text-align: left;
  119. }
  120. // 金额选择
  121. .price-choices {
  122. display: flex;
  123. justify-content: space-between;
  124. flex-wrap: wrap;
  125. .choices-items {
  126. width: 95px;
  127. height: 48px;
  128. line-height: 48px;
  129. border-radius: 4px;
  130. color: rgba(16, 16, 16, 100);
  131. font-size: 16px;
  132. text-align: center;
  133. font-family: Arial;
  134. border: 1px solid rgba(227, 227, 227, 100);
  135. margin-top: 10px;
  136. }
  137. }
  138. .other-amount {
  139. line-height: 20px;
  140. color: #666666;
  141. font-size: 14px;
  142. margin-top: 20px;
  143. }
  144. input {
  145. height: 44px;
  146. border-radius: 4px;
  147. font-size: 16px;
  148. border: 1px solid rgba(227, 227, 227, 100);
  149. line-height: 44px;
  150. margin-top: 8px;
  151. margin: 10px auto;
  152. }
  153. }
  154. // 支付方式
  155. .pay-methods{
  156. .pay-text{
  157. height: 22px;
  158. font-size: 16px;
  159. margin-top: 32px;
  160. }
  161. .pay-items{
  162. width: 100%;
  163. height: 48px;
  164. line-height: 48px;
  165. display: flex;
  166. justify-content: space-between;
  167. .item-left{
  168. width: 40%;
  169. display: flex;
  170. .wechat{
  171. color: #22a438;
  172. font-size: 24px;
  173. display: inline-block;
  174. }
  175. .alipay{
  176. color: #1677ff;
  177. font-size: 24px;
  178. }
  179. .left-text{
  180. margin-left: 8px;
  181. }
  182. }
  183. }
  184. }
  185. .agreement{
  186. position: absolute;
  187. left:23px;
  188. bottom: 70px;
  189. }
  190. // 底部
  191. .bottom {
  192. width: 100%;
  193. height: 64px;
  194. text-align: center;
  195. background-color: #fff;
  196. .button{
  197. width: 90%;
  198. border-radius: 50px;
  199. background-color: rgba(0, 185, 98, 100);
  200. color: rgba(255, 255, 255, 100);
  201. font-size: 16px;
  202. }
  203. button::after {
  204. border: none;
  205. }
  206. }
  207. </style>