mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-05-24 05:55:46 +08:00
🐛 修复字段异常
This commit is contained in:
@@ -149,6 +149,7 @@ async function loadUserPool(forceReload: boolean = false): Promise<void> {
|
||||
data = homeStore.actCalendarData;
|
||||
} else {
|
||||
const resp = await recordReq.actCalendar(cookie.value, account.value);
|
||||
console.log(resp);
|
||||
if (<number>resp.retcode === 1034) {
|
||||
await TGLogger.Warn("[PhCompPool][loadUserPool] 触发1034验证");
|
||||
if (!isInit.value || !isRefreshing.value) {
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
<!-- 限时祈愿卡片组件(用户模式) -->
|
||||
<template>
|
||||
<div class="ph-pool-user-card">
|
||||
<div class="ph-pool-type">
|
||||
<span>【{{ poolTypeLabel }}】</span>
|
||||
<span>{{ props.pool.pool_name }}</span>
|
||||
</div>
|
||||
<div class="ph-pool-type">{{ props.pool.pool_name }}</div>
|
||||
<div class="ph-pool-cover" @click="toPool()">
|
||||
<img v-if="cover" :src="cover" alt="cover" />
|
||||
<img v-else alt="empty" class="empty" src="/UI/app/empty.webp" />
|
||||
@@ -132,7 +129,7 @@ const cover = ref<string>();
|
||||
const endTs = ref<number>(0);
|
||||
const restTs = ref<number>(0);
|
||||
const durationTs = ref<number>(0);
|
||||
const totalItems = computed<number>(() => props.pool.avatars.length + props.pool.weapons.length);
|
||||
const totalItems = computed<number>(() => props.pool.avatars.length + props.pool.weapon.length);
|
||||
const avatarItems = computed<Array<AvatarItem>>(() =>
|
||||
props.pool.avatars.map((av) => {
|
||||
const info = getAvatarInfo(av.id);
|
||||
@@ -140,7 +137,7 @@ const avatarItems = computed<Array<AvatarItem>>(() =>
|
||||
}),
|
||||
);
|
||||
const weaponItems = computed<Array<WeaponItem>>(() =>
|
||||
props.pool.weapons.map((wp) => {
|
||||
props.pool.weapon.map((wp) => {
|
||||
const info = getWeaponInfo(wp.id);
|
||||
return { weapon: wp, info };
|
||||
}),
|
||||
@@ -337,10 +334,6 @@ async function toPool(): Promise<void> {
|
||||
cursor: pointer;
|
||||
font-size: 13px;
|
||||
text-shadow: 0 0 4px var(--tgc-dark-1);
|
||||
|
||||
span:last-child:not(:first-child) {
|
||||
font-family: var(--font-title);
|
||||
}
|
||||
}
|
||||
|
||||
.ph-pool-cover {
|
||||
|
||||
2
src/types/Game/ActCalendar.d.ts
vendored
2
src/types/Game/ActCalendar.d.ts
vendored
@@ -87,7 +87,7 @@ declare namespace TGApp.Game.ActCalendar {
|
||||
/** 角色列表 */
|
||||
avatars: Array<ActPoolAvatar>;
|
||||
/** 武器列表 */
|
||||
weapons: Array<ActPoolWeapon>;
|
||||
weapon: Array<ActPoolWeapon>;
|
||||
/** 开始时间戳(秒) */
|
||||
start_timestamp: string;
|
||||
/** 开始时间 */
|
||||
|
||||
Reference in New Issue
Block a user