From e7a322e0385c5c06b64e1e08fdabd89aaafe8096 Mon Sep 17 00:00:00 2001 From: caishi Date: Mon, 18 Oct 2021 17:13:52 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=BC=B9=E6=A1=86=E6=A0=B7=E5=BC=8F-markdo?= =?UTF-8?q?wn=E6=B8=B2=E6=9F=93=E6=9C=89=E5=BD=B1=E5=93=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Component/NoticeModal/Index.scss | 11 ++++------- src/forge/Component/NoticeModal/SystemNotice.jsx | 6 ++++-- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/forge/Component/NoticeModal/Index.scss b/src/forge/Component/NoticeModal/Index.scss index 259be854..18e4dcda 100644 --- a/src/forge/Component/NoticeModal/Index.scss +++ b/src/forge/Component/NoticeModal/Index.scss @@ -39,13 +39,10 @@ .nContent{ padding:20px 34px; background-color: #fff; - .nMaindesc{ - height: 90px; - font-size: 15px; - font-weight: 400; - color: #000000; - line-height: 30px; - } + line-height: 30px; + font-size: 15px; + font-weight: 400; + color: #333; .realmName{ margin-top: 20px; display: flex; diff --git a/src/forge/Component/NoticeModal/SystemNotice.jsx b/src/forge/Component/NoticeModal/SystemNotice.jsx index cb3fccf0..32c864ab 100644 --- a/src/forge/Component/NoticeModal/SystemNotice.jsx +++ b/src/forge/Component/NoticeModal/SystemNotice.jsx @@ -26,10 +26,12 @@ function SystemNotice({system_notification,history}){ // } // }).catch(error=>{}) // } + console.log("cookies before:",cookie.load('notice_stage')) ; cookie.remove('notice_stage'); - let inFifteenMinutes = new Date(new Date().getTime() + 24 * 3600 * 1000);//一天 + // let inFifteenMinutes = new Date(new Date().getTime() + 24 * 3600 * 1000);//一天 + let inFifteenMinutes = new Date(new Date().getTime() + 60 * 1000);//一分钟 cookie.save('notice_stage', true,{ expires: inFifteenMinutes }); - console.log("cookies:",cookie.load('notice_stage')) ; + console.log("cookies after:",cookie.load('notice_stage')) ; setVisible(false); } From 644e3c3f73f8928a68830f51c2ea0d02aa380409 Mon Sep 17 00:00:00 2001 From: caishi Date: Mon, 18 Oct 2021 17:19:20 +0800 Subject: [PATCH 2/2] =?UTF-8?q?cookie=E5=A4=B1=E6=95=88=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E4=B8=80=E5=A4=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Component/NoticeModal/SystemNotice.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/forge/Component/NoticeModal/SystemNotice.jsx b/src/forge/Component/NoticeModal/SystemNotice.jsx index 32c864ab..917b87c8 100644 --- a/src/forge/Component/NoticeModal/SystemNotice.jsx +++ b/src/forge/Component/NoticeModal/SystemNotice.jsx @@ -28,8 +28,8 @@ function SystemNotice({system_notification,history}){ // } console.log("cookies before:",cookie.load('notice_stage')) ; cookie.remove('notice_stage'); - // let inFifteenMinutes = new Date(new Date().getTime() + 24 * 3600 * 1000);//一天 - let inFifteenMinutes = new Date(new Date().getTime() + 60 * 1000);//一分钟 + let inFifteenMinutes = new Date(new Date().getTime() + 24 * 3600 * 1000);//一天 + // let inFifteenMinutes = new Date(new Date().getTime() + 60 * 1000);//一分钟 cookie.save('notice_stage', true,{ expires: inFifteenMinutes }); console.log("cookies after:",cookie.load('notice_stage')) ; setVisible(false);