From 1d171ff6118bf2493ca9410019c4e5232f73d4d9 Mon Sep 17 00:00:00 2001 From: wangjr Date: Fri, 7 Jan 2022 09:37:17 +0800 Subject: [PATCH] =?UTF-8?q?visible=E4=B8=BA0=E5=85=AC=E5=91=8A=E4=B8=8D?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/base/head.tmpl | 2 +- templates/base/head_fluid.tmpl | 2 +- templates/base/head_pro.tmpl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index 4525ab57e..8f360a637 100755 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -230,7 +230,7 @@ var _hmt = _hmt || []; }else{ isNewNotice=false; } - if ("{{.notice.Visible}}"){ + if (JSON.parse("{{.notice.Visible}}")){ if(isNewNotice){ document.getElementById("notic_content").style.display='block' }else{ diff --git a/templates/base/head_fluid.tmpl b/templates/base/head_fluid.tmpl index 227c50211..15c247c9d 100644 --- a/templates/base/head_fluid.tmpl +++ b/templates/base/head_fluid.tmpl @@ -231,7 +231,7 @@ var _hmt = _hmt || []; }else{ isNewNotice=false; } - if ("{{.notice.Visible}}"){ + if (JSON.parse("{{.notice.Visible}}")){ if(isNewNotice){ document.getElementById("notic_content").style.display='block' }else{ diff --git a/templates/base/head_pro.tmpl b/templates/base/head_pro.tmpl index 13ea305c4..fdb03493f 100644 --- a/templates/base/head_pro.tmpl +++ b/templates/base/head_pro.tmpl @@ -232,7 +232,7 @@ var _hmt = _hmt || []; }else{ isNewNotice=false; } - if ("{{.notice.Visible}}"){ + if (JSON.parse("{{.notice.Visible}}")){ if(isNewNotice){ document.getElementById("notic_content").style.display='block' }else{