diff --git a/src/pages/Achievements.vue b/src/pages/Achievements.vue index ff1ffd95..46bb0c1f 100644 --- a/src/pages/Achievements.vue +++ b/src/pages/Achievements.vue @@ -13,7 +13,9 @@ single-line hide-details @click:append="searchCard" + @keyup.enter="searchCard" > + 导入 @@ -91,17 +93,12 @@ {{ achievement.completed_time }} - - - - - {{ achievement.reward }} - + + + + {{ achievement.reward }} + + @@ -205,6 +202,9 @@ async function selectSeries(index: number) { function openImg() { createTGWindow(getCardInfo.value.profile, "nameCard", getCardInfo.value.name, 840, 400, false); } +function showMaterial(path: string) { + createTGWindow(path, "material", "原石", 256, 256, false); +} async function searchCard() { if (search.value === "") { await dialog.message("请输入关键字"); @@ -411,8 +411,27 @@ async function exportJson() { } /* 成就奖励 */ -.reward-btn { - background: #565f6f !important; - color: #ece5d8 !important; +.reward-card { + position: relative; + width: 32px; + height: 42px; + background: #414244; + border-radius: 5px; +} + +.reward-num { + position: absolute; + bottom: 0; + left: 0; + width: 100%; + height: 15px; + background: rgba(255, 255, 255, 0.1); + color: #ffffff; + display: flex; + font-size: 10px; + font-family: Genshin, serif; + border-radius: 0 0 5px 5px; + justify-content: center; + align-items: center; }