charge.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <template>
  2. <view class="charge">
  3. <view class="flex1">
  4. <view class="chabox">
  5. <view class="chatop mb38 flexcj">
  6. <view class="tit flex0 mr12">7号充电桩</view>
  7. <view class="txt">设备编号:400569856561B</view>
  8. </view>
  9. <view class="cimgs mb18">
  10. <image :src="carc"></image>
  11. <view class="flexcc mt5"><text class="cir"></text>正在充电中…</view>
  12. </view>
  13. <view class="chamain mb20">
  14. <view class="flexc mb30">
  15. <view class="chaml flexcc w50">
  16. <image :src="chara"></image>
  17. <view>
  18. <view class="f12 mb4">充电时长</view>
  19. <view class="f18">00 : 31 : 05</view>
  20. </view>
  21. </view>
  22. <view class="chaml flexcc w50">
  23. <image :src="charb"></image>
  24. <view>
  25. <view class="f12 mb4">已充电量度</view>
  26. <view class="f12"><text class="f18">33.12</text> 度</view>
  27. </view>
  28. </view>
  29. </view>
  30. <view class="chamc flexcc">
  31. <view>电量 30.3A</view>
  32. <view>电压 220V</view>
  33. <view>功率 15KW</view>
  34. </view>
  35. </view>
  36. <view class="rhbtn">停止充电</view>
  37. </view>
  38. <view class="chabox chalist">
  39. <view class="tit mb14">最近充电</view>
  40. <view class="flexc">
  41. <view class="flex1">11月10日 23:17:51</view>
  42. <view class="flex0">46.32度</view>
  43. <image :src="rimg"></image>
  44. </view>
  45. </view>
  46. </view>
  47. <view class="charftit flexcc">客服电话 <text class="co025 ml2">400-400-1234</text></view>
  48. <loading></loading>
  49. </view>
  50. </template>
  51. <script>
  52. import config from '@/config'
  53. const baseUrl = config.baseUrl
  54. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  55. export default{
  56. components:{},
  57. data(){
  58. return{
  59. carc:require('@/mine/static/house/carc.png'),
  60. chara:require('@/mine/static/house/chara.png'),
  61. charb:require('@/mine/static/house/charb.png'),
  62. rimg:require('@/mine/static/house/rimg.png'),
  63. list:[],
  64. pageSize: 10,
  65. pageNum: 1,
  66. reachflag: true,
  67. wtdt:'',
  68. }
  69. },
  70. onLoad: function() {
  71. },
  72. methods:{
  73. checkPermi, checkRole,
  74. // getNextFn(){
  75. // this.$tab.navigateTo("/work/pages/business/add")
  76. // },
  77. getDataFn(){
  78. var params={
  79. pageSize:this.pageSize,
  80. pageNum: this.pageNum,
  81. }
  82. params.noticeType=this.tabidx
  83. getNoticeList(params).then(res=>{
  84. if(res.code==200){
  85. }else{
  86. this.$toast(res.msg)
  87. }
  88. })
  89. },
  90. }
  91. }
  92. </script>
  93. <style>
  94. page{background: #F3F3F0;}
  95. </style>
  96. <style lang="scss" scoped>
  97. .charge{padding: 20rpx 24rpx 100rpx;display: flex;flex-direction: column;min-height: 100vh;
  98. .charftit{font-weight: 500;flex: 0 0 auto;font-size: 24rpx;color: #AAAAAA;}
  99. .chabox{background: #FFFFFF;margin-bottom: 60rpx;border-radius: 20rpx;padding: 34rpx 24rpx 40rpx;
  100. .chatop{
  101. .tit{font-weight: bold;font-size: 30rpx;color: #272727;}
  102. .txt{font-weight: 500;font-size: 26rpx;color: #666666;}
  103. }
  104. .cimgs{
  105. image{width: 506rpx;height: 200rpx;margin: 0 auto;}
  106. view{font-weight: bold;font-size: 26rpx;color: #272727;
  107. .cir{display: inline-block;width: 14rpx;height: 14rpx;margin-right: 16rpx;background: #0AC86E;border-radius: 50%;}
  108. }
  109. }
  110. .chamain{background: #EFF4FF;border-radius: 20rpx;
  111. padding: 48rpx 20rpx 20rpx;
  112. .chaml{
  113. image{width: 30rpx;height: 30rpx;margin-right: 20rpx;flex: 0 0 auto;}
  114. view{font-weight: bold;color: #272727;}
  115. }
  116. .chamc{
  117. view{font-weight: 500;font-size: 26rpx;color: #949494;padding: 0 38rpx;border-right: 2rpx solid #CDCDCD;box-sizing: border-box;line-height: 36rpx;
  118. &:last-child{border-right: none;}
  119. }
  120. }
  121. }
  122. &.chalist{padding:34rpx 24rpx 32rpx ;
  123. .tit{font-weight: bold;font-size: 30rpx;color: #272727;}
  124. .txt{font-weight: 500;font-size: 26rpx;color: #666666;}
  125. image{width:16rpx;height: 24rpx;flex: 0 0 auto;margin-left: 44rpx;}
  126. }
  127. }
  128. }
  129. </style>