charge.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <template>
  2. <view>
  3. <u-navbar title="充电"></u-navbar>
  4. <view class="recharge">
  5. <view class="title">请选择充电金额</view>
  6. <p>当前余额¥10.00</p>
  7. <view class="rechargeMain">
  8. <view class="recharge-item" v-for="(item,index) in moneyList" :key="item.id">{{item.name}}</view>
  9. </view>
  10. <p>其他充电模式</p>
  11. <view class="self-stop">
  12. 充满自停
  13. </view>
  14. </view>
  15. <view class="but-box">
  16. <u-button shape="circle">开始充电</u-button>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. data() {
  23. return {
  24. moneyList: [{
  25. id: '1',
  26. name: '5'
  27. },
  28. {
  29. id: '2',
  30. name: '10'
  31. },
  32. {
  33. id: '3',
  34. name: '20'
  35. },
  36. {
  37. id: '4',
  38. name: '50'
  39. },
  40. {
  41. id: '5',
  42. name: '100'
  43. },
  44. {
  45. id: '6',
  46. name: '其他充值金额'
  47. },
  48. ],
  49. }
  50. },
  51. }
  52. </script>
  53. <style>
  54. page {
  55. background-color: #fff;
  56. }
  57. </style>
  58. <style lang="scss" scoped>
  59. /deep/.u-radio-group {
  60. width: 100%;
  61. }
  62. /deep/.u-radio {
  63. position: relative;
  64. }
  65. /deep/.u-radio__icon-wrap {
  66. position: absolute;
  67. right: 0;
  68. }
  69. .recharge-item:last-child {
  70. font-size: 14px !important;
  71. color: #999999;
  72. }
  73. .recharge {
  74. padding: 16px;
  75. .title {
  76. font-size: 16px;
  77. }
  78. p {
  79. color: #666;
  80. margin-top: 4px;
  81. }
  82. .rechargeMain {
  83. display: flex;
  84. flex-wrap: wrap;
  85. justify-content: space-between;
  86. margin-top: 12px;
  87. margin-bottom: 20px;
  88. .recharge-item {
  89. width: 31%;
  90. border: 1px solid #e3e3e3;
  91. padding: 15px 0;
  92. border-radius: 4px;
  93. text-align: center;
  94. margin-bottom: 10px;
  95. font-size: 16px;
  96. }
  97. .active {
  98. background-color: #EFFFF7;
  99. border-color: #00B962;
  100. color: #00B962;
  101. }
  102. }
  103. .self-stop {
  104. width: 105px;
  105. height: 48px;
  106. line-height: 48px;
  107. border-radius: 4px;
  108. color: #101010;
  109. font-size: 16px;
  110. text-align: center;
  111. font-family: Arial;
  112. border: 1px solid rgba(227, 227, 227, 100);
  113. margin-top: 12px;
  114. }
  115. }
  116. .recharge-input {
  117. margin-top: 8px;
  118. margin-bottom: 32px;
  119. }
  120. .recharge-radio {
  121. margin-top: 10px;
  122. .recharge-radio-item {
  123. display: flex;
  124. align-items: center;
  125. }
  126. .recharge-radio-name {
  127. margin-left: 8px;
  128. }
  129. }
  130. .but-box{
  131. width: 335px;
  132. height: 44px;
  133. margin: 0 auto;
  134. .u-size-default[data-v-3bf2dba7]{
  135. background-color: rgba(0, 185, 98, 100);
  136. color: rgba(255, 255, 255, 100);
  137. font-size: 16px;
  138. text-align: center;
  139. }
  140. }
  141. </style>