From 3bccba9b7c35e4195b08f56690bf156207ace0fc Mon Sep 17 00:00:00 2001 From: mengyxu Date: Fri, 25 Apr 2025 15:22:04 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8D=E7=A7=BB=E5=8A=A8=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 3 +- src/assets/css/base.scss | 11 ++ src/assets/css/index.scss | 318 ------------------------------ src/components/equip-icon.vue | 9 +- src/components/equip-tip.vue | 45 ----- src/components/equip-tips.vue | 1 + src/components/equip.vue | 44 +++++ src/components/index.ts | 3 +- src/components/tooltip.vue | 20 +- src/config/i18n/zh.ts | 2 +- src/store/action.ts | 12 +- src/store/mutation.ts | 37 +--- src/store/state.ts | 3 +- src/tool/caller.ts | 37 ++++ src/views/archive.vue | 18 ++ src/views/backpack/auto-sell.vue | 25 +++ src/views/backpack/equip-menu.vue | 3 +- src/views/backpack/grid.vue | 40 ++++ src/views/backpack/player.vue | 93 +++++++++ src/views/backpack/strengthen.vue | 8 +- src/views/dungeon/dungeon.vue | 19 +- src/views/dungeon/dungeonMap.vue | 54 ++--- src/views/illustrated/equips.vue | 23 +++ src/views/index.vue | 15 +- src/views/menu.vue | 19 +- src/views/message/attribute.vue | 39 +++- src/views/message/message.vue | 8 +- src/views/message/sys-info.vue | 10 + src/views/music.vue | 2 +- src/views/reborn/reborn.vue | 94 ++++++++- src/views/shop/shop.vue | 32 ++- src/views/version/version.vue | 10 +- 32 files changed, 591 insertions(+), 466 deletions(-) delete mode 100644 src/assets/css/index.scss delete mode 100644 src/components/equip-tip.vue diff --git a/src/App.vue b/src/App.vue index b761fb6..9b2f735 100644 --- a/src/App.vue +++ b/src/App.vue @@ -12,6 +12,7 @@ color: #FFF; width: 100%; height: 100%; - overflow: hidden; + overflow: auto; } + diff --git a/src/assets/css/base.scss b/src/assets/css/base.scss index fe9200e..f2f11ab 100644 --- a/src/assets/css/base.scss +++ b/src/assets/css/base.scss @@ -160,3 +160,14 @@ button { padding: 2px; background-position: center; } + +@media only screen and (max-width: 768px) { + button { + height: 1.8rem; + line-height: 1.6rem; + padding: 0 0.5rem; + margin-left: 0.2rem; + margin-right: 0.2rem; + font-size: 0.8rem; + } +} diff --git a/src/assets/css/index.scss b/src/assets/css/index.scss deleted file mode 100644 index ca88f05..0000000 --- a/src/assets/css/index.scss +++ /dev/null @@ -1,318 +0,0 @@ -* { - box-sizing: border-box; - user-select: none; -} -a { - cursor: pointer; -} -.main { - background: #111; - box-sizing: border-box; - margin: 0; - padding: 0; - position: absolute; - top: 0; - left: 0; - bottom: 0; - right: 0; - color: #eee; - height: 100%; - .user-status { - position: absolute; - top: 0.1rem; - left: 0.1rem; - border: 2px solid #ccc; - height: 4rem; - width: 4rem; - padding: 0.1rem; - display: flex; - flex-direction: column; - .hp { - cursor: pointer; - height: 0.7rem; - width: 100%; - display: flex; - border: 2px solid #ccc; - align-items: center; - padding-left: 0.2rem; - margin-bottom: 0.1rem; - img { - width: 0.5rem; - height: 0.5rem; - } - .value { - font-size: 0.26rem; - font-weight: bold; - text-align: center; - flex: 1; - } - } - .lv { - cursor: pointer; - height: 0.7rem; - width: 100%; - display: flex; - border: 2px solid #ccc; - align-items: center; - padding-left: 0.2rem; - margin-bottom: 0.1rem; - img { - width: 0.5rem; - height: 0.5rem; - } - .value { - display: flex; - justify-content: space-around; - font-size: 0.26rem; - font-weight: bold; - text-align: center; - flex: 1; - align-items: center; - } - } - .other { - img { - width: 0.35rem !important; - height: 0.35rem !important; - } - display: flex; - flex: 1; - padding: 0.1rem; - border: 2px solid #ccc; - flex-wrap: wrap; - & > div, - .item { - cursor: pointer; - width: 33.3%; - height: 50%; - display: flex; - align-items: center; - justify-content: flex-start; - padding-top: 0.05rem; - flex-direction: column; - .value { - margin-top: 0.06rem; - font-size: 0.23rem; - font-weight: normal; - flex: 1; - display: flex; - align-items: center; - flex-direction: column; - } - } - .item { - width: 100%; - } - } - } - .user-item { - position: absolute; - top: 0.1rem; - left: 4.2rem; - border: 2px solid #ccc; - height: 4rem; - width: 4rem; - display: flex; - flex-direction: column; - align-items: center; - justify-content: space-around; - padding: 0.2rem 0; - padding-top: 0.1rem; - cursor: pointer; - & > div { - background: rgba(0, 0, 0, 0.7); - width: calc(100% - 0.4rem); - margin: 0 20rem; - } - .uii { - display: flex; - width: calc(100% -0.4rem); - } - .gold { - cursor: pointer; - height: 0.7rem; - margin: 0.1rem; - margin-top: 0.08rem; - width: calc(100%); - display: flex; - align-items: center; - padding-left: 0.1rem; - font-size: 0.22rem; - span { - font-size: 0.2rem; - font-weight: bold; - text-align: right; - flex: 1; - padding: 0.1rem 0.08rem; - display: flex; - align-items: flex-end; - justify-content: flex-end; - } - } - .title { - display: flex; - padding: 0.05rem; - width: 100%; - .icon { - width: 0.56rem; - height: 0.56rem; - background-color: #000; - display: flex; - align-items: center; - justify-content: center; - border-radius: 0.04rem; - } - .name { - font-size: 0.2rem; - height: 0.46rem; - margin-left: 0.2rem; - line-height: 0.46rem; - } - } - } - .sys-info { - position: absolute; - border: 2px solid #ccc; - height: calc(100% - 4.4rem); - width: 8.1rem; - bottom: 0.1rem; - left: 0.1rem; - - transition: 0.2s; - padding: 0.2rem; - .clear { - position: absolute; - top: 0.2rem; - right: 0.2rem; - cursor: pointer; - &:hover { - text-decoration: underline; - } - } - #sysInfo { - overflow-y: auto; - transition: 0.2s; - width: 100%; - height: 100%; - display: flex; - flex-direction: column; - align-items: flex-start; - justify-content: flex-start; - } - .info { - margin: 0.03rem 0; - } - a { - cursor: pointer; - text-decoration: underline; - margin-left: 0.05rem; - } - .warning > span { - color: #f90202; - } - .battle > span { - color: #de8618; - } - .win > span { - color: #24c4de; - } - .trophy > span { - color: #2fe20f; - } - } - .map { - position: absolute; - right: 0.1rem; - left: 8.3rem; - top: 0.1rem; - bottom: 0.1rem; - border: 2px solid #ccc; - background-image: url(../img/map.jpg); - background-repeat: no-repeat; - background-size: 100% 100%; - .plan { - position: absolute; - top: 0.1rem; - width: calc(100% - 0.3rem); - left: 0.15rem; - height: 1rem; - background: rgba(54, 121, 176, 0.68); - text-align: center; - font-size: 0.4rem; - line-height: 1rem; - } - .eventEnd { - position: absolute; - top: 1.1rem; - right: 0rem; - height: 0.4rem; - font-size: 0.16rem; - line-height: initial; - } - .event-icon { - position: absolute; - cursor: pointer; - width: 0.55rem; - height: 0.75rem; - border: 1px solid #111; - background: rgba(0, 0, 0, 0.5); - border-radius: 4px; - box-shadow: 0 0 4px 4px rgba(100, 255, 36, 0.5); - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - .icon-image { - width: 0.45rem; - height: 0.45rem; - border-radius: 50%; - background-image: url(../icons/menu/d1.png); - background-color: rgba(100, 255, 36, 0.6); - background-repeat: no-repeat; - background-position: center center; - background-size: 30px 29px; - } - span { - text-shadow: 1px 1px 3px rgb(0, 0, 0); - white-space: nowrap; - width: 100%; - text-align: center; - border-top: 1px solid rgba(100, 255, 36, 0.6); - margin-top: 0.03rem; - font-size: 0.14rem; - } - } - .low-level { - } - .h-level { - box-shadow: 0 0 4px 4px rgba(245, 241, 0, 0.5); - .icon-image { - background-image: url(../icons/menu/d2.png); - background-color: rgba(245, 241, 0, 0.6); - } - span { - border-top: 1px solid rgba(245, 241, 0, 0.6); - } - } - .boss { - box-shadow: 0 0 4px 4px rgba(245, 54, 54, 0.5); - .icon-image { - background-image: url(../icons/menu/d3.png); - background-color: rgba(245, 54, 54, 0.6); - } - span { - border-top: 1px solid rgba(245, 54, 54, 0.6); - } - } - .endless { - box-shadow: 0 0 4px 4px rgba(245, 69, 0, 0.5); - .icon-image { - background-image: url(../icons/endless.png); - background-color: rgba(245, 69, 0, 0.6); - } - span { - border-top: 1px solid rgba(245, 69, 0, 0.6); - } - } - } -} diff --git a/src/components/equip-icon.vue b/src/components/equip-icon.vue index 3cec504..31a3f8c 100644 --- a/src/components/equip-icon.vue +++ b/src/components/equip-icon.vue @@ -12,7 +12,7 @@ import { useStore } from "vuex"; import { reactive, onMounted, ref, computed } from "vue"; import { useI18n } from "vue3-i18n"; -import { qualitys,equips_icon_path } from "@/config"; +import { qualitys, equips_icon_path } from "@/config"; const { t } = useI18n(); const { state, commit, dispatch } = useStore(); @@ -67,4 +67,11 @@ onMounted(() => { }); background-position: center !important; background-size: contain !important; } + +@media only screen and (max-width: 768px) { + .icon { + width: 2.5rem; + height: 2.5rem; + } +} \ No newline at end of file diff --git a/src/components/equip-tip.vue b/src/components/equip-tip.vue deleted file mode 100644 index a7806d1..0000000 --- a/src/components/equip-tip.vue +++ /dev/null @@ -1,45 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/components/equip-tips.vue b/src/components/equip-tips.vue index aee3737..99a9a29 100644 --- a/src/components/equip-tips.vue +++ b/src/components/equip-tips.vue @@ -66,4 +66,5 @@ onMounted(() => { }); } } + \ No newline at end of file diff --git a/src/components/equip.vue b/src/components/equip.vue index 86b4143..737ebe6 100644 --- a/src/components/equip.vue +++ b/src/components/equip.vue @@ -131,4 +131,48 @@ onMounted(() => { }); text-align: left; text-indent: 1.7rem; } + +@media only screen and (max-width: 768px) { + .equipPanel { + width: 13rem; + font-size: 0.9rem; + + .title { + + .name { + height: 2.5rem; + line-height: 2.5rem; + margin-left: 0; + } + } + + .type { + padding: 0rem; + } + + .lv { + padding-right: 0.3rem; + } + + .entry { + padding-left: 0rem; + padding-bottom: 0.7rem; + } + + .extraEntry { + padding-left: 0rem; + margin-top: 0.7rem; + padding-bottom: 0.7rem; + } + } + + .des { + color: #777; + font-size: 0.65rem; + margin-top: 0.7rem; + text-align: left; + text-indent: 0.8rem; + } + +} \ No newline at end of file diff --git a/src/components/index.ts b/src/components/index.ts index 58a1c70..435d765 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -1,12 +1,11 @@ import Tooltip from './tooltip.vue'; import Equip from './equip.vue'; -import EquipTip from './equip-tip.vue'; import EquipTips from './equip-tips.vue'; import EquipIcon from './equip-icon.vue'; import Dialog from './dialog.vue'; import Drawer from './drawer.vue'; import PopoverMenu from './popover-menu.vue'; import Confirm from './confirm.vue'; -export { Tooltip, Equip, EquipTip, EquipTips, EquipIcon, Dialog, Drawer, PopoverMenu, Confirm }; +export { Tooltip, Equip, EquipTips, EquipIcon, Dialog, Drawer, PopoverMenu, Confirm }; export * from './tabs'; diff --git a/src/components/tooltip.vue b/src/components/tooltip.vue index f143d9a..a81d019 100644 --- a/src/components/tooltip.vue +++ b/src/components/tooltip.vue @@ -1,6 +1,7 @@ @@ -34,13 +34,11 @@ onMounted(() => { }); \ No newline at end of file diff --git a/src/views/message/attribute.vue b/src/views/message/attribute.vue index e9047e2..b1d95bc 100644 --- a/src/views/message/attribute.vue +++ b/src/views/message/attribute.vue @@ -37,9 +37,7 @@ - +
@@ -89,7 +87,7 @@ onBeforeUnmount(() => { display: flex; flex-wrap: wrap; position: absolute; - top: 3rem; + top: 2.5rem; width: 100%; &>div, @@ -99,8 +97,8 @@ onBeforeUnmount(() => { margin-top: 0.2rem; img { - width: 2.2rem !important; - height: 2.2rem !important; + width: 2.2rem; + height: 2.2rem; float: left; margin-left: 0.5rem; } @@ -119,4 +117,33 @@ onBeforeUnmount(() => { width: 100%; } } + +@media only screen and (max-width: 768px) { + .attribute { + top: 2rem; + + &>div, + .item { + width: 50%; + margin-top: 0.1rem; + + img { + width: 2rem; + height: 2rem; + margin-left: 0.1rem; + } + + .value { + font-size: 1rem; + line-height: 2rem; + height: 2rem; + margin-left: 0.1rem; + } + } + + .item { + width: 100%; + } + } +} \ No newline at end of file diff --git a/src/views/message/message.vue b/src/views/message/message.vue index bd386d2..b957e09 100644 --- a/src/views/message/message.vue +++ b/src/views/message/message.vue @@ -23,7 +23,7 @@ onMounted(() => { }); position: relative; border: 2px solid #ccc; height: 100%; - width: 52.5rem; + width: 100%; transition: 0.2s; padding: 0.2rem; padding-top: 8.5rem; @@ -38,6 +38,12 @@ onMounted(() => { }); text-decoration: underline; } } +} +@media only screen and (max-width: 768px) { + .message .clear { + top: 8.5rem; + right: 0; + } } \ No newline at end of file diff --git a/src/views/message/sys-info.vue b/src/views/message/sys-info.vue index 8a32818..77225dd 100644 --- a/src/views/message/sys-info.vue +++ b/src/views/message/sys-info.vue @@ -91,4 +91,14 @@ a { color: aqua; padding-left: 0.3rem; } + +@media only screen and (max-width: 768px) { + .sysInfo{ + font-size: 0.8rem; + } + .time{ + font-size: 0.6rem; + } + +} \ No newline at end of file diff --git a/src/views/music.vue b/src/views/music.vue index ed4eb72..14ebcf5 100644 --- a/src/views/music.vue +++ b/src/views/music.vue @@ -1,5 +1,5 @@