diff --git a/src/components/main/t-gamenav.vue b/src/components/main/t-gamenav.vue index 96488d7e..07b5be34 100644 --- a/src/components/main/t-gamenav.vue +++ b/src/components/main/t-gamenav.vue @@ -59,25 +59,17 @@ async function tryGetCode(): Promise { if (!navFind) return; const actId = new URL(navFind.app_path).searchParams.get("act_id"); if (!actId) { - showSnackbar({ - text: "未找到活动ID", - color: "warn", - }); + showSnackbar({ text: "未找到活动ID", color: "warn" }); return; } const res = await TGRequest.Nav.getCode(actId); if (!Array.isArray(res)) { - showSnackbar({ - text: `[${res.retcode}] ${res.message}`, - color: "warn", - }); + showSnackbar({ text: `[${res.retcode}] ${res.message}`, color: "warn" }); return; } codeData.value = res; - showSnackbar({ - text: "获取兑换码成功", - color: "success", - }); + showSnackbar({ text: "获取兑换码成功", color: "success" }); + await TGLogger.Info(JSON.stringify(res)); showOverlay.value = true; } diff --git a/src/components/overlay/to-livecode.vue b/src/components/overlay/to-livecode.vue index 9b05bde6..8435350c 100644 --- a/src/components/overlay/to-livecode.vue +++ b/src/components/overlay/to-livecode.vue @@ -4,17 +4,27 @@
兑换码
@@ -66,4 +76,14 @@ function copy(code: string): void { font-size: 20px; text-align: center; } + +.tolc-icon { + width: 40px; + margin-right: 10px; + aspect-ratio: 1; +} + +.tolc-btn { + margin-left: 10px; +}