diff --git a/src/components/userAvatar/tua-dc-relic.vue b/src/components/userAvatar/tua-dc-relic.vue new file mode 100644 index 00000000..8292d0d5 --- /dev/null +++ b/src/components/userAvatar/tua-dc-relic.vue @@ -0,0 +1,242 @@ + + + + + + + + + + + + + + {{ getRelicTitle() }} + + Lv.{{ props.modelValue.level }} + {{ getRelicPos() }} + + + + + + + + {{ propMain !== false ? propMain.name : "未知属性" }} + + {{ props.modelValue.main_property.value }} + + + + + {{ prop !== false ? prop.name : "未知属性" }} + + {{ props.modelValue.sub_property_list[index].times }} + + + {{ props.modelValue.sub_property_list[index].value }} + + + + + + diff --git a/src/components/userAvatar/tua-dc-weapon.vue b/src/components/userAvatar/tua-dc-weapon.vue new file mode 100644 index 00000000..b62f39e0 --- /dev/null +++ b/src/components/userAvatar/tua-dc-weapon.vue @@ -0,0 +1,163 @@ + + + + + + + + + {{ props.modelValue.name }} + + Lv.{{ props.modelValue.level }} + 精炼{{ props.modelValue.affix_level }} + + + + + + + + {{ propMain !== false ? propMain.name : "未知属性" }} + + {{ props.modelValue.main_property.final }} + + + + + {{ propSub !== false ? propSub.name : "未知属性" }} + + {{ props.modelValue.sub_property.final }} + + + + + + diff --git a/src/components/userAvatar/tua-detail-card.vue b/src/components/userAvatar/tua-detail-card.vue new file mode 100644 index 00000000..317253ed --- /dev/null +++ b/src/components/userAvatar/tua-detail-card.vue @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + diff --git a/src/components/userAvatar/tua-detail-overlay.vue b/src/components/userAvatar/tua-detail-overlay.vue index 5055243f..da8b5249 100644 --- a/src/components/userAvatar/tua-detail-overlay.vue +++ b/src/components/userAvatar/tua-detail-overlay.vue @@ -1,44 +1,36 @@ - + - - - 经典视图 - 卡片视图(简略) - 卡片视图(详细) + + + + + - - - - - - - - + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + @@ -51,6 +43,8 @@ import TOverlay from "../main/t-overlay.vue"; import TucDetailCard from "../userAvatarCard/tuc-detail-card.vue"; import TucDetailOld from "../userAvatarOld/tuc-detail-old.vue"; +import TuaDetailCard from "./tua-detail-card.vue"; + interface TuaDetailOverlayProps { modelValue: boolean; avatar: TGApp.Sqlite.Character.UserRole; @@ -87,7 +81,7 @@ const avatarsWidth = computed(() => { case "card": return "800px"; case "dev": - return "300px"; + return "800px"; default: return "100px"; } @@ -133,26 +127,6 @@ function onAvatarClick(avatar: TGApp.Sqlite.Character.UserRole): void { transform: translateY(-10px); } -.tdo-tabs-container { - display: flex; - align-items: center; - justify-content: space-between; - padding: 0 10px; - border-radius: 10px; - background: var(--box-bg-1); - box-shadow: 0 0 5px var(--common-shadow-2); - color: var(--box-text-1); - column-gap: 10px; -} - -.tdo-container { - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - row-gap: 10px; -} - .tdo-card-container { display: flex; align-items: center; diff --git a/src/pages/User/Characters.vue b/src/pages/User/Characters.vue index 8fb41691..05b45d23 100644 --- a/src/pages/User/Characters.vue +++ b/src/pages/User/Characters.vue @@ -115,7 +115,7 @@ const showOverlay = ref(false); const selectIndex = ref(0); const showSelect = ref(false); -const showMode = ref<"classic" | "card" | "dev">("card"); +const showMode = ref<"classic" | "card" | "dev">("dev"); const resetSelect = ref(false); const modeList = [ { label: "经典视图", value: "classic" },