Administrator 2 年之前
父節點
當前提交
de8b69193a
共有 1 個文件被更改,包括 15 次插入10 次删除
  1. 15 10
      mybusiness/src/main/resources/templates/dahua/lib/on_off_switch.js

+ 15 - 10
mybusiness/src/main/resources/templates/dahua/lib/on_off_switch.js

@@ -44,6 +44,7 @@ function lunbo() {
     }
     }
     console.log("video_team:", video_team)
     console.log("video_team:", video_team)
     team_index = 0;
     team_index = 0;
+
     startPlayVideo()
     startPlayVideo()
     intercalHanler = window.setInterval(changeTeam, 40000)
     intercalHanler = window.setInterval(changeTeam, 40000)
 }
 }
@@ -65,18 +66,22 @@ function changeTeam() {
 }
 }
 
 
 function startPlayVideo() {
 function startPlayVideo() {
-    var play_list =[];
-    if (team_index >= video_team.length) {
-        team_index = 0
-    }
-    console.log("team_index:",team_index)
-    play_list = video_team[team_index]
+    if(isLunBo == true){
+        var play_list =[];
+        if (team_index >= video_team.length) {
+            team_index = 0
+        }
+        console.log("team_index:",team_index)
+        play_list = video_team[team_index]
 
 
-    if (play_index >= play_list.length) {
-        play_index = 0
+        if (play_index >= play_list.length) {
+            play_index = 0
+        }
+        var o = play_list[play_index];
+        window.setTimeout(clickLogin, 5000, o.hikIp, o.hikPort, o.hikUsername, o.hikPassword)
     }
     }
-    var o = play_list[play_index];
-    window.setTimeout(clickLogin, 5000, o.hikIp, o.hikPort, o.hikUsername, o.hikPassword)
+
+
 
 
 // for (var k = 0; k < play_list.length; k++) {
 // for (var k = 0; k < play_list.length; k++) {
 //     play_index = k;
 //     play_index = k;