From 1d4621843a71ad0efdba3e021c685a1fa9c34a44 Mon Sep 17 00:00:00 2001 From: BTMuli Date: Tue, 19 Dec 2023 17:44:20 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=B1=20=E8=A7=92=E8=89=B2=20wiki=20?= =?UTF-8?q?=E6=9D=90=E6=96=99=E7=BB=84=E4=BB=B6=E5=8C=96=EF=BC=8C=E5=91=BD?= =?UTF-8?q?=E5=BA=A7=E6=A0=B7=E5=BC=8F=E8=8D=89=E5=88=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/wiki/twc-constellations.vue | 83 ++++++++++++++++++++++ src/components/wiki/twc-materials.vue | 77 ++++++++++++++++++++ src/pages/WIKI/Character.vue | 8 +-- src/views/tw-character.vue | 17 ++--- 4 files changed, 169 insertions(+), 16 deletions(-) create mode 100644 src/components/wiki/twc-constellations.vue create mode 100644 src/components/wiki/twc-materials.vue diff --git a/src/components/wiki/twc-constellations.vue b/src/components/wiki/twc-constellations.vue new file mode 100644 index 00000000..09c76451 --- /dev/null +++ b/src/components/wiki/twc-constellations.vue @@ -0,0 +1,83 @@ + + + diff --git a/src/components/wiki/twc-materials.vue b/src/components/wiki/twc-materials.vue new file mode 100644 index 00000000..fcc3d9c8 --- /dev/null +++ b/src/components/wiki/twc-materials.vue @@ -0,0 +1,77 @@ + + + diff --git a/src/pages/WIKI/Character.vue b/src/pages/WIKI/Character.vue index ce52c686..a14b2df9 100644 --- a/src/pages/WIKI/Character.vue +++ b/src/pages/WIKI/Character.vue @@ -23,15 +23,15 @@ const cardsInfo = computed(() => AppCharacterData); const appStore = useAppStore(); function toOuter(item: TGApp.App.Character.WikiBriefInfo): void { - if (item.contentId === 0) { - snackbar.value = true; - return; - } // 如果是调试环境,打开 wiki 页面 if (appStore.devMode) { createWiki("Character", item.id.toString()); return; } + if (item.contentId === 0) { + snackbar.value = true; + return; + } const url = Mys.Api.Obc.replace("{contentId}", item.contentId.toString()); createTGWindow(url, "Sub_window", `Content_${item.contentId} ${item.name}`, 1200, 800, true); } diff --git a/src/views/tw-character.vue b/src/views/tw-character.vue index 30787ae5..7028c28c 100644 --- a/src/views/tw-character.vue +++ b/src/views/tw-character.vue @@ -43,11 +43,10 @@ -
- - -
+ + +
资料
@@ -71,9 +70,10 @@ import { useRoute } from "vue-router"; import TSwitchTheme from "../components/app/t-switchTheme.vue"; import showSnackbar from "../components/func/snackbar"; -import TibCalendarMaterial from "../components/itembox/tib-calendar-material.vue"; import TItembox from "../components/main/t-itembox.vue"; import ToLoading from "../components/overlay/to-loading.vue"; +import TwcConstellations from "../components/wiki/twc-constellations.vue"; +import TwcMaterials from "../components/wiki/twc-materials.vue"; import { getWikiData } from "../data"; // 路由数据 @@ -191,13 +191,6 @@ onMounted(async () => { font-weight: bold; } -.twc-material-grid { - display: grid; - width: 100%; - grid-template-columns: repeat(3, 1fr); - row-gap: 5px; -} - .twc-text { display: flex; flex-direction: column;