|
@@ -7,7 +7,6 @@
|
|
|
src="https://qiniu.bms16.com/Fqs6TrEmcdT7QNEdKWs9Hir2cacO" alt="">
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
<view v-for="(item,index) of list" :key="index" class="batteryList">
|
|
|
<view class="header">
|
|
|
<view v-if="item.status == 1" class="h5">开始换电</view>
|
|
@@ -16,7 +15,7 @@
|
|
|
<view v-if="item.status == 4" class="h5">换电失败</view>
|
|
|
<view v-if="item.status == 5" class="h5">部分成功</view>
|
|
|
<view v-if="item.status == 0" class="h5">未知</view>
|
|
|
- <view class="time">{{dayjsFn(item.ctime)}}</view>
|
|
|
+ <view class="time">{{item.ctime}}</view>
|
|
|
</view>
|
|
|
<view class="dl">
|
|
|
<view class="dt">换电单号</view>
|
|
@@ -46,8 +45,6 @@
|
|
|
|
|
|
<script>
|
|
|
import dayjs from 'dayjs'
|
|
|
- import duration from 'dayjs/plugin/duration'
|
|
|
- dayjs.extend(duration);
|
|
|
var config_gyq = require('../../common/config_gyq.js');
|
|
|
var request = require('../../common/request');
|
|
|
var common = require('../../common/common.js');
|
|
@@ -65,7 +62,8 @@
|
|
|
},
|
|
|
methods: {
|
|
|
dayjsFn(time){
|
|
|
- return dayjs(time).format('YYYY-MM-DD HH:mm:ss')
|
|
|
+ console.log(time)
|
|
|
+ return dayjs(time * 1000).format('YYYY-MM-DD HH:mm:ss')
|
|
|
},
|
|
|
srcFn(url){
|
|
|
uni.navigateTo({
|
|
@@ -94,7 +92,7 @@
|
|
|
item.btn_battery = item.btn_battery ? item.btn_battery.join(',') : []
|
|
|
item.bor_battery = item.bor_battery ? item.bor_battery.join(',') : []
|
|
|
|
|
|
- item.ctime = dayjs(item.ctime * 1000).format('YYYY-MM-DD hh:mm:ss')
|
|
|
+ item.ctime = dayjs(item.ctime * 1000).format('YYYY-MM-DD HH:mm:ss')
|
|
|
})
|
|
|
}
|
|
|
|