|
@@ -223,12 +223,14 @@
|
|
|
//在线状态
|
|
|
if(mapData.onlineTime){
|
|
|
if(parseInt(mapData.onlineTime) < 0 ){
|
|
|
- console.log(parseInt(mapData.onlineTime)+'-在线时间');
|
|
|
$('#on-off-online').text('未在线过');
|
|
|
$('#on-off-online').css({color:"gray"})
|
|
|
+ var routeTime = new Date(0);
|
|
|
+ routePageData = {speed: mapData.speed == null ? 0 : mapData.speed, lastTime:routeTime.Format("yyyy-MM-dd hh:mm:ss")}
|
|
|
}else{
|
|
|
var routeTime = new Date(mapData.onlineTime*1000);
|
|
|
routePageData = {speed: mapData.speed == null ? 0 : mapData.speed, lastTime:routeTime.Format("yyyy-MM-dd hh:mm:ss")}
|
|
|
+ console.log('testtime')
|
|
|
var interval = parseInt(new Date().getTime()/1000) - mapData.onlineTime;
|
|
|
if(interval < 24*3600){
|
|
|
$('#on-off-online').text('在线中');
|
|
@@ -437,7 +439,19 @@
|
|
|
infoWindow.open(mainMap, lnglat);
|
|
|
}
|
|
|
|
|
|
- }
|
|
|
+ console.log(pageinfo);
|
|
|
+ console.log(learun.storage.get('userinfo').baseinfo)
|
|
|
+ console.log(learun.nav.getpage('amap'));
|
|
|
+ },
|
|
|
+
|
|
|
+
|
|
|
+ destroy: function (pageinfo) {
|
|
|
+ console.log('destory page')
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
};
|
|
|
|
|
|
return page;
|