From 6bf584ac9dbc08718f1289db7b40b62a60eb2fc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B8=AE=E5=B8=AE?= <3102509561@qq.com> Date: Sat, 19 Aug 2023 10:45:38 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 帮帮 <3102509561@qq.com> --- plugins/genshin/model/ledger.js | 15 +++++++++++++-- .../resources/StarRail/html/ledger/ledger.css | 4 ++-- .../resources/StarRail/html/ledger/ledger.html | 3 ++- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/plugins/genshin/model/ledger.js b/plugins/genshin/model/ledger.js index 60f3571..074d270 100644 --- a/plugins/genshin/model/ledger.js +++ b/plugins/genshin/model/ledger.js @@ -133,11 +133,22 @@ export default class Ledger extends base { let files = fs.readdirSync('./plugins/genshin/resources/StarRail/img/role').filter(file => file.endsWith('.webp')) let icon = lodash.sample(files) + let week = [ + '星期日', + '星期一', + '星期二', + '星期三', + '星期四', + '星期五', + '星期六' + ] + let srday = `${week[moment().day()]}` + return { saveId: this.e.uid, uid: this.e.uid, - day, - icon, + day, icon, srday, + nowDay: moment(new Date()).format('YYYY年MM月DD日'), ...ledgerInfo, ...this.screenData } diff --git a/plugins/genshin/resources/StarRail/html/ledger/ledger.css b/plugins/genshin/resources/StarRail/html/ledger/ledger.css index 1eb329a..1df8aa4 100644 --- a/plugins/genshin/resources/StarRail/html/ledger/ledger.css +++ b/plugins/genshin/resources/StarRail/html/ledger/ledger.css @@ -95,7 +95,7 @@ body { .title_date { width: 370px; - height: 450px; + height: 470px; position: absolute; right: 83px; top: 27px; @@ -118,7 +118,7 @@ body { flex-direction: column; font-size: 36px; color: #808080; - height: 80px; + height: 100px; } img { diff --git a/plugins/genshin/resources/StarRail/html/ledger/ledger.html b/plugins/genshin/resources/StarRail/html/ledger/ledger.html index 7664dde..0987ec3 100644 --- a/plugins/genshin/resources/StarRail/html/ledger/ledger.html +++ b/plugins/genshin/resources/StarRail/html/ledger/ledger.html @@ -23,7 +23,8 @@
-
{{day}}
+
{{nowDay}}
+
{{srday}}