dev
This commit is contained in:
@@ -181,6 +181,7 @@ def trans_to_dcalc_set(detail, alter: AltersDep):
|
|||||||
'job': job,
|
'job': job,
|
||||||
'equips': equips,
|
'equips': equips,
|
||||||
'avatars': avatar,
|
'avatars': avatar,
|
||||||
|
'avatarLink': detail.get('avatarLink', ''),
|
||||||
}
|
}
|
||||||
# 处理装备
|
# 处理装备
|
||||||
# 处理时装
|
# 处理时装
|
||||||
|
|||||||
+1
-1
Submodule backend/openapi updated: 8c08c8599a...0e79002337
@@ -31,6 +31,12 @@
|
|||||||
</template>
|
</template>
|
||||||
<template v-else> 副武 </template>
|
<template v-else> 副武 </template>
|
||||||
</div>
|
</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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -60,6 +66,10 @@ const props = defineProps({
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
|
avatar: {
|
||||||
|
type: String,
|
||||||
|
default: '',
|
||||||
|
}
|
||||||
})
|
})
|
||||||
const partModelValue = useVModel(props, 'part')
|
const partModelValue = useVModel(props, 'part')
|
||||||
const infoStore = useInfoStore()
|
const infoStore = useInfoStore()
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ export default defineComponent({
|
|||||||
const res = await api.getConfigFromHelper(uid.value)
|
const res = await api.getConfigFromHelper(uid.value)
|
||||||
configStore.config.equips = res.equips
|
configStore.config.equips = res.equips
|
||||||
configStore.config.avatar = res.avatars
|
configStore.config.avatar = res.avatars
|
||||||
|
configStore.config.avatarLink = res.avatarLink
|
||||||
const { alert } = useDialog()
|
const { alert } = useDialog()
|
||||||
visible.value = false
|
visible.value = false
|
||||||
await alert({
|
await alert({
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
:suits="configStore.result.state.suits"
|
:suits="configStore.result.state.suits"
|
||||||
:info="configStore.result.state.info"
|
:info="configStore.result.state.info"
|
||||||
:equs="configStore.config.equips"
|
:equs="configStore.config.equips"
|
||||||
|
:avatar="configStore.config.avatarLink"
|
||||||
></Info>
|
></Info>
|
||||||
</div>
|
</div>
|
||||||
<Skill
|
<Skill
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
<EquList
|
<EquList
|
||||||
:detail="props.equs"
|
:detail="props.equs"
|
||||||
:with-sub-weapon="(infoStore.infos?.subweapons?.length ?? 0) > 0"
|
:with-sub-weapon="(infoStore.infos?.subweapons?.length ?? 0) > 0"
|
||||||
|
:avatar="props.avatar"
|
||||||
></EquList>
|
></EquList>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-wrap border-y-1px my-1px border-y-solid border-#FFFF/10 gap-1% px-1%">
|
<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[]
|
info: IResultUserInfo[]
|
||||||
suits: IResultSuit[]
|
suits: IResultSuit[]
|
||||||
equs: Record<string, IConfigEquip>
|
equs: Record<string, IConfigEquip>
|
||||||
|
avatar: string
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
const partOrder = [
|
const partOrder = [
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ export interface IConfig {
|
|||||||
/** 奶 */
|
/** 奶 */
|
||||||
BUFF: boolean
|
BUFF: boolean
|
||||||
options: Record<string, number>
|
options: Record<string, number>
|
||||||
|
avatarLink: string
|
||||||
}
|
}
|
||||||
|
|
||||||
const defaultEqusConfig = {
|
const defaultEqusConfig = {
|
||||||
@@ -93,7 +94,8 @@ export const useConfigStore = defineStore('configStore', () => {
|
|||||||
bindAwake: 50,
|
bindAwake: 50,
|
||||||
DSB: false,
|
DSB: false,
|
||||||
BUFF: false,
|
BUFF: false,
|
||||||
options:{}
|
options:{},
|
||||||
|
avatarLink: '',
|
||||||
})
|
})
|
||||||
|
|
||||||
const skillCountConfig = ref<IResultSkillCount[]>([])
|
const skillCountConfig = ref<IResultSkillCount[]>([])
|
||||||
@@ -122,7 +124,8 @@ export const useConfigStore = defineStore('configStore', () => {
|
|||||||
bindAwake: 50,
|
bindAwake: 50,
|
||||||
DSB: false,
|
DSB: false,
|
||||||
BUFF: false,
|
BUFF: false,
|
||||||
options:{}
|
options:{},
|
||||||
|
avatarLink: '',
|
||||||
}
|
}
|
||||||
if (!config.value?.equips) config.value.equips = {}
|
if (!config.value?.equips) config.value.equips = {}
|
||||||
if (!config.value?.skills) config.value.skills = {}
|
if (!config.value?.skills) config.value.skills = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user