From f429cb215a8e168ca649179f44093c9c15ca3bef Mon Sep 17 00:00:00 2001 From: Jinx <41286675+1055169799@users.noreply.github.com> Date: Mon, 16 Oct 2023 03:56:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=9B=9B=E6=98=9F=E6=AD=A6?= =?UTF-8?q?=E5=99=A8=E6=95=B0=E6=8D=AE=E6=9D=A5=E6=BA=90=EF=BC=8C=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E4=B8=89=E6=98=9F=E6=AD=A6=E5=99=A8=E6=95=B0=E9=87=8F?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=20(#283)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 修正四型武器数据来源,增加三星武器数量展示 修正四型武器数据来源,增加三星武器数量展示 * 增加三星武器数量展示样式 增加三星武器数量展示样式 * 增加三星武器数量展示 增加三星武器数量展示 --- plugins/genshin/model/weapon.js | 2 ++ plugins/genshin/resources/html/weapon/weapon.css | 7 +++++++ plugins/genshin/resources/html/weapon/weapon.html | 8 ++++++-- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/plugins/genshin/model/weapon.js b/plugins/genshin/model/weapon.js index 6437728..fa5e61b 100644 --- a/plugins/genshin/model/weapon.js +++ b/plugins/genshin/model/weapon.js @@ -45,6 +45,7 @@ export default class Weapon extends base { let count = { five: 0, four: 0, + three: 0, 单手剑: 0, 双手剑: 0, 长柄武器: 0, @@ -64,6 +65,7 @@ export default class Weapon extends base { if (val.weapon.rarity == 5) count.five++ if (val.weapon.rarity == 4) count.four++ + if (val.weapon.rarity == 3) count.three++ count[val.weapon.type_name]++ diff --git a/plugins/genshin/resources/html/weapon/weapon.css b/plugins/genshin/resources/html/weapon/weapon.css index e6903ef..e07c5d3 100644 --- a/plugins/genshin/resources/html/weapon/weapon.css +++ b/plugins/genshin/resources/html/weapon/weapon.css @@ -87,6 +87,13 @@ body { border-radius: 100%; margin-right: 4px; } +.lab-item-3{ + background: #4c99b9; + width: 6px; + height: 6px; + border-radius: 100%; + margin-right: 4px; +} .lab-item-weapon{ width: 16px; height: 16px; diff --git a/plugins/genshin/resources/html/weapon/weapon.html b/plugins/genshin/resources/html/weapon/weapon.html index 767f29a..e9864a8 100644 --- a/plugins/genshin/resources/html/weapon/weapon.html +++ b/plugins/genshin/resources/html/weapon/weapon.html @@ -19,7 +19,11 @@
-
四星:{{count.five}}
+
四星:{{count.four}}
+
+
+
+
三星:{{count.three}}
@@ -74,4 +78,4 @@ - \ No newline at end of file +