From 8704f513bdc61450fef261c1cfeaaed0e6cf5ba6 Mon Sep 17 00:00:00 2001 From: BTMuli Date: Sat, 3 Jun 2023 01:32:23 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20=E8=BF=98=E5=B7=AE=E5=B0=98?= =?UTF-8?q?=E6=AD=8C=E5=A3=B6=E8=B7=9F=E5=A4=A7=E5=9C=B0=E5=9B=BE=E6=8E=A2?= =?UTF-8?q?=E7=B4=A2=E6=B2=A1=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/itembox/tib-ur-avatar.vue | 31 +++++++++++ src/components/main/t-itembox.vue | 38 +++++++++++--- .../userRecord/tur-overview-grid.vue | 43 +++++++++++++++ .../userRecord/tur-overview-sub.vue | 52 +++++++++++++++++++ src/pages/User/Record.vue | 43 ++++++++++----- src/plugins/Sqlite/utils/transUserRecord.ts | 21 ++++++-- 6 files changed, 203 insertions(+), 25 deletions(-) create mode 100644 src/components/itembox/tib-ur-avatar.vue create mode 100644 src/components/userRecord/tur-overview-grid.vue create mode 100644 src/components/userRecord/tur-overview-sub.vue diff --git a/src/components/itembox/tib-ur-avatar.vue b/src/components/itembox/tib-ur-avatar.vue new file mode 100644 index 00000000..91f5fcb6 --- /dev/null +++ b/src/components/itembox/tib-ur-avatar.vue @@ -0,0 +1,31 @@ + + diff --git a/src/components/main/t-itembox.vue b/src/components/main/t-itembox.vue index 0bde0ba5..8ffc91bf 100644 --- a/src/components/main/t-itembox.vue +++ b/src/components/main/t-itembox.vue @@ -25,14 +25,14 @@ {{ modelValue.innerText }} -
- - outer-icon - - - {{ modelValue.outerText }} - -
+ +
+ + outer-icon + + + {{ modelValue.outerText }} +
@@ -147,6 +147,22 @@ const getOuterFont = computed(() => `${props.modelValue.outerHeight / 2}px`); object-fit: cover; } +.tib-rt { + position: absolute; + top: 0; + right: 0; + width: v-bind(props["modelValue"]["rtSize"]); + height: v-bind(props["modelValue"]["rtSize"]); + background: rgb(0 0 0 / 50%); + border-top-right-radius: 5px; + border-bottom-left-radius: 5px; + display: flex; + justify-content: center; + align-items: center; + font-family: Genshin, serif; + color: #faf7e8; +} + .tib-inner { position: absolute; bottom: 0; @@ -187,4 +203,10 @@ const getOuterFont = computed(() => `${props.modelValue.outerHeight / 2}px`); font-size: v-bind(getOuterFont); text-shadow: 0 0 5px #000; } + +.tib-outer img { + width: v-bind(getOuterHeight); + height: v-bind(getOuterHeight); + margin-right: 5px; +} diff --git a/src/components/userRecord/tur-overview-grid.vue b/src/components/userRecord/tur-overview-grid.vue new file mode 100644 index 00000000..35fc7aed --- /dev/null +++ b/src/components/userRecord/tur-overview-grid.vue @@ -0,0 +1,43 @@ + + + diff --git a/src/components/userRecord/tur-overview-sub.vue b/src/components/userRecord/tur-overview-sub.vue new file mode 100644 index 00000000..3bdb0419 --- /dev/null +++ b/src/components/userRecord/tur-overview-sub.vue @@ -0,0 +1,52 @@ + + + diff --git a/src/pages/User/Record.vue b/src/pages/User/Record.vue index f3ff821a..eb2a6046 100644 --- a/src/pages/User/Record.vue +++ b/src/pages/User/Record.vue @@ -3,7 +3,9 @@
- 原神战绩 更新于 {{ recordData.updated }} + {{ getTitle() }} + 原神战绩 + 更新于 {{ recordData.updated }}
更新数据 @@ -13,28 +15,39 @@ overview 数据总览
-
- + +
+ overview + 我的角色
+
+ +
+
+ overview + 世界探索 +
+ {{ recordData.worldExplore }} +
+ overview + 尘歌壶 +
+ {{ recordData.homes }}
- {{ recordData }}