Commit 3e4331f6 by 王榕

修改bug

parent 631fbcbe
......@@ -58,11 +58,11 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
// this.getCarDetail()
// clearInterval(timer)
// setInterval(() => {
// this.getCarDetail()
// }, 4000)
this.getCarDetail()
clearInterval(timer)
setInterval(() => {
this.getCarDetail()
}, 4000)
},
drawProgressbg: function() {
......@@ -177,7 +177,6 @@ Page({
},
// 轮询设置
setUI2(data) {
console.log(data)
let {
gprsImei,
bmsVer,
......@@ -197,6 +196,12 @@ Page({
} else {
bmsState = '关锁'
}
if (!cellVolt){
cellVolt='[]'
}
if (!bmsTempetrue){
bmsTempetrue='[]'
}
cellVolt = JSON.parse(cellVolt)
bmsTempetrue = JSON.parse(bmsTempetrue)
if (cellVolt && cellVolt.length) {
......
......@@ -118,6 +118,7 @@
.info-body .vos-item{
flex: 1;
display: flex;
align-items: center;
}
.vos-item text:nth-of-type(1){
padding: 3px 6px;
......
......@@ -537,6 +537,9 @@ Page({
restDay,
updateTime
} = data
if (!gpsLocate){
gpsLocate='0,0'
}
gpsLocate = (gpsLocate).split(',')
if (gpsLocate && gpsLocate.length){
this.setMap(gpsLocate[0], gpsLocate[1])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment