diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDesktop/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDesktop/Index.js index a273dd58d..c9f28772b 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDesktop/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDesktop/Index.js @@ -270,13 +270,63 @@ }) } } - } - $(".lr-desktop-panel").lrscroll(); - top.learun.clientdata.getAsync("desktop", { - callback: function(g) { - e(g.target || []); - c(g.list || []); - a(g.chart || []) - } - }) + } + + + //$(".lr-desktop-panel").lrscroll(); + //top.learun.clientdata.getAsync("desktop", { + // callback: function(g) { + // e(g.target || []); + // c(g.list || []); + // a(g.chart || []) + // } + //}) + + setTimeout(onload(), 10000); + + function onload() { + + $(".lr-desktop-panel").lrscroll(); + top.learun.clientdata.getAsync("desktop", + { + callback: function (g) { + c(g.data.list || []); + e(g.data.target || []); + a(g.data.chart || []); + } + + }); + funopen(); + } + //window.setInterval(funopen, 60000); + + //window.clearInterval(t1); + //消息提醒 + function funopen() { + $.ajax({ + url: top.$.rootUrl + '/LR_Desktop/MessageRind/GetCountForUnread', + type: "get", + dataType: "json", + async: false, + success: function (data) { + if (data.data != 0) { + document.getElementById("sound").src = '/Resource/wav/收到新消息.wav'; + top.learun.layeropen({ + //id: 'form', + type: 2, + title: "消息提示", + closeBtn: 0, //不显示关闭按钮 + shade: [0], + area: ['340px', '215px'], + offset: 'rb', //右下角弹出 + anim: 2, + content: top.$.rootUrl + '/LR_Desktop/MessageRind/UnreadIndex', + callBack: function (id) { + return top[id].acceptClick(refreshGirdData); + } + }); + } + } + }); + }; }); \ No newline at end of file