|
@@ -483,51 +483,51 @@
|
|
|
</script>
|
|
|
{/if}
|
|
|
|
|
|
- {if condition="$isDispatch eq 1"}
|
|
|
- <audio id="dingdantixing" src="/static/tixing.mp3" controls="controls" style="display: none;"></audio>
|
|
|
- <script>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- var time1;
|
|
|
- var audio = document.getElementById('dingdantixing');
|
|
|
-
|
|
|
- $(function () {
|
|
|
- var interval = function () {
|
|
|
- var url = "{:url('Index/order')}";
|
|
|
- $.get(url,function (data) {
|
|
|
- if(data.code == 1){
|
|
|
- var audio = document.getElementById('dingdantixing');
|
|
|
- audio.play();
|
|
|
- if(data.data > 0){
|
|
|
- document.getElementById('orderNums').innerHTML ='('+data.data +')';
|
|
|
- }
|
|
|
-
|
|
|
- // layer.msg('您有新的订单请及时处理',{time:3000});
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- time1 = setInterval(interval,30000);
|
|
|
-
|
|
|
- $("#offNoticeBtn").click(function () {
|
|
|
- var off = parseInt($("#offNoticeVal").val());
|
|
|
- if(off==0){
|
|
|
- clearInterval(time1);
|
|
|
- $("#offNoticeVal").val(1)
|
|
|
- $("#offNoticeBtn").html('开启通知');
|
|
|
- audio.pause();
|
|
|
- }else {
|
|
|
- $("#offNoticeVal").val(0)
|
|
|
- time1 = setInterval(interval,30000);
|
|
|
- $("#offNoticeBtn").html('关闭通知');
|
|
|
-
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
-
|
|
|
-
|
|
|
- </script>
|
|
|
- {/if}
|
|
|
+<!-- {if condition="$isDispatch eq 1"}-->
|
|
|
+<!-- <audio id="dingdantixing" src="/static/tixing.mp3" controls="controls" style="display: none;"></audio>-->
|
|
|
+<!-- <script>-->
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+<!-- var time1;-->
|
|
|
+<!-- var audio = document.getElementById('dingdantixing');-->
|
|
|
+
|
|
|
+<!-- $(function () {-->
|
|
|
+<!-- var interval = function () {-->
|
|
|
+<!-- var url = "{:url('Index/order')}";-->
|
|
|
+<!-- $.get(url,function (data) {-->
|
|
|
+<!-- if(data.code == 1){-->
|
|
|
+<!-- var audio = document.getElementById('dingdantixing');-->
|
|
|
+<!-- audio.play();-->
|
|
|
+<!-- if(data.data > 0){-->
|
|
|
+<!-- document.getElementById('orderNums').innerHTML ='('+data.data +')';-->
|
|
|
+<!-- }-->
|
|
|
+
|
|
|
+<!-- // layer.msg('您有新的订单请及时处理',{time:3000});-->
|
|
|
+<!-- }-->
|
|
|
+<!-- });-->
|
|
|
+<!-- }-->
|
|
|
+<!-- time1 = setInterval(interval,30000);-->
|
|
|
+
|
|
|
+<!-- $("#offNoticeBtn").click(function () {-->
|
|
|
+<!-- var off = parseInt($("#offNoticeVal").val());-->
|
|
|
+<!-- if(off==0){-->
|
|
|
+<!-- clearInterval(time1);-->
|
|
|
+<!-- $("#offNoticeVal").val(1)-->
|
|
|
+<!-- $("#offNoticeBtn").html('开启通知');-->
|
|
|
+<!-- audio.pause();-->
|
|
|
+<!-- }else {-->
|
|
|
+<!-- $("#offNoticeVal").val(0)-->
|
|
|
+<!-- time1 = setInterval(interval,30000);-->
|
|
|
+<!-- $("#offNoticeBtn").html('关闭通知');-->
|
|
|
+
|
|
|
+<!-- }-->
|
|
|
+<!-- })-->
|
|
|
+<!-- })-->
|
|
|
+
|
|
|
+
|
|
|
+<!-- </script>-->
|
|
|
+<!-- {/if}-->
|
|
|
|
|
|
<script>
|
|
|
var menus = {:json_encode($menus)};
|