|
@@ -395,10 +395,10 @@ function checkCounts() {
|
|
|
Notification.requestPermission(function(status) {
|
|
|
console.info(status, '----------')
|
|
|
if(status === 'granted'){
|
|
|
- // clearInterval(timer)
|
|
|
+ clearInterval(timer)
|
|
|
timer = setInterval(function () {
|
|
|
$.ajax({
|
|
|
- type: 'GET',
|
|
|
+ type: 'POST',
|
|
|
url: '/jymessageCenter/latestNews?t=' + Date.now(),
|
|
|
success: function (r) {
|
|
|
var num = r.count
|
|
@@ -529,8 +529,10 @@ var logic = function(data,num){
|
|
|
infoListCss();
|
|
|
commonMouseEvent();
|
|
|
message.init()
|
|
|
+ initIndexMsgList()
|
|
|
checkCounts()
|
|
|
- }catch(e){}
|
|
|
+ }catch(e){ console.log(e) }
|
|
|
+ $(".newNotice").css('marginTop', '112px')
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -841,6 +843,7 @@ var haslogin = function(num,kyorpn,url){
|
|
|
infoListCss();
|
|
|
commonMouseEvent();
|
|
|
message.init()
|
|
|
+ initIndexMsgList()
|
|
|
checkCounts()
|
|
|
}catch(e){}
|
|
|
}
|
|
@@ -852,6 +855,7 @@ var haslogin = function(num,kyorpn,url){
|
|
|
if (nosess!=null && (!loginflag)){
|
|
|
openLoginDig();
|
|
|
}
|
|
|
+ window.localStorage.setItem('noMesg', 0)
|
|
|
}
|
|
|
getNewShareId(num,true);
|
|
|
})
|