🌱 角色详情页 overlay 草创

This commit is contained in:
BTMuli
2023-06-16 23:31:53 +08:00
parent 0d7ed8d239
commit 0a34f4e483
7 changed files with 532 additions and 13 deletions

View File

@@ -0,0 +1,74 @@
<template>
<TucDetailDesc>
<template #title>
<span>武器</span>
</template>
<template #content>
<TucDetailItemBox v-model="box" />
<div class="tuc-ddw-content">
<div class="tuc-ddwc-top">
<span>{{ props.modelValue.name }}</span>
<span>Lv.{{ props.modelValue.level }}</span>
<span>精炼</span>
<span>{{ props.modelValue.affix }}</span>
<span></span>
</div>
<div class="tuc-ddwc-bottom">
<img :src="`/icon/star/${props.modelValue.star}.webp`" alt="star">
</div>
</div>
</template>
<template #desc>
<span>{{ props.modelValue.description }}</span>
</template>
</TucDetailDesc>
</template>
<script lang="ts" setup>
// vue
import { computed } from "vue";
import TucDetailDesc from "./tuc-detail-desc.vue";
import TucDetailItemBox from "./tuc-detail-itembox.vue";
interface TucDetailDescWeaponProps {
modelValue: TGApp.Sqlite.Character.RoleWeapon;
}
const props = defineProps<TucDetailDescWeaponProps>();
const box = computed(() => {
return {
bg: `/icon/bg/${props.modelValue.star}-Star.webp`,
icon: `/WIKI/weapon/icon/${props.modelValue.id}.webp`,
};
});
</script>
<style lang="css" scoped>
.tuc-ddw-content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
}
.tuc-ddwc-top {
margin-left: 10px;
}
.tuc-ddwc-top span {
margin: 0 5px;
}
.tuc-ddwc-top :nth-child(2),
.tuc-ddwc-top :nth-child(4) {
color: var(--common-color-yellow);
}
.tuc-ddwc-bottom {
margin-left: 15px;
}
.tuc-ddwc-bottom img {
width: 100%;
height: 100%;
}
</style>