From 073cd5e35d26170dc7a2c30ff057f5aa343bd191 Mon Sep 17 00:00:00 2001 From: BTMuli Date: Thu, 11 Dec 2025 17:23:54 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=BD=EF=B8=8F=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=B4=BB=E5=8A=A8=E6=97=A5=E5=8E=86=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/icon/challenge/pos_sub.webp | Bin 0 -> 1220 bytes src/components/pageHome/ph-comp-position.vue | 14 +- src/components/pageHome/ph-pos-user.vue | 74 ++++- .../userChallenge/tuc-challenge-item.vue | 2 +- src/enum/game.ts | 8 +- src/pages/User/Challenge.vue | 54 ++-- src/pages/common/PageHome.vue | 29 +- src/plugins/Sqlite/utils/transUserRecord.ts | 11 +- src/types/Game/ActCalendar.d.ts | 82 +++++- src/types/Game/Challenge.d.ts | 256 ++++++++++-------- src/types/Plugins/UIAF.d.ts | 28 +- 11 files changed, 349 insertions(+), 209 deletions(-) create mode 100644 public/icon/challenge/pos_sub.webp diff --git a/public/icon/challenge/pos_sub.webp b/public/icon/challenge/pos_sub.webp new file mode 100644 index 0000000000000000000000000000000000000000..23ddef45c9901121ab663dd421f3c868ae1e989d GIT binary patch literal 1220 zcmV;#1UvguNk&Gz1ONb6MM6+kP&il$0000G0000f001cf06|PpNEiYD00EHWY$V8%j!ss7q;2Wd98%C5t5uBa|zpq}Y&F zBBaVFK}i_p3+iJuZtKYTcEdNTLe8qi z#_=u(JbMP@o;ggZ;vt&KUi;p>saxFNz-ju=xz_Y1J3=xVL?~C?x+%E>shgzg)=hFo zNEn;9ZQHhS;-$k{yp;X7ZQEAKX&9A70EJAu13*!&27uKpjPC$|nr0B{WeodGH;04e}JZ8n!lBqE|ABZvTi4T)+1u^(uEhrn_s zadZwaiu3{Jfz*M#yBmvi~!?~P<@8X-^;U;zH=V_*D7S}%Yae1Yob@&p;e$-0sk z5I(}ILpq_%y%&9w+E+?zzikaG9D&`QmHPVgoPaj8QlO z*!Fdw_;J1r1js<=>qZ+mI1@=US?u}7(kHX{La!eBmH|IxjAv7QEfNS$Sn*Pp?+SPJ zf{*+UEcva?Q6OqAE$3XMee8d5nV;#enqez*t}Jv5In^*ZZ#O(|w43+O-*>6(Vb&np zuak#DHxo7I82;o65?*`!q^T!*OBQx^V{b8`QB?#Y}T zrj1dw4_PJY|M$OH&WA$9l{1W`ZWJe}UmWk^{Alb-ZpNbRWp`s8E?cKL60rcXD*Qn6 zBUg!Dw4eXRnLYXC7ay24Py>~tUo~XswE4f`)S3C0j<<%VXnIud?DnURZSlq{6&w(9 zuhzxu2clF}xiUTd8MMbd&`ufFpi_FA8@xdxh)ezS(AS{0kfDqnbxr-f29lT)Pgev3 iq$-`*|InexaHwg?&EYk{%ejK}EeZD}9XA@_`b+?s<4M;5 literal 0 HcmV?d00001 diff --git a/src/components/pageHome/ph-comp-position.vue b/src/components/pageHome/ph-comp-position.vue index a3accb06..b788e930 100644 --- a/src/components/pageHome/ph-comp-position.vue +++ b/src/components/pageHome/ph-comp-position.vue @@ -1,20 +1,21 @@ + + + + +
+
{{ props.pos.desc }}
- bg - + bg + {{ reward.num }}
@@ -112,6 +135,7 @@ const posEl = useTemplateRef("posRef"); const endTs = ref(0); const restTs = ref(0); const durationTs = ref(0); +const endHd = ref(); const isStart = computed(() => { return props.pos.start_timestamp !== "0"; }); @@ -124,6 +148,12 @@ onMounted(() => { } if (timer !== null) clearInterval(timer); timer = setInterval(handlePosition, 1000); + if ( + props.pos.type === "ActTypeHardChallenge" && + props.pos.hard_challenge_detail.sub.seconds >= 0 + ) { + endHd.value = timestampToDate(Date.now() + props.pos.hard_challenge_detail.sub.seconds * 1000); + } }); onUnmounted(() => { @@ -226,9 +256,22 @@ async function sharePos(): Promise { img { width: 24px; height: 24px; + padding: 2px; + border-radius: 50%; + background: #2c313c; cursor: pointer; } } + + .challenge-sub { + position: relative; + display: flex; + align-items: center; + + img { + background: unset; + } + } } } @@ -247,6 +290,11 @@ async function sharePos(): Promise { } } +.ph-puc-desc { + font-size: 12px; + opacity: 0.8; +} + .ph-puc-rewards { position: relative; display: flex; diff --git a/src/components/userChallenge/tuc-challenge-item.vue b/src/components/userChallenge/tuc-challenge-item.vue index 8756856d..b0be8b91 100644 --- a/src/components/userChallenge/tuc-challenge-item.vue +++ b/src/components/userChallenge/tuc-challenge-item.vue @@ -49,7 +49,7 @@ import TucMonsterTag from "./tuc-monster-tag.vue"; import { AppCharacterData } from "@/data/index.js"; -type TucChallengeItemProps = { data: TGApp.Game.Challenge.ChallengeList }; +type TucChallengeItemProps = { data: TGApp.Game.Challenge.ChallengeData }; const props = defineProps(); diff --git a/src/enum/game.ts b/src/enum/game.ts index d1a95c81..c3efbda0 100644 --- a/src/enum/game.ts +++ b/src/enum/game.ts @@ -1,6 +1,6 @@ /** * 游戏相关枚举 - * @since Beta v0.8.0 + * @since Beta v0.9.0 */ /** @@ -47,7 +47,7 @@ export function getGameServerDesc(server: TGApp.Game.Base.ServerTypeEnum): strin /** * 近期活动活动类型枚举 - * @since Beta v0.8.0 + * @since Beta v0.9.0 */ export const ActCalendarTypeEnum: typeof TGApp.Game.ActCalendar.ActType = { /** 幽境危战 */ @@ -60,6 +60,10 @@ export const ActCalendarTypeEnum: typeof TGApp.Game.ActCalendar.ActType = { Double: "ActTypeDouble", /** 探索活动 */ Explore: "ActTypeExplore", + /** 立本活动 */ + LiBen: "ActTypeLiBen", + /** 累登活动 */ + SignIn: "ActTypeSignIn", /** 其他活动 */ Other: "ActTypeOther", }; diff --git a/src/pages/User/Challenge.vue b/src/pages/User/Challenge.vue index 59cb442d..9f186bcc 100644 --- a/src/pages/User/Challenge.vue +++ b/src/pages/User/Challenge.vue @@ -6,20 +6,20 @@ icon 幽境危战 - abyss + abyss 深境螺旋 - abyss + abyss 真境剧诗 @@ -27,14 +27,14 @@ @@ -42,28 +42,28 @@
分享 - 刷新 - + 刷新 + 导入 - 删除 + 删除
@@ -71,11 +71,11 @@
@@ -102,14 +102,14 @@ 幽境危战 | UID-{{ item.uid }} | Render by TeyvatGuide v{{ version }}
- - - + + +
- empty + empty 暂无数据,请尝试刷新
@@ -276,6 +276,7 @@ async function refreshChallenge(): Promise { await TGLogger.Info("[UserChallenge][refreshChallenge] 开始刷新挑战数据"); await showLoading.start(`正在获取${account.value.gameUid}的幽境危战数据`); const resp = await recordReq.challenge.detail(cookie.value, account.value); + console.log(resp); if ("retcode" in resp) { await showLoading.end(); isReq.value = false; @@ -326,6 +327,7 @@ async function refreshPopList(hint: boolean = true): Promise { await showLoading.start("正在加载赋光之人列表", `服务器: ${getGameServerDesc(server.value)}`); } const resp = await recordReq.challenge.pop(server.value); + console.log("赋光之人列表", resp); if (resp.retcode !== 0) { reqPop.value = false; showSnackbar.error(`[${resp.retcode}] ${resp.message}`); diff --git a/src/pages/common/PageHome.vue b/src/pages/common/PageHome.vue index 6baccfb2..65f9aef6 100644 --- a/src/pages/common/PageHome.vue +++ b/src/pages/common/PageHome.vue @@ -1,23 +1,24 @@ +