This commit is contained in:
lh_wang
2015-08-02 09:14:56 +08:00
parent c9bd0847df
commit f85afdce4e
22 changed files with 3689 additions and 17 deletions
+15 -14
View File
@@ -27,6 +27,16 @@
});
$('.search_btn').on('click', function(e){
//天气
AMap.service(['AMap.Weather'], function(){
var we = new AMap.Weather();
we.getLive(routes[routes.length - 1].content, function(err, status){
console.log(status);
$('#tem_yin').text(status.weather);
$('#tem_du').text(status.temperature + '℃');
$('#tem_feng').text(status.windDirection + '风');
});
});
map.clearMap();
map.setZoom(13);
$('.timeline').empty();
@@ -347,11 +357,11 @@
contentHTML += '</div><div style="float:right;" class="_in_city_story">';
contentHTML += '<img src="' + pics[picIndex] + '"/></div></div>';
contentHTML += '<div class="_in_story">';
contentHTML += '<div><a href="' + urls[0] +'">那座城市,那个人, 特价¥899</a></div>';
contentHTML += '<div><a href="' + urls[1] +'">再美不如苏州园林, 门票:¥40</a></div>';
contentHTML += '<div><a href="' + urls[2] +'">苏州好吃一窝,特价团购:¥30</a></div>';
contentHTML += '<div><a href="' + urls[3] +'">苏州必须去的5个景点,去了才知道</a></div>';
contentHTML += '<div><a href="' + urls[4] +'">假日酒店,全家人旅行特选,机场接送</a></div></div>';
contentHTML += '<div><a target="_blank" href="' + urls[0] +'">那座城市,那个人, 特价¥899</a></div>';
contentHTML += '<div><a target="_blank" href="' + urls[1] +'">再美不如苏州园林, 门票:¥40</a></div>';
contentHTML += '<div><a target="_blank" href="' + urls[2] +'">苏州好吃一窝,特价团购:¥30</a></div>';
contentHTML += '<div><a target="_blank" href="' + urls[3] +'">苏州必须去的5个景点,去了才知道</a></div>';
contentHTML += '<div><a target="_blank" href="' + urls[4] +'">假日酒店,全家人旅行特选,机场接送</a></div></div>';
contentHTML += '<div class="_in_arrow_down"></div></div>';
return contentHTML;
}
@@ -477,15 +487,6 @@
}, 1000);
}
AMap.service(['AMap.Weather'], function(){
var we = new AMap.Weather();
we.getLive(routes[routes.length - 1].content, function(err, status){
$('#tem_yin').text(status.weather);
$('#tem_du').text(status.temperature + '℃');
$('#tem_feng').text(status.windDirection + '风');
});
});
//开启、关闭弹幕
var tou_tag = 0;
$('.toupiao').on('click', function(){