|
@@ -840,29 +840,31 @@ $(function () {
|
|
|
$('.show-first').show().siblings().hide();
|
|
|
$('.top_search').show().siblings('.right-map').show();
|
|
|
$('.right-search').css('top',msHeight).siblings('.right-map').css('top','0px');
|
|
|
+ map.centerAndZoom(new BMap.Point(106.563, 29.523), 14);
|
|
|
$('#gj-one').val(startZJ);
|
|
|
$('#gj-two').val(endZJ);
|
|
|
} else if (startZJ == '' || endZJ == '') {
|
|
|
$('.show-first').show().siblings().hide();
|
|
|
$('.top_search').show().siblings('.right-map').show();
|
|
|
$('.right-search').css('top',msHeight).siblings('.right-map').css('top','0px');
|
|
|
+ map.centerAndZoom(new BMap.Point(106.563, 29.523), 14);
|
|
|
$('#gj-one').val(startZJ);
|
|
|
$('#gj-two').val(endZJ);
|
|
|
} else if (startZJ == line[0] && endZJ == line[1]){
|
|
|
- console.log(1111)
|
|
|
+ // console.log(1111)
|
|
|
$('.show-third').hide().siblings('.show-second').show();
|
|
|
$('.show-second .content-third').show();
|
|
|
$("#gj-one").val(startZJ);
|
|
|
$("#gj-two").val(endZJ);
|
|
|
} else if (lineText[0] == '' && lineText[1] == '') {
|
|
|
- console.log(2222)
|
|
|
+ // console.log(2222)
|
|
|
$('.show-first').show().siblings().hide();
|
|
|
$('.top_search').show().siblings('.right-map').show();
|
|
|
$('.right-search').css('top',msHeight).siblings('.right-map').css('top','0px');
|
|
|
$("#gj-one").val(startZJ);
|
|
|
$("#gj-two").val(endZJ);
|
|
|
} else if(startZJ != lineText[0] || endZJ != lineText[1]){
|
|
|
- console.log(3333)
|
|
|
+ // console.log(3333)
|
|
|
busResultLine(startZJ,endZJ);
|
|
|
$("#gj-one").val(startZJ);
|
|
|
$("#gj-two").val(endZJ);
|
|
@@ -873,29 +875,31 @@ $(function () {
|
|
|
$('.show-first').show().siblings().hide();
|
|
|
$('.top_search').show().siblings('.right-map').show();
|
|
|
$('.right-search').css('top',msHeight).siblings('.right-map').css('top','0px');
|
|
|
+ map.centerAndZoom(new BMap.Point(106.563, 29.523), 14);
|
|
|
$("#zj-one").val(startGJ);
|
|
|
$("#zj-two").val(endGJ);
|
|
|
} else if (startGJ == '' || endGJ == '') {
|
|
|
$('.show-first').show().siblings().hide();
|
|
|
$('.top_search').show().siblings('.right-map').show();
|
|
|
$('.right-search').css('top',msHeight).siblings('.right-map').css('top','0px');
|
|
|
+ map.centerAndZoom(new BMap.Point(106.563, 29.523), 14);
|
|
|
$("#zj-one").val(startGJ);
|
|
|
$("#zj-two").val(endGJ);
|
|
|
} else if (startGJ == line[0] && endGJ == line[1]){
|
|
|
- console.log(4444)
|
|
|
+ // console.log(4444)
|
|
|
$('.show-second').hide().siblings('.show-third').show();
|
|
|
$('.show-third .content-third').show();
|
|
|
$("#zj-one").val(startGJ);
|
|
|
$("#zj-two").val(endGJ);
|
|
|
} else if (lineText[0] == '' && lineText[1] == '') {
|
|
|
- console.log(5555)
|
|
|
+ // console.log(5555)
|
|
|
$('.show-first').show().siblings().hide();
|
|
|
$('.top_search').show().siblings('.right-map').show();
|
|
|
$('.right-search').css('top',msHeight).siblings('.right-map').css('top','0px');
|
|
|
$("#zj-one").val(startGJ);
|
|
|
$("#zj-two").val(endGJ);
|
|
|
} else if(startGJ != lineText[0] || endGJ != lineText[1]){
|
|
|
- console.log(6666)
|
|
|
+ // console.log(6666)
|
|
|
drivingResultLine(startGJ,endGJ)
|
|
|
$("#zj-one").val(startGJ);
|
|
|
$("#zj-two").val(endGJ);
|