|
|
@@ -133,6 +133,9 @@
|
|
|
.nullData p:first-child {
|
|
|
padding-top: 10%;
|
|
|
}
|
|
|
+ .flashShowDiv{
|
|
|
+ background: #323d48;
|
|
|
+ }
|
|
|
|
|
|
.flashShowDiv,
|
|
|
.flashDownDiv,
|
|
|
@@ -148,11 +151,6 @@
|
|
|
width: 100%;
|
|
|
}
|
|
|
|
|
|
- .equipName {
|
|
|
- color: #438eb9;
|
|
|
- font-size: 16px;
|
|
|
- line-height: 30px;
|
|
|
- }
|
|
|
|
|
|
#downpath {
|
|
|
width: 100%;
|
|
|
@@ -169,17 +167,18 @@
|
|
|
|
|
|
#divMain .aSelected {
|
|
|
z-index: 9;
|
|
|
- border: 3px solid #61615e;
|
|
|
+ border: 3px solid #49dfb4;
|
|
|
}
|
|
|
|
|
|
#divMain a,
|
|
|
a:visited {
|
|
|
float: left;
|
|
|
- border: 1px solid #000;
|
|
|
+ /* border: 1px solid #000; */
|
|
|
margin: 0 -1px -1px 0;
|
|
|
position: relative;
|
|
|
text-decoration: none;
|
|
|
box-sizing: border-box;
|
|
|
+ border: 3px solid #000;
|
|
|
}
|
|
|
|
|
|
#divMain .a1 {
|
|
|
@@ -234,17 +233,6 @@
|
|
|
color: #37CAB9;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- .equipname {
|
|
|
- position: absolute;
|
|
|
- right: 0px;
|
|
|
- top: 0;
|
|
|
- font-size: 22px;
|
|
|
- color: #fff;
|
|
|
- background: #000;
|
|
|
- padding: 3px;
|
|
|
- }
|
|
|
-
|
|
|
/* 控制按钮 */
|
|
|
|
|
|
.searchInp {
|
|
|
@@ -256,8 +244,21 @@
|
|
|
line-height: 30px;
|
|
|
font-size: 14px;
|
|
|
border: 1px solid #000;
|
|
|
- width: 90%;
|
|
|
- padding-left: 5px;
|
|
|
+ padding: 0 10px;
|
|
|
+ padding: 0 10px;
|
|
|
+ border-right: none;
|
|
|
+ }
|
|
|
+ .searchInp>button {
|
|
|
+ line-height: 30px;
|
|
|
+ vertical-align: middle;
|
|
|
+ padding: 0 5px;
|
|
|
+ background: #c2c3c5;
|
|
|
+ color: #fff;
|
|
|
+ }
|
|
|
+ .jkListDiv{
|
|
|
+ overflow-x: hidden;
|
|
|
+ line-height: 40px;
|
|
|
+ height: 100%;
|
|
|
}
|
|
|
|
|
|
.jkListUl>li {
|
|
|
@@ -265,33 +266,17 @@
|
|
|
font-size: 14px;
|
|
|
line-height: 30px;
|
|
|
cursor: pointer;
|
|
|
- padding-left: 20px;
|
|
|
white-space: nowrap;
|
|
|
overflow: hidden;
|
|
|
text-overflow: ellipsis;
|
|
|
- width: 200px;
|
|
|
- }
|
|
|
-
|
|
|
- .ctrlBox {
|
|
|
- /* display: none; */
|
|
|
- position: absolute;
|
|
|
- /* background: #685f5f; */
|
|
|
- z-index: 99999;
|
|
|
- /* padding: 0 20px; */
|
|
|
- width: 240px;
|
|
|
- height: 260px;
|
|
|
- left: 0;
|
|
|
- bottom: 30px;
|
|
|
- /* border: 1px solid #000; */
|
|
|
- border-radius: 30px 30px 50px 50px;
|
|
|
+ text-indent: 15px;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
.cutCtrl,
|
|
|
.directionCtrl>div {
|
|
|
position: absolute;
|
|
|
- width: 50px;
|
|
|
- height: 50px;
|
|
|
+ width: 40px;
|
|
|
+ height: 40px;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
|
|
|
@@ -306,35 +291,35 @@
|
|
|
|
|
|
.directionCtrl {
|
|
|
position: relative;
|
|
|
- width: 180px;
|
|
|
+ /* width: 180px; */
|
|
|
height: 180px;
|
|
|
bottom: 0;
|
|
|
background: url(../static/imgs/ptz_bg.png) no-repeat center;
|
|
|
- background-size: 100% 100%;
|
|
|
- margin-left: 30px;
|
|
|
+ background-size: 150px 150px;
|
|
|
+ /* margin-left: 13px; */
|
|
|
}
|
|
|
|
|
|
.upCtrl {
|
|
|
- top: 7px;
|
|
|
- left: 50%;
|
|
|
+ top: 18px;
|
|
|
+ left: 53%;
|
|
|
margin-left: -25px;
|
|
|
}
|
|
|
|
|
|
.leftCtrl {
|
|
|
- left: 10px;
|
|
|
- top: 50%;
|
|
|
+ left: 24px;
|
|
|
+ top: 53%;
|
|
|
margin-top: -25px;
|
|
|
}
|
|
|
|
|
|
.bottomCtrl {
|
|
|
- bottom: 8px;
|
|
|
- left: 50%;
|
|
|
+ bottom: 17px;
|
|
|
+ left: 53%;
|
|
|
margin-left: -25px;
|
|
|
}
|
|
|
|
|
|
.rightCtrl {
|
|
|
- right: 7px;
|
|
|
- top: 50%;
|
|
|
+ right: 26px;
|
|
|
+ top: 53%;
|
|
|
margin-top: -25px;
|
|
|
}
|
|
|
|
|
|
@@ -345,8 +330,8 @@
|
|
|
width: 120px;
|
|
|
height: 30px;
|
|
|
margin: auto;
|
|
|
- margin-top: 15px;
|
|
|
- margin-bottom: 15px;
|
|
|
+ /* margin-top: 15px; */
|
|
|
+ /* margin-bottom: 15px; */
|
|
|
}
|
|
|
|
|
|
.Zoom span {
|
|
|
@@ -367,6 +352,15 @@
|
|
|
background-color: #36404D;
|
|
|
color: rgb(255, 255, 0);
|
|
|
}
|
|
|
+ .gardenListBtn button.layui-btn-primary{
|
|
|
+ color: #49dfb4;
|
|
|
+ border: #000;
|
|
|
+ background-image: linear-gradient(#525b6d, #3e4654);
|
|
|
+ border: 1px solid #3c4452;
|
|
|
+ }
|
|
|
+ .gardenListBtn button.layui-btn-primary:hover{
|
|
|
+ box-shadow: 0 0 2px 0px #039c6b;
|
|
|
+ }
|
|
|
</style>
|
|
|
</head>
|
|
|
<script>
|
|
|
@@ -396,18 +390,12 @@
|
|
|
</div>
|
|
|
<div class="flashShowDiv">
|
|
|
<div style="display: table; width: 100%;" id="jk_main">
|
|
|
-
|
|
|
- <!-- <div id="div_ControlPanel" style="display: table-cell; width: 160px; height: 911.875px; overflow: hidden; background: rgb(0, 0, 0); vertical-align: top;"></div> -->
|
|
|
- <!-- <div id="div_ControlPanel" style="display: table-cell; width: 160px; height: 911.875px; overflow: hidden; background: rgb(0, 0, 0); vertical-align: top;"></div> -->
|
|
|
- <!-- 隐藏 -->
|
|
|
- <!-- <div id="div_vControl" style="display: table-cell; width: 22px; vertical-align: middle;"></div> -->
|
|
|
-
|
|
|
<!-- 视频框 -->
|
|
|
<div style="display: table-cell;">
|
|
|
- <div id="divMain" style="width: 100%; height:750px; background: #313a47; margin: auto; padding: 5px; position: relative; z-index: 9999;">
|
|
|
+ <div id="divMain" style="height:750px; background: #313a47; margin: auto; padding: 5px; position: relative; z-index: 9999;">
|
|
|
|
|
|
</div>
|
|
|
- <div style="clear: both; width: 100%; height: 45px; line-height: 45px; background: #323d48; padding: 5px; position: relative; z-index: 9999;">
|
|
|
+ <div style="clear: both; height: 45px; line-height: 45px; background: #323d48; padding: 5px; position: relative; z-index: 9999;">
|
|
|
 
|
|
|
<span class="v1" id="span_V1" onclick="CreateVidewDiv(1);">
|
|
|
<i class="iconfont" style="font-size: 24px;"></i>
|
|
|
@@ -423,62 +411,72 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 控制 -->
|
|
|
- <div id="div_ControlPanel" style="position:relative;display: table-cell; width: 220px; background: #464e60; overflow: hidden; vertical-align: top; padding: 10px;">
|
|
|
- <div class="jkListDiv">
|
|
|
- <div class="searchInp">
|
|
|
- <input type="text" placeholder="请输入设备ID搜索">
|
|
|
- </div>
|
|
|
- <ul class="jkListUl" id="dataFillDiv">
|
|
|
- <!-- <li onclick='StartPlay("363","1","2","rtmp://rtmp01open.ys7.com/openlive/18319fb1a08249d3a498c5cba3e8bdee.hd","http://hls01open.ys7.com/openlive/18319fb1a08249d3a498c5cba3e8bdee.hd.m3u8","719458092","1","阳台",this)'>监控一</li>
|
|
|
- <li onclick='StartPlay("417","1","2","rtmp://rtmp.open.ys7.com/openlive/8702368f321341deb9fb5edb9d72faec", "http://hls.open.ys7.com/openlive/8702368f321341deb9fb5edb9d72faec.m3u8","C25308553","1","阳台",this)'>监控二</li>
|
|
|
- <li>监控三</li>
|
|
|
- <li>监控四</li>
|
|
|
- <li>监控五</li> -->
|
|
|
-
|
|
|
-
|
|
|
- </ul>
|
|
|
- <div class="gardenListBtn">
|
|
|
- <span class="firstPage">
|
|
|
- <button type="button" onclick="switchPage('home')" class="layui-btn layui-btn-sm layui-btn-primary">
|
|
|
- <i class="layui-icon"></i>
|
|
|
- </button>
|
|
|
- </span>
|
|
|
- <span class="prevPageBtn">
|
|
|
- <button type="button" onclick="switchPage('jian')" class="layui-btn layui-btn-sm layui-btn-primary">
|
|
|
- <i class="layui-icon"></i>
|
|
|
- </button>
|
|
|
- </span>
|
|
|
- <span class="menuCurr">1</span>
|
|
|
- <span class="">/</span>
|
|
|
- <span class="menuTotalPage">6</span>
|
|
|
- <span class="">页</span>
|
|
|
- <span class="nextPageBtn">
|
|
|
- <button type="button" onclick="switchPage('jia')" class="layui-btn layui-btn-sm layui-btn-primary">
|
|
|
- <i class="layui-icon"></i>
|
|
|
- </button>
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="ctrlBox">
|
|
|
- <!-- <div class="cutCtrl" onclick="configCamera(this,'takephoto','')"></div> -->
|
|
|
- <div class="directionCtrl">
|
|
|
- <div class="upCtrl" onmousedown="configCamera(this,'move',0)" onmouseup="configCamera(this,'stop')"></div>
|
|
|
- <div class="leftCtrl" onmousedown="configCamera(this,'move',2)" onmouseup="configCamera(this,'stop')"></div>
|
|
|
- <div class="bottomCtrl" onmousedown="configCamera(this,'move',1)" onmouseup="configCamera(this,'stop')"></div>
|
|
|
- <div class="rightCtrl" onmousedown="configCamera(this,'move',3)" onmouseup="configCamera(this,'stop')"></div>
|
|
|
- </div>
|
|
|
- <div class="Zoom">
|
|
|
- <span onmousedown="configCamera(this,'move',8)" onmouseup="configCamera(this,'stop')"></span>
|
|
|
- <span onmousedown="configCamera(this,'move',9)" onmouseup="configCamera(this,'stop')"></span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <div id="div_ControlPanel" style="position:relative;display: table-cell; width: 220px; background: #464e60; overflow: hidden; vertical-align: top;">
|
|
|
+
|
|
|
+ <table style="width: 100%; height: 100%">
|
|
|
+ <tr style="height: 30px;">
|
|
|
+ <td>
|
|
|
+ <div class="searchInp">
|
|
|
+ <input type="text" placeholder="请输入设备ID搜索" onkeyup="if (event.keyCode == 13) searchFun();"><button onclick="searchFun()"><i class="fa fa-search" aria-hidden="true"></i></button>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="vertical-align: top;">
|
|
|
+ <div class="jkListDiv">
|
|
|
+ <ul class="jkListUl" id="dataFillDiv"></ul>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr style="height: 50px;">
|
|
|
+ <td>
|
|
|
+ <div class="gardenListBtn">
|
|
|
+ <span class="firstPage">
|
|
|
+ <button type="button" onclick="switchPage('home')" class="layui-btn layui-btn-sm layui-btn-primary">
|
|
|
+ <i class="layui-icon"></i>
|
|
|
+ </button>
|
|
|
+ </span>
|
|
|
+ <span class="prevPageBtn">
|
|
|
+ <button type="button" onclick="switchPage('jian')" class="layui-btn layui-btn-sm layui-btn-primary">
|
|
|
+ <i class="layui-icon"></i>
|
|
|
+ </button>
|
|
|
+ </span>
|
|
|
+ <span class="menuCurr">1</span>
|
|
|
+ <span class="">/</span>
|
|
|
+ <span class="menuTotalPage">6</span>
|
|
|
+ <span class="">页</span>
|
|
|
+ <span class="nextPageBtn">
|
|
|
+ <button type="button" onclick="switchPage('jia')" class="layui-btn layui-btn-sm layui-btn-primary">
|
|
|
+ <i class="layui-icon"></i>
|
|
|
+ </button>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr id="tr_ptz">
|
|
|
+ <td style="height: 190px; padding: 15px;">
|
|
|
+ <div class="ctrlBox">
|
|
|
+ <!-- <div class="cutCtrl" onclick="configCamera(this,'takephoto','')"></div> -->
|
|
|
+ <div class="directionCtrl">
|
|
|
+ <div class="upCtrl" onmousedown="configCamera(this,'move',0)" onmouseup="configCamera(this,'stop')"></div>
|
|
|
+ <div class="leftCtrl" onmousedown="configCamera(this,'move',2)" onmouseup="configCamera(this,'stop')"></div>
|
|
|
+ <div class="bottomCtrl" onmousedown="configCamera(this,'move',1)" onmouseup="configCamera(this,'stop')"></div>
|
|
|
+ <div class="rightCtrl" onmousedown="configCamera(this,'move',3)" onmouseup="configCamera(this,'stop')"></div>
|
|
|
+ </div>
|
|
|
+ <div class="Zoom">
|
|
|
+ <span onmousedown="configCamera(this,'move',8)" onmouseup="configCamera(this,'stop')"></span>
|
|
|
+ <span onmousedown="configCamera(this,'move',9)" onmouseup="configCamera(this,'stop')"></span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ </table>
|
|
|
+
|
|
|
+
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
- <!-- <div class="fenpei-bottom">
|
|
|
- <input type="hidden" id="totalPage" value={{ nums }}>
|
|
|
- <div id="page" style="text-align: center;"></div>
|
|
|
- </div> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -510,8 +508,11 @@
|
|
|
else
|
|
|
html += "<a id=\"a_" + i + "\" class=\"a" + n + "\">";
|
|
|
|
|
|
- html += "<span id='span_deviceSerial_" + i + "' class='equipname' style=''></span>";
|
|
|
+ html += "<span id='span_ConnectionType_" + i + "' style='display:none'></span>";
|
|
|
+ html += "<span id='span_deviceSerial_" + i + "' class='equipname' style='display:none'></span>";
|
|
|
html += "<span id='span_cameraNo_" + i + "' style='display:none'></span>";
|
|
|
+ html += "<span id='span_playTime_" + i + "' style='display:none'></span>";
|
|
|
+
|
|
|
|
|
|
html += "<table id=\"table_" + i + "\" style=\"width: " + width + "; height: " + height + "; text-align:center;vertical-align:middle;\">";
|
|
|
html += "<tr style='display:none;'>";
|
|
|
@@ -552,7 +553,6 @@
|
|
|
$("#a_" + curIndex).removeClass("aSelected");
|
|
|
|
|
|
curIndex = idx;
|
|
|
- console.log($("#a_" + idx).find('.equipname').html());
|
|
|
|
|
|
if ($("#a_" + idx).length > 0)
|
|
|
$("#a_" + idx).addClass("aSelected");
|
|
|
@@ -584,17 +584,37 @@
|
|
|
|
|
|
var spanIdx = "";
|
|
|
|
|
|
+ function StartPlayTime() {
|
|
|
+ setInterval(function () {
|
|
|
+
|
|
|
+ for (var i = 0; i <= 16; i++) {
|
|
|
+ var obj = $("#span_playTime_" + i);
|
|
|
+
|
|
|
+ if (obj.length > 0) {
|
|
|
+
|
|
|
+ if (obj.html() != "") {
|
|
|
+ if ($("#span_ConnectionType_" + i).html() != "1")
|
|
|
+ continue;
|
|
|
+
|
|
|
+ var t = parseInt((new Date().getTime() - parseInt(obj.html())) / 1000);//播放时间,秒
|
|
|
+
|
|
|
+ if (t >= 5 * 60) {//5分钟
|
|
|
+ $("#video_" + i).html("<div style='font-size:14px;color:yellow;padding:10px;text-align:center;'>抱歉,由于长时间没有操作,4G摄像头进入自动休眠模式。</div>");
|
|
|
+ $("#a_" + i).removeClass("noborder");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }, 1000);
|
|
|
+ }
|
|
|
+ //监听播放时间
|
|
|
+ StartPlayTime();
|
|
|
+
|
|
|
+ var isIE = (!!window.ActiveXObject || "ActiveXObject" in window);
|
|
|
|
|
|
//预览函数
|
|
|
function StartPlay(id, connectionType, liveStatus, rtmp, hls, deviceSerial, cameraNo, title, obj) {
|
|
|
- // if (obj == null) {
|
|
|
-
|
|
|
- // $("#dataFillDiv >li").eq(0).addClass("select-c");
|
|
|
- // }
|
|
|
- // else {
|
|
|
- // $("#dataFillDiv >li").removeClass("select-c");
|
|
|
- // $(obj).addClass("select-c");
|
|
|
- // }
|
|
|
|
|
|
$("#span_ConnectionType_" + curIndex).html(connectionType);
|
|
|
$("#span_deviceSerial_" + curIndex).html(deviceSerial);
|
|
|
@@ -616,14 +636,31 @@
|
|
|
|
|
|
$("#title_" + curIndex).html(title);
|
|
|
|
|
|
- var playHtml = "<video id='myPlayer" + curIndex + "' style='width: 100%; height: 100%' class='videoNum" + divNum + "' poster='' controls playsinline webkit-playsinline autoplay>";
|
|
|
+ var playHtml;
|
|
|
+ var script;
|
|
|
+
|
|
|
+
|
|
|
+ if (isIE) {
|
|
|
+ playHtml = "<video id='myPlayer" + curIndex + "' style='width: 100%; height: 100%' class='videoNum" + divNum + "' poster='' controls playsinline webkit-playsinline autoplay>";
|
|
|
+
|
|
|
+ //playHtml += " <source src='" + rtmp + "' type='rtmp/flv' />";
|
|
|
+ playHtml += "<source src='" + hls + "' type='application/x-mpegURL' />";
|
|
|
+ playHtml += "</video>";
|
|
|
+
|
|
|
+ script = document.createElement("script");
|
|
|
+ script.type = "text/javascript";
|
|
|
+ script.appendChild(document.createTextNode(" new EZUIPlayer('myPlayer" + curIndex + "');"));
|
|
|
+ }
|
|
|
+ else {
|
|
|
+
|
|
|
+ playHtml = "<iframe id='playFrame" + curIndex + "' src='https://open.ys7.com/ezopen/h5/iframe_se?url=ezopen://open.ys7.com/" + deviceSerial + "/" + cameraNo + ".hd.live&autoplay=1&accessToken=at.d2trwvdod5bxxlr4dug8le6wb0ugbi2h-173pi8ymy3-1882umg-zrib7cj3f&templete=2' width='100%' height='100%' allowfullscreen frameborder='0' allowtransparency=true></iframe>"
|
|
|
+
|
|
|
+ script = document.createElement("script");
|
|
|
+ script.type = "text/javascript";
|
|
|
+ script.appendChild(document.createTextNode(" IframeOnClick.track(document.getElementById('playFrame" + curIndex + "'), function() { setCurIndex(" + curIndex + " ); }); "));
|
|
|
|
|
|
- playHtml += "<source src='" + hls + "' type='' />";
|
|
|
- playHtml += "</video>";
|
|
|
+ }
|
|
|
|
|
|
- var script = document.createElement("script");
|
|
|
- script.type = "text/javascript";
|
|
|
- script.appendChild(document.createTextNode(" new EZUIPlayer('myPlayer" + curIndex + "');"));
|
|
|
|
|
|
$("#video_" + curIndex).html(playHtml);
|
|
|
$("#video_" + curIndex).append(script);
|
|
|
@@ -632,10 +669,43 @@
|
|
|
if ($("#a_" + (curIndex + 1)).length > 0)
|
|
|
SetAutoNext(curIndex + 1);
|
|
|
|
|
|
- //SetPtzControl();
|
|
|
-
|
|
|
windowResize();
|
|
|
}
|
|
|
+ //iframe点击事件
|
|
|
+ var IframeOnClick = {
|
|
|
+ resolution: 200,
|
|
|
+ iframes: [],
|
|
|
+ interval: null,
|
|
|
+ Iframe: function () {
|
|
|
+ this.element = arguments[0];
|
|
|
+ this.cb = arguments[1];
|
|
|
+ this.hasTracked = false;
|
|
|
+ },
|
|
|
+ track: function (element, cb) {
|
|
|
+ this.iframes.push(new this.Iframe(element, cb));
|
|
|
+ if (!this.interval) {
|
|
|
+ var _this = this;
|
|
|
+ this.interval = setInterval(function () { _this.checkClick(); }, this.resolution);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ checkClick: function () {
|
|
|
+ if (document.activeElement) {
|
|
|
+ var activeElement = document.activeElement;
|
|
|
+ for (var i in this.iframes) {
|
|
|
+ if (activeElement === this.iframes[i].element) { // user is in this Iframe
|
|
|
+ if (this.iframes[i].hasTracked == false) {
|
|
|
+ this.iframes[i].cb.apply(window, []);
|
|
|
+ this.iframes[i].hasTracked = true;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.iframes[i].hasTracked = false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ };
|
|
|
+
|
|
|
+
|
|
|
|
|
|
function SetAutoNext(idx) {
|
|
|
if (AutoNext) {
|
|
|
@@ -712,6 +782,7 @@
|
|
|
// 控制
|
|
|
function configCamera(deviceSerial, ctrl, movenum) {
|
|
|
var id = $("#a_" + curIndex).find('.equipname').html();
|
|
|
+ console.log($("#a_" + curIndex))
|
|
|
if (!id) {
|
|
|
layui.use(['layer'], function () {
|
|
|
var layer = layui.layer;
|
|
|
@@ -821,6 +892,45 @@
|
|
|
$('.flashDownDiv').show();
|
|
|
}
|
|
|
|
|
|
+ // 搜索
|
|
|
+ function searchFun(){
|
|
|
+ var id = $('.searchInp>input').val();
|
|
|
+ searchPare(id)
|
|
|
+ }
|
|
|
+ function searchPare(para){
|
|
|
+ $.ajax({
|
|
|
+ url: 'jklist',
|
|
|
+ type: 'get',
|
|
|
+ data: {
|
|
|
+ f_id:para,
|
|
|
+ page: 1
|
|
|
+ },
|
|
|
+ dataType: 'json',
|
|
|
+ beforeSend: function () {
|
|
|
+ // loadFlage = layer.load();
|
|
|
+ },
|
|
|
+ success: function (data) {
|
|
|
+ // layer.close(loadFlage);
|
|
|
+ if (data.nums) {
|
|
|
+ // StartPlay(data);
|
|
|
+ setHtml(data.ids);
|
|
|
+ $("#dataFillDiv >li").removeClass("select-c");
|
|
|
+ $("#dataFillDiv >li").eq(0).addClass("select-c");
|
|
|
+ // getVideoResource(data.ids[0].equip_id,data.ids[0].equip_name);
|
|
|
+ menuTotalPage = Math.ceil(data.nums / 10);
|
|
|
+ if (menuTotalPage > 1) {
|
|
|
+ $('.gardenListBtn').show();
|
|
|
+ } else {
|
|
|
+ $('.gardenListBtn').hide();
|
|
|
+ }
|
|
|
+ $('.menuTotalPage').html(menuTotalPage);
|
|
|
+ } else {
|
|
|
+ $('.flashShowDiv').hide();
|
|
|
+ $('.nullData').show();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
var menuCurrNum = 1; //当前页
|
|
|
var menuTotalPage; //总页
|
|
|
// 分页切换
|