Commit 14799930 by html5-李恒逸

修复:小红点数量不变问题

parent dc8e2ca7
......@@ -72,7 +72,7 @@
</div>
</div>
</div>
<script>
<script>
var red_count = "<?php echo isset($red_count) ? $red_count : 0; ?>";
var _url=document.location.href;
var _menu_bar = $(".menu-bar");
......@@ -91,7 +91,7 @@
$(_menu_bar).eq(i).parents(".sub-menu").parent("li").find("span").eq(1).removeClass("arrow").addClass("selected");
$(_menu_bar).eq(i).parents(".sub-menu").css("display","block");
break;
}
}
}
//小红点
......@@ -114,6 +114,7 @@
setInterval(function () {
$.ajax({
type: 'GET',
cache:false,
url: "<?php echo site_url('admin/index/getCount'); ?>",
dataType: 'json',
success: function (retdat) {
......@@ -128,4 +129,4 @@
}
});
}, 5000);
</script>
\ No newline at end of file
</script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment