Commit b55515f3 authored by yaqizhang's avatar yaqizhang

Merge branch 'master' of ssh://111.61.77.35:15/yaqizhang/zanhuangyingji into master

parents 8ba8faac 59535284
This diff is collapsed.
...@@ -627,7 +627,7 @@ function createLegendList() { ...@@ -627,7 +627,7 @@ function createLegendList() {
tmpLi += tmpLi +=
'<li data-id="' + '<li data-id="' +
items[i].id + items[i].id +
'" class="legendItem"><div><img class="legendPic" style="padding: 7px 0;" src="./images/legend/' + '" class="legendItem"><div class="first"><img class="legendPic" style="padding: 7px 0;" src="./images/legend/' +
items[i].legendCode + items[i].legendCode +
'.png" alt=""/><span class="legendTitle">' + '.png" alt=""/><span class="legendTitle">' +
items[i].legendName + items[i].legendName +
...@@ -645,15 +645,15 @@ function createLegendList() { ...@@ -645,15 +645,15 @@ function createLegendList() {
var legendchild=document.getElementsByClassName("legendchild"); var legendchild=document.getElementsByClassName("legendchild");
for (var i=0; i<legenditem.length;i++){ for (var i=0; i<legenditem.length;i++){
// legenditem[i].index = i; // legenditem[i].index = i;
legenditem[i].onclick = function(){ // legenditem[i].onclick = function(){
if(this.lastChild.style.display == "none"){ // if(this.lastChild.style.display == "none"){
this.style.backgroundImage="url(images/vectorbot.png)"; // this.style.backgroundImage="url(images/vectorbot.png)";
this.lastChild.style.display = "block"; // this.lastChild.style.display = "block";
}else{ // }else{
this.style.backgroundImage="url(images/re.png)"; // this.style.backgroundImage="url(images/re.png)";
this.lastChild.style.display = "none"; // this.lastChild.style.display = "none";
} // }
}; // };
} }
// 默认显示视频监控设备 // 默认显示视频监控设备
// $('.legendItem').eq(0).click(); // $('.legendItem').eq(0).click();
......
...@@ -317,7 +317,7 @@ table.layui-table th { ...@@ -317,7 +317,7 @@ table.layui-table th {
.legendItem { .legendItem {
margin: 3px 0; margin: 3px 0;
overflow: hidden; overflow: hidden;
cursor: pointer; /* cursor: pointer; */
float: left; float: left;
background: url(../images/re.png); background: url(../images/re.png);
background-size: 100% 100%; background-size: 100% 100%;
...@@ -325,11 +325,16 @@ table.layui-table th { ...@@ -325,11 +325,16 @@ table.layui-table th {
padding: 0 5px; padding: 0 5px;
margin-left: 10px; margin-left: 10px;
} }
.legendItem .first{
cursor: pointer;
}
.legendchild{ .legendchild{
display: none; display: none;
width: auto; width: auto;
position: fixed; position: fixed;
bottom: 85px; bottom: 50px;
height: 70px;
} }
/* .legendItem:active + .legendchild{ /* .legendItem:active + .legendchild{
display: block; display: block;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment