mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
🚚 目录结构调整
This commit is contained in:
@@ -44,7 +44,7 @@ const boxData = computed<TItemBoxData>(() => {
|
||||
if (props.mode === "avatar") {
|
||||
return {
|
||||
bg: `/icon/bg/${props.data.star}-Star.webp`,
|
||||
icon: `/WIKI/character/icon/${props.data.cid}.webp`,
|
||||
icon: `/WIKI/character/${props.data.cid}.webp`,
|
||||
size: "100px",
|
||||
height: "100px",
|
||||
display: "inner",
|
||||
@@ -57,7 +57,7 @@ const boxData = computed<TItemBoxData>(() => {
|
||||
} else {
|
||||
return {
|
||||
bg: `/icon/bg/${props.data.star}-Star.webp`,
|
||||
icon: `/WIKI/weapon/icon/${props.data.id}.webp`,
|
||||
icon: `/WIKI/weapon/${props.data.id}.webp`,
|
||||
size: "100px",
|
||||
height: "100px",
|
||||
display: "inner",
|
||||
|
||||
@@ -180,9 +180,9 @@ function getStar5Avg(): string {
|
||||
// 获取物品图标
|
||||
function getIcon(itemId: string, type: string): string {
|
||||
if (type === "角色") {
|
||||
return "/WIKI/character/icon/" + itemId + ".webp";
|
||||
return "/WIKI/character/" + itemId + ".webp";
|
||||
} else {
|
||||
return "/WIKI/weapon/icon/" + itemId + ".webp";
|
||||
return "/WIKI/weapon/" + itemId + ".webp";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ onMounted(async () => {
|
||||
height: "70px",
|
||||
ltSize: "25px",
|
||||
bg: `/icon/bg/${props.modelValue.star}-Star.webp`,
|
||||
icon: `/WIKI/character/icon/${props.modelValue.id}.webp`,
|
||||
icon: `/WIKI/character/${props.modelValue.id}.webp`,
|
||||
lt: `/icon/weapon/${res.weapon}.webp`,
|
||||
innerText: `Lv.${props.modelValue.level}`,
|
||||
innerHeight: 20,
|
||||
@@ -36,7 +36,7 @@ onMounted(async () => {
|
||||
height: "70px",
|
||||
ltSize: "25px",
|
||||
bg: `/icon/bg/${props.modelValue.star}-Star.webp`,
|
||||
icon: `/WIKI/character/icon/${props.modelValue.id}.webp`,
|
||||
icon: `/WIKI/character/${props.modelValue.id}.webp`,
|
||||
lt: `/icon/element/${res.element}元素.webp`,
|
||||
innerText: `Lv.${props.modelValue.level}`,
|
||||
innerHeight: 20,
|
||||
|
||||
@@ -22,7 +22,7 @@ onMounted(async () => {
|
||||
ltSize: "30px",
|
||||
clickable: false,
|
||||
bg: `/icon/bg/${props.modelValue.star}-Star.webp`,
|
||||
icon: `/WIKI/character/icon/${props.modelValue.id}.webp`,
|
||||
icon: `/WIKI/character/${props.modelValue.id}.webp`,
|
||||
lt: `/icon/element/${res.element}元素.webp`,
|
||||
innerText: props.modelValue.value.toString(),
|
||||
display: "inner",
|
||||
|
||||
@@ -29,7 +29,7 @@ onMounted(async () => {
|
||||
ltSize: "30px",
|
||||
clickable: false,
|
||||
bg: `/icon/bg/${props.modelValue.star}-Star.webp`,
|
||||
icon: `/WIKI/character/icon/${props.modelValue.id}.webp`,
|
||||
icon: `/WIKI/character/${props.modelValue.id}.webp`,
|
||||
lt: `/icon/element/${props.modelValue.element}元素.webp`,
|
||||
rt: props.modelValue.constellation.toString() || "0",
|
||||
rtSize: "20px",
|
||||
|
||||
@@ -32,7 +32,7 @@ const box = computed<TItemBoxData>(() => {
|
||||
clickable: false,
|
||||
display: "outer",
|
||||
height: "80px",
|
||||
icon: `/WIKI/character/icon/${avatar.value?.id}.webp`,
|
||||
icon: `/WIKI/character/${avatar.value?.id}.webp`,
|
||||
innerHeight: 20,
|
||||
innerText: avatar.value.name,
|
||||
lt:
|
||||
|
||||
@@ -34,7 +34,7 @@ const box = computed<TItemBoxData>(() => {
|
||||
clickable: false,
|
||||
display: "outer",
|
||||
height: "100px",
|
||||
icon: `/WIKI/character/icon/${avatar.value?.id}.webp`,
|
||||
icon: `/WIKI/character/${avatar.value?.id}.webp`,
|
||||
innerHeight: 20,
|
||||
// 0.24688451 => 24.688%
|
||||
innerText: (props.modelValue.Rate * 100).toFixed(3) + "%",
|
||||
|
||||
@@ -15,7 +15,7 @@ const box = computed<TItemBoxData>(() => {
|
||||
if (props.modelValue.id === 10000005 || props.modelValue.id === 10000007) {
|
||||
return {
|
||||
bg: `/icon/bg/${props.modelValue.star}-Star.webp`,
|
||||
icon: `/WIKI/character/icon/${props.modelValue.id}.webp`,
|
||||
icon: `/WIKI/character/${props.modelValue.id}.webp`,
|
||||
size: "128px",
|
||||
height: "128px",
|
||||
display: "inner",
|
||||
@@ -28,7 +28,7 @@ const box = computed<TItemBoxData>(() => {
|
||||
}
|
||||
return {
|
||||
bg: `/icon/bg/${props.modelValue.star}-Star.webp`,
|
||||
icon: `/WIKI/character/icon/${props.modelValue.id}.webp`,
|
||||
icon: `/WIKI/character/${props.modelValue.id}.webp`,
|
||||
size: "128px",
|
||||
height: "128px",
|
||||
display: "inner",
|
||||
|
||||
@@ -37,7 +37,7 @@ const props = defineProps<TucDetailDescWeaponProps>();
|
||||
const box = computed(() => {
|
||||
return {
|
||||
bg: `/icon/bg/${props.modelValue.star}-Star.webp`,
|
||||
icon: `/WIKI/weapon/icon/${props.modelValue.id}.webp`,
|
||||
icon: `/WIKI/weapon/${props.modelValue.id}.webp`,
|
||||
};
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -220,7 +220,7 @@ onUpdated(() => {
|
||||
const weaponBox = computed(() => {
|
||||
const weapon = data.value.weapon;
|
||||
return {
|
||||
icon: `/WIKI/weapon/icon/${weapon.id}.webp`,
|
||||
icon: `/WIKI/weapon/${weapon.id}.webp`,
|
||||
bg: `/icon/bg/${weapon.star}-Star.webp`,
|
||||
};
|
||||
});
|
||||
|
||||
@@ -55,7 +55,7 @@ const avatarBox = computed(() => {
|
||||
height: "100px",
|
||||
ltSize: "30px",
|
||||
bg: `/icon/bg/${props.modelValue.star}-Star.webp`,
|
||||
icon: `/WIKI/character/icon/${props.modelValue.cid}.webp`,
|
||||
icon: `/WIKI/character/${props.modelValue.cid}.webp`,
|
||||
lt: `/icon/element/${props.modelValue.element}.webp`,
|
||||
rt: props.modelValue.activeConstellation.toString() || "0",
|
||||
rtSize: "20px",
|
||||
@@ -74,7 +74,7 @@ const weaponBox = computed(() => {
|
||||
height: "100px",
|
||||
ltSize: "30px",
|
||||
bg: `/icon/bg/${weapon.star}-Star.webp`,
|
||||
icon: `/WIKI/weapon/icon/${weapon.id}.webp`,
|
||||
icon: `/WIKI/weapon/${weapon.id}.webp`,
|
||||
lt: `/icon/weapon/${weapon.type}.webp`,
|
||||
rt: weapon.affix.toString() || "0",
|
||||
rtSize: "20px",
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -89,7 +89,7 @@ const data = ref<TGApp.App.Character.WikiItem>();
|
||||
const box = computed(() => {
|
||||
return {
|
||||
bg: `/icon/bg/${data.value?.star}-Star.webp`,
|
||||
icon: `/WIKI/character/icon/${data.value?.id}.webp`,
|
||||
icon: `/WIKI/character/${data.value?.id}.webp`,
|
||||
size: "128px",
|
||||
height: "128px",
|
||||
display: "inner",
|
||||
|
||||
Reference in New Issue
Block a user