new:添加米歇尔相关

This commit is contained in:
2026-08-30 22:14:17 +08:00
parent dfc58ffefa
commit 32056eb6aa
8 changed files with 184 additions and 21 deletions
@@ -17,8 +17,13 @@ export default defineComponent({
/** 是否可以设置秘宝精度 */
const can_set_secret = computed(() => {
return ['武器', '辅助装备', '魔法石', '耳环'].includes(part.value as string)
return ['武器', '辅助装备', '魔法石', '耳环', '戒指'].includes(part.value as string)
})
// const can_set_suit = computed(() => {
// return ['戒指'].includes(part.value as string)
// })
const basicInfoStore = useInfoStore()
const enchant_list = computed<IEnchantingInfo[] | undefined>(() => {
@@ -32,6 +37,21 @@ export default defineComponent({
.sort((a, b) => (b.fame ?? 0) - (a.fame ?? 0))
})
// const suit_list = computed(() => {
// const uniqueSuits = new Map<number, { name: string; value: number; imageUrl: string }>()
// basicInfoStore.suits.forEach((a) => {
// if (!uniqueSuits.has(a.suitId)) {
// uniqueSuits.set(a.suitId, {
// name: a.suitName,
// value: a.suitId,
// imageUrl: a.imageUrl.replace('/suit/', '/suit/icon/'),
// })
// }
// })
// const res = Array.from(uniqueSuits.values())
// return res
// })
// const emblem_list = computed<IEnchantingInfo[] | undefined>(() => {
// return basicInfoStore.emblems.filter((item) => item.position.includes(part.value))
// })
@@ -274,6 +294,7 @@ export default defineComponent({
) : (
<div></div>
)}
{/* {can_set_suit.value ? <div></div> : <div></div>} */}
</>
)}
</div>
@@ -21,20 +21,37 @@
</template>
</calc-select>
</div>
<div class="equ-profile-item" v-else>
<div class="row-name">誓约升级</div>
<template v-for="i in Array.from({ length: 4 }, (_, i) => i)" :key="i">
<calc-select
:model-value="getOathUpgradeValue(i)"
@update:model-value="setOathUpgradeValue(i, $event)"
class="flex-1 !h-20px"
>
<calc-option :value="0">无</calc-option>
<calc-option :value="1">技攻 +4%</calc-option>
<calc-option :value="2">CD -8%</calc-option>
</calc-select>
</template>
</div>
<template v-else>
<div class="equ-profile-item">
<div class="row-name">誓约升级</div>
<template v-for="i in Array.from({ length: 4 }, (_, i) => i)" :key="i">
<calc-select
:model-value="getOathUpgradeValue(i)"
@update:model-value="setOathUpgradeValue(i, $event)"
class="flex-1 !h-20px"
>
<calc-option :value="0">无</calc-option>
<calc-option :value="1">技攻 +4%</calc-option>
<calc-option :value="2">CD -8%</calc-option>
<calc-option :value="3">誓约积分 +25</calc-option>
</calc-select>
</template>
</div>
<div class="equ-profile-item">
<template v-for="i in Array.from({ length: 5 }, (_, i) => i)" :key="i">
<calc-select
:model-value="getOathUpgradeValue(i + 4)"
@update:model-value="setOathUpgradeValue(i + 4, $event)"
class="flex-1 !h-20px"
>
<calc-option :value="0">无</calc-option>
<calc-option :value="1">速度 +4%</calc-option>
<calc-option :value="2">范围 +4%</calc-option>
<calc-option :value="3">减伤 +4%</calc-option>
</calc-select>
</template>
</div>
</template>
</div>
</template>
@@ -33,7 +33,7 @@
<span class="w-50px text-right block">
{{ suit.rarity }} {{ lvFormat(suit.level, suit.rarity) }}
</span>
<span class="w-50px text-right block">{{ suit.point }}点</span>
<span class="w-40px text-right block">{{ suit.point }}点</span>
</div>
</div>
<!-- <div class="flex justify-end mr-10px text-#836832" v-if="correction > 0">
@@ -51,7 +51,7 @@
<span class="w-50px text-right block">
{{ oathSuit.rarity }} {{ lvFormat(oathSuit.level, oathSuit.rarity) }}
</span>
<span class="w-50px text-right block">{{ oathSuit.point }}点</span>
<span class="w-40px text-right block">{{ oathSuit.point }}点</span>
</div>
</div>
<div v-if="oathSkills" class="flex justify-around my-5px oath-skill">