From ec253ed2f385590059bc4a6fc8dfb08a15a429c6 Mon Sep 17 00:00:00 2001 From: stonewu Date: Thu, 10 Aug 2023 17:11:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=80=E8=BF=91=E8=AF=84?= =?UTF-8?q?=E8=AE=BA=E9=81=8D=E5=8E=86=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/assets/js/utils.js | 10 +++++----- templates/modules/widgets/aside/comments.html | 11 +---------- templates/modules/widgets/console.html | 11 ++++++++++- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/templates/assets/js/utils.js b/templates/assets/js/utils.js index 8657b343..a05378c7 100644 --- a/templates/assets/js/utils.js +++ b/templates/assets/js/utils.js @@ -3,7 +3,7 @@ var btf = { // 修改时间显示"最近" - diffDate: function (d, more = false) { + diffDateExact: function (d, more = false) { const dateNow = new Date(); const datePost = new Date(d); const dateDiff = dateNow.getTime() - datePost.getTime(); @@ -265,11 +265,11 @@ var btf = { } else if (dayCount >= 1) { result = parseInt(dayCount) + '' + GLOBAL_CONFIG.date_suffix.day } else if (hourCount >= 1) { - result = '最近' - // result = parseInt(hourCount) + ' ' + GLOBAL_CONFIG.date_suffix.hour + // result = '最近' + result = parseInt(hourCount) + ' ' + GLOBAL_CONFIG.date_suffix.hour } else if (minuteCount >= 1) { - result = '最近' - // result = parseInt(minuteCount) + ' ' + GLOBAL_CONFIG.date_suffix.min + // result = '最近' + result = parseInt(minuteCount) + ' ' + GLOBAL_CONFIG.date_suffix.min } else { result = GLOBAL_CONFIG.date_suffix.just } diff --git a/templates/modules/widgets/aside/comments.html b/templates/modules/widgets/aside/comments.html index 1991a957..fcf97fca 100644 --- a/templates/modules/widgets/aside/comments.html +++ b/templates/modules/widgets/aside/comments.html @@ -5,7 +5,7 @@
最新评论
-
+
头像 @@ -20,15 +20,6 @@
- 正在加载中...