ayHaru 4 年之前
父節點
當前提交
60f2479654
共有 1 個文件被更改,包括 10 次插入6 次删除
  1. 10 6
      admin/templates/default/refill.order.send.index.php

+ 10 - 6
admin/templates/default/refill.order.send.index.php

@@ -260,15 +260,19 @@
             type: 'datetime'
         });
         let isWring = '<?php echo $output['count']['exceed_five'];?>';
-        console.log('isWring', Number(isWring));
-        var setTimer = '';
+        // console.log('isWring', Number(isWring));
+        let setTimer
+        let num
         if (Number(isWring) > 0) {
-            clearInterval(setTimer)
-            setTimer = setInterval(function() {
+            window.clearTimeout(setTimer)
+            setTimer = setTimeout(function() {
                 $("#auto")[0].play();
-                window.location.reload();
-                console.log(22);
+                // $("#auto").attr("src",'<?php echo RESOURCE_SITE_URL; ?>/warning.mp3');
             }, 5000);
+            window.clearTimeout(num)
+            num = setTimeout(function() {
+                window.location.reload();
+            }, 6000);
         }
     });
     function hCopyChannel(e) {