index.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <template>
  2. <view>
  3. <u-navbar title="充电中" :is-back="false">
  4. <view class="slot-wrap">
  5. <view class="navbar-left"></view>
  6. <view class="navbar-right">
  7. <u-icon name="shuaxin" custom-prefix="custom-icon" color="#1677ff" size="40"></u-icon>
  8. </view>
  9. </view>
  10. </u-navbar>
  11. <view class="chargeInfo">
  12. <view class="chargeInfo-text">
  13. <p>桩名:打赏打赏安舒打赏</p>
  14. <p>桩号:121564</p>
  15. </view>
  16. <view class="chargeInfo-btn">
  17. 通道:5
  18. </view>
  19. </view>
  20. <view class="chargeImg">
  21. <img src="/static/img/charge1.png" alt="">
  22. <!-- <img src="/static/img/charge2.png" alt=""> -->
  23. </view>
  24. <view class="chargeTime">
  25. <p>剩余时长</p>
  26. <u-line-progress active-color="#2979ff" :percent="70"></u-line-progress>
  27. </view>
  28. <view class="chargeData">
  29. <view class="chargeData-item">
  30. <u-icon name="jiagebaohu" custom-prefix="custom-icon" color="#1677ff" size="56"></u-icon>
  31. <h2>0.25元</h2>
  32. <p>消费金额</p>
  33. </view>
  34. <view class="chargeData-item">
  35. <u-icon name="dian" custom-prefix="custom-icon" color="#1677ff" size="56"></u-icon>
  36. <h2>100</h2>
  37. <p>充电功率</p>
  38. </view>
  39. </view>
  40. <view class="chargeBtn">
  41. <view class="chargeBtn-item">退款</view>
  42. <view class="chargeBtn-item">费用说明</view>
  43. </view>
  44. <u-tabbar v-model="current" :list="tabbarList" :mid-button="true" active-color="#1677ff"></u-tabbar>
  45. </view>
  46. </template>
  47. <script>
  48. export default {
  49. data() {
  50. return {
  51. tabbarList: [{
  52. iconPath: "motuoche-diandongche",
  53. selectedIconPath: "motuoche-diandongche",
  54. text: '充电',
  55. count: 0,
  56. isDot: true,
  57. customIcon: true,
  58. },
  59. {
  60. iconPath: "/static/img/min_button_select.png",
  61. selectedIconPath: "/static/img/min_button_select.png",
  62. text: '充电中',
  63. midButton: true,
  64. customIcon: true,
  65. },
  66. {
  67. iconPath: "31wode",
  68. selectedIconPath: "31wode",
  69. text: '我的',
  70. count: 0,
  71. isDot: false,
  72. customIcon: true,
  73. },
  74. ],
  75. current: 0
  76. }
  77. },
  78. methods: {
  79. }
  80. }
  81. </script>
  82. <style lang="scss" scoped>
  83. .slot-wrap {
  84. display: flex;
  85. align-items: center;
  86. justify-content: space-between;
  87. flex: 1;
  88. }
  89. .navbar-right {
  90. display: flex;
  91. margin-right: 20rpx;
  92. align-items: center;
  93. }
  94. .chargeInfo{
  95. padding: 10px;
  96. position: relative;
  97. .chargeInfo-text{
  98. p{
  99. color:#777;
  100. margin-bottom: 5px;
  101. }
  102. }
  103. .chargeInfo-btn{
  104. background-color: #E0EDFF;
  105. width: 72px;
  106. height: 32px;
  107. border-radius:16px 0 0 16px;
  108. line-height: 32px;
  109. text-align: center;
  110. position: absolute;
  111. right: 0;
  112. top:16px;
  113. color:#1677FF;
  114. }
  115. }
  116. .chargeImg{
  117. height: 300px;
  118. width: 300px;
  119. margin: 10px auto 0;
  120. img{
  121. height: 100%;
  122. width: 100%;
  123. }
  124. }
  125. .chargeTime{
  126. padding: 20px 30px;
  127. text-align: center;
  128. p{
  129. color:#999;
  130. margin-bottom: 10px;
  131. }
  132. }
  133. .chargeBtn{
  134. display: flex;
  135. justify-content: space-around;
  136. padding: 20px 50px;
  137. .chargeBtn-item{
  138. width: 80px;
  139. height: 32px;
  140. background-color: #1677FF;
  141. line-height: 32px;
  142. color:#fff;
  143. text-align: center;
  144. border-radius: 16px;
  145. }
  146. }
  147. .chargeData{
  148. display: flex;
  149. justify-content: space-around;
  150. .chargeData-item{
  151. text-align: center;
  152. h2{
  153. font-size: 24px;
  154. font-weight: normal;
  155. color:#1677FF;
  156. margin: 10px 0;
  157. }
  158. p{
  159. color:#999;
  160. }
  161. }
  162. }
  163. </style>