Prechádzať zdrojové kódy

monitor notify shield autoload

xiaoyu 3 rokov pred
rodič
commit
a4d1af5034

+ 23 - 23
admin/templates/default/refill.order.monitor.notify.php

@@ -434,29 +434,29 @@
             }
         })
       //定时刷新
-        let leftMinutes = 1;
-        let timer = setInterval(function(){
-            leftMinutes ++;
-        if(leftMinutes == 5){
-            clearInterval(timer);
-            setInterval(function(){
-            $.get('index.php?act=ordersendlist&op=ajaxProviderTimeout',{}, function (res) {
-                    res = JSON.parse(res)
-                    let refill_amounts = res.order_stat.refill_amounts
-                    let order_count = res.order_stat.order_count
-                    let special_stat = res.special_stat
-                    $('.refill_amounts').html(refill_amounts)
-                    $('.order_count').html(order_count)
-                    let html = ''
-                    for(var i in special_stat){
-                    let item = special_stat[i]
-                    html += `<li class="lineLi" style="color:#000;">${item.store_name}:${item.order_count}</li>`
-                    }
-                    $('#special_stat').html(html)
-                })
-        },60000);
-            }
-        },1000)
+      //   let leftMinutes = 1;
+      //   let timer = setInterval(function(){
+      //       leftMinutes ++;
+      //   if(leftMinutes == 5){
+      //       clearInterval(timer);
+      //       setInterval(function(){
+      //       $.get('index.php?act=ordersendlist&op=ajaxProviderTimeout',{}, function (res) {
+      //               res = JSON.parse(res)
+      //               let refill_amounts = res.order_stat.refill_amounts
+      //               let order_count = res.order_stat.order_count
+      //               let special_stat = res.special_stat
+      //               $('.refill_amounts').html(refill_amounts)
+      //               $('.order_count').html(order_count)
+      //               let html = ''
+      //               for(var i in special_stat){
+      //               let item = special_stat[i]
+      //               html += `<li class="lineLi" style="color:#000;">${item.store_name}:${item.order_count}</li>`
+      //               }
+      //               $('#special_stat').html(html)
+      //           })
+      //   },60000);
+      //       }
+      //   },1000)
 
         //批量操作
         $('.success').click(function() {