+
@@ -52,7 +53,7 @@ function getItemBox(item: TGApp.Game.Combat.Avatar): TItemBoxData {
&.grid {
display: grid;
width: 100%;
- grid-gap: 4px;
+ gap: 4px;
grid-template-columns: repeat(2, 1fr);
}
}
diff --git a/src/components/userCombat/tuc-buff-box.vue b/src/components/userCombat/tuc-buff-box.vue
new file mode 100644
index 00000000..4ef6d94f
--- /dev/null
+++ b/src/components/userCombat/tuc-buff-box.vue
@@ -0,0 +1,151 @@
+
+
+
+
+
+
+

+
+
+ 辉彩祝福
+
+
+
+
+
+
+
+
+
![]()
+
+
+ {{ buff.name }}
+ Lv.{{ buff.level }}
+
+
+
+
+
+
![icon]()
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/userCombat/tuc-buffs.vue b/src/components/userCombat/tuc-buffs.vue
deleted file mode 100644
index a7d6dd7a..00000000
--- a/src/components/userCombat/tuc-buffs.vue
+++ /dev/null
@@ -1,71 +0,0 @@
-
-
-
-

-
{{ props.modelValue.summary.total_level }}
-
-
-
![]()
-
{{ item.level }}
-
-
-
-
-
diff --git a/src/components/userCombat/tuc-card-box.vue b/src/components/userCombat/tuc-card-box.vue
new file mode 100644
index 00000000..a6b2df24
--- /dev/null
+++ b/src/components/userCombat/tuc-card-box.vue
@@ -0,0 +1,100 @@
+
+
+
+
神秘收获 {{ props.modelValue.length }}
+
+
+
+
![icon]()
+
+
+
+
+
+
+
+
diff --git a/src/components/userCombat/tuc-cards.vue b/src/components/userCombat/tuc-cards.vue
deleted file mode 100644
index 29a39581..00000000
--- a/src/components/userCombat/tuc-cards.vue
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
-
![]()
-
-
-
-
-
diff --git a/src/components/userCombat/tuc-fight.vue b/src/components/userCombat/tuc-fight.vue
index 5155d54c..03a5a0f8 100644
--- a/src/components/userCombat/tuc-fight.vue
+++ b/src/components/userCombat/tuc-fight.vue
@@ -9,7 +9,7 @@
-
+
@@ -68,17 +68,16 @@ function getBox2(item: TGApp.Game.Combat.AvatarMini): TItemBoxData {
padding: 10px;
border-radius: 5px;
background: var(--box-bg-1);
+ font-family: var(--font-title);
}
.tucfi-label {
color: var(--box-text-4);
- font-family: var(--font-title);
font-size: 20px;
}
.tucfi-data {
- color: var(--tgc-yellow-1);
- font-family: var(--font-text);
+ color: var(--box-text-8);
font-size: 20px;
}
diff --git a/src/components/userCombat/tuc-overview.vue b/src/components/userCombat/tuc-overview.vue
index dd992dd4..1e4eda76 100644
--- a/src/components/userCombat/tuc-overview.vue
+++ b/src/components/userCombat/tuc-overview.vue
@@ -1,16 +1,23 @@
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/userCombat/tuc-round.vue b/src/components/userCombat/tuc-round.vue
index f92f3643..7b019a6d 100644
--- a/src/components/userCombat/tuc-round.vue
+++ b/src/components/userCombat/tuc-round.vue
@@ -1,34 +1,31 @@
-
+
-
![combat]()
-
+
+
圣牌挑战·{{ props.round.tarot_serial_no }}
- 第{{ props.round.round_id }}幕
+ 第{{ props.round.round_id }}幕
{{ timestampToDate(Number(props.round.finish_time) * 1000) }}
+
-
-
-
-
-
-
-
-
-
+
+
-
diff --git a/src/components/userCombat/tuc-sub.vue b/src/components/userCombat/tuc-sub.vue
deleted file mode 100644
index a7864a1a..00000000
--- a/src/components/userCombat/tuc-sub.vue
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
diff --git a/src/components/userCombat/tuc-tile.vue b/src/components/userCombat/tuc-tile.vue
index c1845a94..6c9b669a 100644
--- a/src/components/userCombat/tuc-tile.vue
+++ b/src/components/userCombat/tuc-tile.vue
@@ -1,21 +1,28 @@
-
+
{{ props.title }}
-
+
{{ props.val }}
-
@@ -36,19 +43,17 @@ const props = defineProps
();
padding: 8px;
border-radius: 4px;
background: var(--box-bg-1);
+ font-family: var(--font-title);
}
.tuct-title {
color: var(--box-text-4);
- font-family: var(--font-title);
font-size: 20px;
}
.tuct-text {
- color: var(--tgc-yellow-1);
- font-family: var(--font-text);
+ color: var(--box-text-8);
font-size: 20px;
- font-weight: bold;
}
.tuct-icons {
@@ -59,6 +64,14 @@ const props = defineProps();
img {
height: 30px;
object-fit: contain;
+
+ &.stat0 {
+ filter: invert(0.4);
+ }
}
}
+
+.dark .tuct-icons img.stat0 {
+ filter: unset;
+}
diff --git a/src/pages/User/Combat.vue b/src/pages/User/Combat.vue
index bf0ad931..582a32ef 100644
--- a/src/pages/User/Combat.vue
+++ b/src/pages/User/Combat.vue
@@ -1,4 +1,4 @@
-
+
@@ -6,19 +6,19 @@
幻想真境剧诗
-
+
深境螺旋
-
+
幽境危战
@@ -26,28 +26,28 @@
分享
-
+
刷新
-
+
导入
-
+
删除
-
+
第{{ item.id }}期
@@ -64,15 +64,18 @@
{{ item.id }}
期 UID
{{ uidCur }}
- 更新于
- {{ item.updated }}
真境剧诗 | Render by TeyvatGuide v{{ version }}
- 统计周期 {{ item.startTime }} ~ {{ item.endTime }}
+
+
+ 统计周期 {{ item.startTime }} ~ {{ item.endTime }}
+ {{ item.updated }}更新
+
+
使用角色({{ item.detail.backup_avatars.length }}名)
-
+
@@ -80,7 +83,7 @@
-

+
暂无数据,请尝试刷新
@@ -210,7 +213,7 @@ async function shareCombat(): Promise
{
return;
}
await showLoading.start("正在生成图片", fileName);
- await generateShareImg(fileName, shareDom);
+ await generateShareImg(fileName, shareDom, 2.0);
await showLoading.end();
await TGLogger.Info(`[UserCombat][shareCombat][${userTab.value}] 生成剧诗数据分享图片成功`);
}
@@ -374,12 +377,12 @@ async function tryReadCombat(): Promise {
align-items: center;
color: var(--common-text-title);
column-gap: 4px;
- font-family: var(--font-title);
- font-size: 20px;
-}
+ font-size: 18px;
-.ucw-title :nth-child(2n) {
- color: var(--tgc-yellow-1);
+ :nth-child(2n) {
+ color: var(--tgc-od-orange);
+ font-family: var(--font-title);
+ }
}
.ucw-share {
@@ -388,6 +391,16 @@ async function tryReadCombat(): Promise {
opacity: 0.8;
}
+.ucw-subtitle {
+ position: relative;
+ display: flex;
+ width: 100%;
+ align-items: center;
+ justify-content: space-between;
+ padding-right: 8px;
+ padding-left: 4px;
+}
+
.user-empty {
position: absolute;
top: calc(50vh - 200px);
@@ -406,8 +419,11 @@ async function tryReadCombat(): Promise {
}
.ucw-rounds {
- display: grid;
- gap: 8px;
- grid-template-columns: repeat(2, 1fr);
+ display: flex;
+ width: 100%;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ row-gap: 8px;
}
diff --git a/src/utils/TGShare.ts b/src/utils/TGShare.ts
index 276206e1..40f5ce5c 100644
--- a/src/utils/TGShare.ts
+++ b/src/utils/TGShare.ts
@@ -115,7 +115,6 @@ export async function generateShareImg(
canvas,
x: -15,
y: -15,
- dpi: 350,
};
let canvasData;
try {