This commit is contained in:
caicai8 2019-12-24 09:30:40 +08:00
parent 8963990c29
commit 82732f610a
2 changed files with 61 additions and 30 deletions

View File

@ -70,16 +70,16 @@
<div class="banner-panel" style="padding-top:60px;">
<p class="banner-header"></p>
<div class="carouselBottom">
<a class="bottomItem active" href="javscript:void(0)">
<a class="bottomItem active" href="javscript:void(0)">
<img src="./image/1.png" />服务优势
</a>
<a class="bottomItem" href="./machine.html">
<a class="bottomItem" href="./machine.html">
<img src="./image/2.png" />AI智能服务
</a>
<a class="bottomItem" href="javscript:void(0)">
<a class="bottomItem" href="javscript:void(0)">
<img src="./image/3.png" />案例精选
</a>
<a class="bottomItem" href="javscript:void(0)">
<a class="bottomItem" href="javscript:void(0)">
<img src="./image/4.png" />快速入门
</a>
</div>
@ -89,11 +89,11 @@
<div class="screen-btn screen-open" id="btn">
<span class="screen_icon iconfont icon-kuoda"></span>
</div>
<div class="left_echart" id="mainGraph"></div>
<div class="left_echart" id="mainGraph"></div>
<div class="video_img">
<div class="div-video" style="background: #1D346F;">
<video src="https://www.w3school.com.cn/i/movie.ogg" width="100%" height="100%" controls="controls">
</video>
</div>
<div class="slider_panel">
@ -118,20 +118,51 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div id="maps" style="height: 100%; width: 100%;"></div>
</div>
<script type="text/javascript" src="./js/jQuery-1.8.3.min.js"></script>
<script type="text/javascript" src="./js/jquery.easy_slides.js"></script>
<script type="text/javascript">
$(function(){
$(".show_detail").hover(function(){
$(this).find(".detail_info").show();
},function(){
$(this).find(".detail_info").hide();
})
$(".detail_info").on("click",".info_txt",function(){
var key = $(this).attr("data-key");
$(".search-input-item").removeClass("active");
$("."+key).addClass("active");
if(key === "voice"){
$(".voicePanel").addClass("active");
}
})
$(".carouselBottom").on("click",".bottomItem",function(){
$(".bottomItem").removeClass("active");
$(this).addClass("active");
})
// 放大banner图
$(".photo_icon").on("click",function(){
if($(this).parents(".slider_panel").hasClass("active")){
$(this).parents(".slider_panel").removeClass("active");
}else{
$(this).parents(".slider_panel").addClass("active");
}
})
})
</script>
<script type="text/javascript" src="./js/jquery.easy_slides.js"></script>
<script type="text/javascript" src="./js/demo.js"></script>
<script>
$(document).ready(function () {
//回车
$(document).keydown(function(event)
@ -159,7 +190,7 @@
myChartGraph.setOption(optionGraph);
}
// 页面加载时,第一次初始化图,以及点击省份后更换数据
var currentGraph = {
nodes: {},
links: {},
@ -263,7 +294,7 @@
return JSON.parse(result)
}else{
alert("Error occurred:"+xhr.statusText);
}
}
}
@ -286,7 +317,7 @@
category = nodeMap[name].category + 1
symbolSize = nodeMap[name].symbolSize - 5
}
nodeLen = graphList.keyword.nodes.length
linkLen = graphList.keyword.links.length
source = name
@ -311,9 +342,9 @@
// 处理点击节点展开
function append(nodeName) {
// 根据nodeName从nodeMap里拿出对应的nodes和links并append到currentGraph.nodes currentGraph.links
let node = nodeMap[nodeName];
if (node.hasAppend === true || Object.keys(node.nodes).length === 0 || Object.keys(node.links).length === 0) {
alert("没有数据继续展开");
return
@ -433,7 +464,7 @@
myChartGraph.on('click', function(params) {
if (params.dataType === "node") {
const node = nodeMap[params.data.name];
if (node.hasAppend === true) {
remove(node.name)
} else {
@ -443,7 +474,7 @@
});
$('#btn').on('click', function () {
if ($('.fixed-left').hasClass('active')) {
$('.fixed-left').removeClass('active');
@ -454,7 +485,7 @@
})
graphContainer.style.width = 400 + 'px';
graphContainer.style.height = '60%';
} else {
var width = document.body.clientWidth;
$('.fixed-left').addClass('active');
@ -470,7 +501,7 @@
myChartGraph.resize();
});
function loadVideo(name) {
if (name == "西藏" || name == "新疆" || name == "青海"|| name == "班公湖") {
temp = 1
@ -488,12 +519,12 @@
$(".div-video").prepend(newSource)
}
})
</script>
<script type="text/javascript">
$(document).ready(function () {
$('.slider_one_big_picture').EasySlides({
'autoplay': true,
'stepbystep': false,
@ -528,7 +559,7 @@
function searchProvince (value) {
console.log('查找的省份:', value);
highLight(value)
}
$('.search_icon').on('click', function () {
var $val = $(".search_input").val();
@ -550,7 +581,7 @@
if (key === 'prov') {
$('.search-prov').show();
$('.lat_lon_sec').hide();
}
}
else if (key === 'lon') {
$('.search-prov').hide();
$('.lat_lon_sec').show();
@ -590,8 +621,8 @@
// })
});
</script>
<script src="./js/public.js"></script>
<!-- <script src="./js/public.js"></script> -->
<script src="./js/map.js"></script>
</body>
</html>
</html>

View File

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB