This commit is contained in:
西瓜°
2026-02-27 00:05:22 +08:00
parent 03c8ade6cd
commit 732a31bd1a
7 changed files with 21 additions and 3 deletions
+1
View File
@@ -181,6 +181,7 @@ def trans_to_dcalc_set(detail, alter: AltersDep):
'job': job,
'equips': equips,
'avatars': avatar,
'avatarLink': detail.get('avatarLink', ''),
}
# 处理装备
# 处理时装
@@ -31,6 +31,12 @@
</template>
<template v-else> 副武 </template>
</div>
<img
v-if="props.avatar"
:src="props.avatar"
alt="Avatar"
class="pos-absolute w-70% left-1/2 translate-x--1/2 -bottom-10px"
/>
</div>
</template>
@@ -60,6 +66,10 @@ const props = defineProps({
type: Boolean,
default: false,
},
avatar: {
type: String,
default: '',
}
})
const partModelValue = useVModel(props, 'part')
const infoStore = useInfoStore()
@@ -16,6 +16,7 @@ export default defineComponent({
const res = await api.getConfigFromHelper(uid.value)
configStore.config.equips = res.equips
configStore.config.avatar = res.avatars
configStore.config.avatarLink = res.avatarLink
const { alert } = useDialog()
visible.value = false
await alert({
@@ -9,6 +9,7 @@
:suits="configStore.result.state.suits"
:info="configStore.result.state.info"
:equs="configStore.config.equips"
:avatar="configStore.config.avatarLink"
></Info>
</div>
<Skill
@@ -4,6 +4,7 @@
<EquList
:detail="props.equs"
:with-sub-weapon="(infoStore.infos?.subweapons?.length ?? 0) > 0"
:avatar="props.avatar"
></EquList>
</div>
<div class="flex flex-wrap border-y-1px my-1px border-y-solid border-#FFFF/10 gap-1% px-1%">
@@ -85,6 +86,7 @@ const props = defineProps<{
info: IResultUserInfo[]
suits: IResultSuit[]
equs: Record<string, IConfigEquip>
avatar: string
}>()
const partOrder = [
+5 -2
View File
@@ -58,6 +58,7 @@ export interface IConfig {
/** 奶 */
BUFF: boolean
options: Record<string, number>
avatarLink: string
}
const defaultEqusConfig = {
@@ -93,7 +94,8 @@ export const useConfigStore = defineStore('configStore', () => {
bindAwake: 50,
DSB: false,
BUFF: false,
options:{}
options:{},
avatarLink: '',
})
const skillCountConfig = ref<IResultSkillCount[]>([])
@@ -122,7 +124,8 @@ export const useConfigStore = defineStore('configStore', () => {
bindAwake: 50,
DSB: false,
BUFF: false,
options:{}
options:{},
avatarLink: '',
}
if (!config.value?.equips) config.value.equips = {}
if (!config.value?.skills) config.value.skills = {}