mirror of
https://github.com/wu736139669/vczero.github.io.git
synced 2026-08-05 06:23:38 +00:00
fix bug
This commit is contained in:
+1
-2
@@ -114,7 +114,7 @@ body{
|
||||
.input_div{
|
||||
position: absolute;
|
||||
left: 100px;
|
||||
right:60px;
|
||||
right:10px;
|
||||
}
|
||||
|
||||
.toolbar{
|
||||
@@ -264,7 +264,6 @@ body{
|
||||
min-height:160px;
|
||||
background-color:#F9F9F9;
|
||||
border:1px solid #ddd;
|
||||
right:-999px;
|
||||
top:-999px;
|
||||
}
|
||||
|
||||
|
||||
+7
-7
@@ -27,9 +27,9 @@
|
||||
<div class="fl input_div">
|
||||
<input id="search_router" placeholder="请输入旅游线路"/>
|
||||
</div>
|
||||
<div class="fr search_btn">
|
||||
<span>搜索</span>
|
||||
</div>
|
||||
<!--<div class="fr search_btn">
|
||||
<span>搜索</span>
|
||||
</div>-->
|
||||
</div>
|
||||
<!--搜索列表-->
|
||||
<div class="search_list">
|
||||
@@ -41,11 +41,11 @@
|
||||
<div class="charts_pannel">
|
||||
<div id="charts" class="charts_div"></div>
|
||||
<div class="charts_info">
|
||||
<div>实时车速:<span id="real_speed" style="font-size:15px;color:#E6007C;">准备计算</span></div>
|
||||
<div>实时车速:<span id="real_speed" style="font-size:15px;color:#E6007C;font-weight:bold;">准备计算</span></div>
|
||||
<div>模拟车速:<span>50,000 km/h</span></div>
|
||||
<div>到达时间:<span id="real_time" style="font-size:15px;color:#E6007C;">计算中</span></div>
|
||||
<div>距离:<span id="real_distance" style="font-size:15px;color:#E6007C;">计算中</span></div>
|
||||
<div>时长:<span id="real_distime" style="font-size:15px;color:#E6007C;">计算中</span></div>
|
||||
<div>到达时间:<span id="real_time" style="font-size:15px;color:#E6007C;font-weight:bold;">计算中</span></div>
|
||||
<div>距离:<span id="real_distance" style="font-size:15px;color:#E6007C;font-weight:bold;">计算中</span></div>
|
||||
<div>时长:<span id="real_distime" style="font-size:15px;color:#E6007C;font-weight:bold;">计算中</span></div>
|
||||
</div>
|
||||
<div style="width:100%;">
|
||||
<div id="tem_yin" class="fl tempe" style="color:#FF5718;">阴</div>
|
||||
|
||||
+11
-5
@@ -24,9 +24,13 @@
|
||||
routes = window['routes' + index];
|
||||
$('#search_router').val(el.text());
|
||||
$('.search_list').fadeOut();
|
||||
//自动开启路线
|
||||
doSearch();
|
||||
doCarRun();
|
||||
});
|
||||
|
||||
$('.search_btn').on('click', function(e){
|
||||
//搜索
|
||||
function doSearch(){
|
||||
//天气
|
||||
AMap.service(['AMap.Weather'], function(){
|
||||
var we = new AMap.Weather();
|
||||
@@ -89,7 +93,7 @@
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
//绘制起终点ICON
|
||||
function addSEIcon(origin, destination){
|
||||
@@ -195,7 +199,8 @@
|
||||
$('.add_mask').fadeOut();
|
||||
});
|
||||
|
||||
$('.car_run_show').on('click', function(){
|
||||
//汽车运动
|
||||
function doCarRun(){
|
||||
if(!hasRoutes){
|
||||
$('.add_mask').fadeIn();
|
||||
$('#_alert').fadeIn();
|
||||
@@ -245,7 +250,7 @@
|
||||
});
|
||||
//开启小车监控
|
||||
runCar();
|
||||
});
|
||||
}
|
||||
|
||||
//开启、关闭弹幕
|
||||
var tag = 0;
|
||||
@@ -567,6 +572,7 @@
|
||||
//iPad优先
|
||||
if(bIsIpad){
|
||||
iPadRouter(routes);
|
||||
$('.ipad_timeline_quan').css('marginTop', '-1px');
|
||||
console.log('pad');
|
||||
return;
|
||||
}
|
||||
@@ -591,7 +597,7 @@
|
||||
for(var i in data){
|
||||
var str = '<div style="position:absolute;top:11px;margin-left:' + parseInt(i)*50 + 'px;text-align:center;min-width:40px;">';
|
||||
str += '<div style="font-size:13px;">' + data[i].content + '</div>';
|
||||
str += '<div id="ipad_timeline_' + i;
|
||||
str += '<div class="ipad_timeline_quan" id="ipad_timeline_' + i;
|
||||
str += '" style="background-color:#fff;margin-top:5px;width:10px;height:10px;border:2px solid #CC0000;border-radius:5px;margin-left:auto;margin-right:auto;box-sizing:border-box;"></div>';
|
||||
str += '</div>';
|
||||
$('#timeline_item_1').append(str);
|
||||
|
||||
Reference in New Issue
Block a user