Browse Source

多公告修改关闭弹窗后新公告弹出

tags/v1.22.3.2^2
wangjr 3 years ago
parent
commit
a765e65c4b
4 changed files with 12 additions and 12 deletions
  1. +3
    -3
      templates/base/head.tmpl
  2. +3
    -3
      templates/base/head_fluid.tmpl
  3. +3
    -3
      templates/base/head_home.tmpl
  4. +3
    -3
      templates/base/head_pro.tmpl

+ 3
- 3
templates/base/head.tmpl View File

@@ -215,10 +215,10 @@ var _hmt = _hmt || [];
localStorage.setItem("isCloseNotice",true) localStorage.setItem("isCloseNotice",true)
} }
function isShowNotice(){ function isShowNotice(){
var current_notice = localStorage.getItem("notice")
var current_notice = localStorage.getItem("notices")


if (current_notice != "{{.notice.CommitId}}"){
localStorage.setItem('notice',"{{.notice.CommitId}}");
if (current_notice != "{{.notices.CommitId}}"){
localStorage.setItem('notices',"{{.notices.CommitId}}");
isNewNotice=true; isNewNotice=true;
localStorage.setItem("isCloseNotice",false) localStorage.setItem("isCloseNotice",false)
}else{ }else{


+ 3
- 3
templates/base/head_fluid.tmpl View File

@@ -216,10 +216,10 @@ var _hmt = _hmt || [];
localStorage.setItem("isCloseNotice",true) localStorage.setItem("isCloseNotice",true)
} }
function isShowNotice(){ function isShowNotice(){
var current_notice = localStorage.getItem("notice")
var current_notice = localStorage.getItem("notices")


if (current_notice != "{{.notice.CommitId}}"){
localStorage.setItem('notice',"{{.notice.CommitId}}");
if (current_notice != "{{.notices.CommitId}}"){
localStorage.setItem('notices',"{{.notices.CommitId}}");
isNewNotice=true; isNewNotice=true;
localStorage.setItem("isCloseNotice",false) localStorage.setItem("isCloseNotice",false)
}else{ }else{


+ 3
- 3
templates/base/head_home.tmpl View File

@@ -220,10 +220,10 @@ var _hmt = _hmt || [];
localStorage.setItem("isCloseNotice",true) localStorage.setItem("isCloseNotice",true)
} }
function isShowNotice(){ function isShowNotice(){
var current_notice = localStorage.getItem("notice")
var current_notice = localStorage.getItem("notices")


if (current_notice != "{{.notice.CommitId}}"){
localStorage.setItem('notice',"{{.notice.CommitId}}");
if (current_notice != "{{.notices.CommitId}}"){
localStorage.setItem('notices',"{{.notices.CommitId}}");
isNewNotice=true; isNewNotice=true;
localStorage.setItem("isCloseNotice",false) localStorage.setItem("isCloseNotice",false)
}else{ }else{


+ 3
- 3
templates/base/head_pro.tmpl View File

@@ -217,10 +217,10 @@ var _hmt = _hmt || [];
localStorage.setItem("isCloseNotice",true) localStorage.setItem("isCloseNotice",true)
} }
function isShowNotice(){ function isShowNotice(){
var current_notice = localStorage.getItem("notice")
var current_notice = localStorage.getItem("notices")


if (current_notice != "{{.notice.CommitId}}"){
localStorage.setItem('notice',"{{.notice.CommitId}}");
if (current_notice != "{{.notices.CommitId}}"){
localStorage.setItem('notices',"{{.notices.CommitId}}");
isNewNotice=true; isNewNotice=true;
localStorage.setItem("isCloseNotice",false) localStorage.setItem("isCloseNotice",false)
}else{ }else{


Loading…
Cancel
Save