From 7e46746606a595db7ab06a1551663af0599a37f0 Mon Sep 17 00:00:00 2001 From: zhangli <1109134334@qq.com> Date: Mon, 20 Dec 2021 11:27:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20=20=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=8F=B3=E4=B8=8B=E8=A7=92=E6=B6=88=E6=81=AF=E6=8F=90=E9=86=92?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/Home/AdminDesktop/Index.js | 68 ++++++++++++++++--- 1 file changed, 59 insertions(+), 9 deletions(-) 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