ソースを参照

添加 页面右下角消息提醒功能

新疆影视学院高职
zhangli 3年前
コミット
7e46746606
1個のファイルの変更59行の追加9行の削除
  1. +59
    -9
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDesktop/Index.js

+ 59
- 9
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);
}
});
}
}
});
};
});

読み込み中…
キャンセル
保存