From ec261a1c3d7a2d335276e2e79819eb7867d689f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A5=BF=E7=93=9C=C2=B0?= Date: Sat, 29 Mar 2025 14:17:56 +0800 Subject: [PATCH] dev --- backend/core/basic/roleinfo.py | 6 +- frontend/src/components/calc/button/index.vue | 1 - .../src/pages/Character/Equipment/Index.vue | 14 +- .../Character/Equipment/components/Suit.vue | 21 ++- .../Character/Forge/components/equipment.vue | 135 +++++++++------ frontend/src/pages/Character/Forge/index.vue | 2 +- frontend/src/pages/Character/Index.vue | 1 - .../Skill/components/SkillTree/index.tsx | 8 +- frontend/src/stores/config.ts | 67 ++++---- frontend/src/style/icon.scss | 156 +++++++++--------- 10 files changed, 237 insertions(+), 174 deletions(-) diff --git a/backend/core/basic/roleinfo.py b/backend/core/basic/roleinfo.py index 5b40ce94..61d1ef9a 100644 --- a/backend/core/basic/roleinfo.py +++ b/backend/core/basic/roleinfo.py @@ -13,8 +13,10 @@ class CharacterEquipInfo: """强化类型""" enchant: str """附魔""" - emblems: list[str] - """徽章""" + emblem_0: str + """徽章1""" + emblem_1: str + """徽章2""" fusion: int | None """贴膜ID""" refine: int | None diff --git a/frontend/src/components/calc/button/index.vue b/frontend/src/components/calc/button/index.vue index 2afcedb9..bcd242a1 100644 --- a/frontend/src/components/calc/button/index.vue +++ b/frontend/src/components/calc/button/index.vue @@ -25,7 +25,6 @@ export default defineComponent({ default: "primary" } }, - emits: ["click"], setup(props, { slots }) { return () => { const proerpties = { diff --git a/frontend/src/pages/Character/Equipment/Index.vue b/frontend/src/pages/Character/Equipment/Index.vue index 8ac8cbc2..344ca63c 100644 --- a/frontend/src/pages/Character/Equipment/Index.vue +++ b/frontend/src/pages/Character/Equipment/Index.vue @@ -1,8 +1,14 @@ diff --git a/frontend/src/pages/Character/Equipment/components/Suit.vue b/frontend/src/pages/Character/Equipment/components/Suit.vue index 26ca9d12..4ccf9b65 100644 --- a/frontend/src/pages/Character/Equipment/components/Suit.vue +++ b/frontend/src/pages/Character/Equipment/components/Suit.vue @@ -13,6 +13,7 @@ :alt="suit.name" :style="{ filter: curSuit === suit.value ? '' : 'grayscale(100%)' }" @click="curSuit = suit.value" + @dblclick="handleDoubleClick" /> @@ -22,7 +23,13 @@
@@ -57,7 +64,7 @@ const suits = computed(() => { }) const suitEquipments = computed(() => { - const equs = infoStore.equips.filter((a) => a.suit.includes(curSuit.value.toString()) && a.suit.length === 1) + const equs = infoStore.equips.filter((a) => a.suit.includes(curSuit.value.toString()) && a.suit.length === 1 ) const res: (IEquipment | undefined)[] = [] const raritiyList = ['神器','传说','史诗'] @@ -80,7 +87,15 @@ const chooseEqu = async(equip: IEquipment | undefined) => { if (equip && configStore.config.equips[equip.itemDetailType]) { configStore.config.equips[equip.itemDetailType].id = equip.id } - await configStore.calc() + // await configStore.calc() +} + +const handleDoubleClick = () => { + if(!curRarity.value) return + if(curRarity.value == '太初') return + suitEquipments.value.filter(a=>!!a && a.rarity == curRarity.value).splice(0,11).forEach((a) => { + chooseEqu(a) + }) } diff --git a/frontend/src/pages/Character/Forge/components/equipment.vue b/frontend/src/pages/Character/Forge/components/equipment.vue index 56d0da02..870c6921 100644 --- a/frontend/src/pages/Character/Forge/components/equipment.vue +++ b/frontend/src/pages/Character/Forge/components/equipment.vue @@ -1,52 +1,64 @@ diff --git a/frontend/src/pages/Character/Forge/index.vue b/frontend/src/pages/Character/Forge/index.vue index e04f31f3..07d5544e 100644 --- a/frontend/src/pages/Character/Forge/index.vue +++ b/frontend/src/pages/Character/Forge/index.vue @@ -1,6 +1,6 @@