dev
This commit is contained in:
@@ -181,6 +181,7 @@ def trans_to_dcalc_set(detail, alter: AltersDep):
|
||||
'job': job,
|
||||
'equips': equips,
|
||||
'avatars': avatar,
|
||||
'avatarLink': detail.get('avatarLink', ''),
|
||||
}
|
||||
# 处理装备
|
||||
# 处理时装
|
||||
|
||||
+1
-1
Submodule backend/openapi updated: 8c08c8599a...0e79002337
@@ -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 = [
|
||||
|
||||
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user