$(document).ready(function () { var userid = $.cookie("userid"); var objp = {}; var imgUrl = ""; var timerset; var oflag = false; var pd = false; loginStatus(); //判断个人是否登录 $(".list_body").niceScroll({ cursorcolor: "#999999" }); $(".chat_body.clearfix").niceScroll({ cursorcolor: "#999999" }); messageList(); setInterval(messageList,5000) function messageList() { $.ajax({ "url": "/ajax/platform/msg/idx", "type": "get", "async": true, "data": { 'provider': userid }, "success": function (data) { if (data.success) { getTotalMessage(); unReadedCount(userid) $(".list_body").html(""); var $data = data.data; for (var i = 0; i < $data.length; i++) { var num = "none" if ($data[i].unread) { num = "block"; } var ostr = '