rechargeDrawer.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <template>
  2. <view class="content_main">
  3. <scroll-view style="height: 100%;" scroll-y="true">
  4. <view class="CarnoData" v-if="!infodata"></view>
  5. <view class="Carlist" v-for="(item,index) in infodata" :key="index">
  6. <view class="carDetail">
  7. <view class="vinMa">
  8. <view>开始时段</view>
  9. <view>{{item.startTime }}</view>
  10. </view>
  11. <view class="box_vinma">
  12. <view class="vinMa">
  13. <view>结束时段</view>
  14. <view>{{item.endTime }}</view>
  15. </view>
  16. <view class="vinMa">
  17. <view>充电量kWh</view>
  18. <view>{{item.chargePower}}</view>
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. </scroll-view>
  24. </view>
  25. </template>
  26. <script>
  27. export default {
  28. name: 'rechargeDrawer',
  29. props: ['infodata'],
  30. data() {
  31. return {
  32. }
  33. },
  34. }
  35. </script>
  36. <style lang="scss" scoped>
  37. ::v-deep .uni-forms-item__content {
  38. background: rgba(255, 255, 255, 0);
  39. border-radius: 2px 2px 2px 2px;
  40. border: 1px solid #263042;
  41. .uni-easyinput__content {
  42. background: none !important;
  43. border: none !important;
  44. color: #fff;
  45. }
  46. }
  47. .content_main {
  48. height: 635px;
  49. }
  50. .CarnoData {
  51. width: 274px;
  52. height: 227px;
  53. background-image: url('@/static/change/noData.png');
  54. background-size: 100% 100%;
  55. margin: 20px 43px;
  56. }
  57. .Carlist {
  58. display: flex;
  59. flex-direction: column;
  60. width: 100%;
  61. .carDetail {
  62. width: 360px;
  63. height: 90px;
  64. border-radius: 8px;
  65. margin-bottom: 16px;
  66. background-color:#1D283E ;
  67. box-sizing: border-box;
  68. padding: 20px;
  69. display: flex;
  70. flex-direction: column;
  71. justify-content: space-between;
  72. .vinMa {
  73. display: flex;
  74. view:first-child {
  75. width: 80px;
  76. font-size: 14px;
  77. font-weight: 400;
  78. color: rgba(153, 174, 197, 0.65);
  79. }
  80. view:last-child {
  81. flex: 1;
  82. font-size: 14px;
  83. font-weight: 400;
  84. color: rgba(255, 255, 255, 0.85);
  85. }
  86. }
  87. }
  88. }
  89. .box_vinma{
  90. display: flex;
  91. .vinMa{
  92. width: 50%;
  93. }
  94. }
  95. </style>