diff --git a/public/img/effect/gotcha.png b/public/img/effect/gotcha.png new file mode 100644 index 0000000..dca945c Binary files /dev/null and b/public/img/effect/gotcha.png differ diff --git a/src/assets/css/base-768.scss b/src/assets/css/base-768.scss new file mode 100644 index 0000000..2367f01 --- /dev/null +++ b/src/assets/css/base-768.scss @@ -0,0 +1,24 @@ +@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; + } + //装备相关功能弹框通用样式 + .equip-dialog { + width: 23rem; + .equip .name { + height: 2.5rem; + line-height: 2.5rem; + margin-left: 1rem; + font-size: 1rem; + } + .entry, + .extraEntry { + font-size: 1rem; + } + } +} diff --git a/src/assets/css/base.scss b/src/assets/css/base.scss index 551f1bb..b81a1b9 100644 --- a/src/assets/css/base.scss +++ b/src/assets/css/base.scss @@ -143,10 +143,6 @@ select { border-radius: 4px; } -// .unique { -// background: linear-gradient(125deg, #c90e0d36, #5656d647, 40%, #867d1033, #2c846f4d) !important; -// } - .shabby { color: #a1a1a1 !important; } @@ -181,32 +177,42 @@ select { color: transparent !important; } -.fade-enter-active, -.fade-leave-active { - transition: 0.3s; -} - -.fade-enter, -.fade-leave-to { - transform: translateX(100%); -} -.icon { - display: inline-block; - width: 0.25rem; - height: 0.25rem; - background-repeat: no-repeat; - background-size: contain; - 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; +//装备相关功能弹框通用样式 +.equip-dialog { + color: #f1f1f1; + width: 25rem; + height: auto; + background: rgba(0, 0, 0, 0.2); + border: #393839; + border-radius: 0.4rem; + padding: 1rem; + box-sizing: border-box; + .coins { + display: flex; + align-items: center !important; + justify-content: center; + font-size: 1.1rem; + color: #2fe20f; + } + .descript { + font-family: 'MaShanZheng' !important; + display: flex; + align-items: center !important; + justify-content: center; + font-size: 1.6rem; + padding: 1.4rem 0.7rem; + color: #efb96e; + } + .equip { + display: flex; + width: 100%; + justify-content: center; + + .name { + height: 3.5rem; + line-height: 3.5rem; + margin-left: 1.6rem; + font-size: 1.2rem; + } } } diff --git a/src/assets/css/index-768.scss b/src/assets/css/index-768.scss deleted file mode 100644 index ffa3b1b..0000000 --- a/src/assets/css/index-768.scss +++ /dev/null @@ -1,291 +0,0 @@ -@media screen and (max-width: 768px) { -} - -@media screen and (max-width: 768px) { - .body, - html, - #app { - width: 100%; - height: 100%; - overflow: hidden; - } - * { - user-select: text !important; - } - #app { - -webkit-tap-highlight-color: transparent; - position: fixed; - top: 0; - left: 0; - bottom: 0; - right: 0; - - .main { - .user-status { - width: calc(50% - 0.12rem); - height: calc(25% - 0.02rem); - padding: 0.05rem; - - .hp { - padding-left: 0.08rem; - border: none; - height: 0.25rem; - img { - width: 0.35rem; - height: 0.35rem; - } - - .value { - font-size: 0.18rem; - } - } - .lv { - padding-left: 0.08rem; - border: none; - height: 0.25rem; - - img { - width: 0.35rem; - height: 0.35rem; - } - - .value { - font-size: 0.18rem; - justify-content: space-between; - padding-right: 0.1rem; - } - } - - .other { - margin-top: 0.02rem; - padding: 0.04rem; - border: 1px solid #ccc; - & > div { - padding-top: 0.02rem; - } - - img { - width: 0.3rem; - height: 0.3rem; - } - - .value { - font-size: 0.18rem; - margin-top: 0.04rem; - span { - font-size: 0.12rem !important; - transform: scale(0.8); - margin-top: -0.02rem; - } - } - } - } - - .user-item { - margin-top: 0.12rem; - width: calc(50% - 0.12rem); - height: calc(25% - 0.02rem); - top: 25%; - left: 0.1rem; - padding: 0; - - & > div { - height: 25%; - width: 100%; - - .title { - padding: 0 0.1rem; - display: flex; - align-items: center; - - .icon { - width: 0.4rem; - height: 0.4rem; - - img { - width: 0.35rem; - height: 0.35rem; - } - } - - .name { - font-size: 0.18rem; - } - } - } - - .uii { - display: flex; - flex-direction: column; - - .gold { - width: 100%; - height: 50% !important; - height: auto; - margin: 0; - font-size: 0.12rem; - padding-right: 0.12rem; - - span { - padding: 0; - font-size: 0.16rem !important; - } - } - } - } - - .sys-info { - width: calc(50% - 0.12rem); - height: 50%; - bottom: auto; - right: 0.1rem; - top: 0.1rem; - left: auto; - padding: 0.05rem; - font-size: 0.12rem; - - .info { - i { - display: none; - } - } - - .clear { - top: auto; - bottom: 0.1rem; - right: 0.1rem; - background: #000; - border: 1px solid #ccc; - border-radius: 0.06rem; - padding: 0.02rem 0.04rem; - } - } - - .map { - height: calc(50% - 0.24rem); - right: 0.8rem; - left: 0.1rem; - top: auto; - bottom: 0.1rem; - - .plan { - height: 0.6rem; - } - - .dungeons { - img { - width: 0.35rem; - height: 0.35rem; - } - } - - .event-icon { - width: 0.35rem; - height: 0.35rem; - background-size: 100%; - - span { - font-size: 0.13rem; - } - } - } - - .menu { - display: flex; - flex-direction: column; - left: auto; - right: 0.1rem; - top: 52%; - - & > div { - margin: 0.03rem; - - img { - width: 0.35rem; - height: 0.35rem; - } - - span { - font-size: 0.22rem; - } - } - } - } - - .dialog-backpackPanel { - transform: translate(-50%, -50%) scale(0.8); - } - - .dialog { - top: 50% !important; - left: 50% !important; - transform: translate(-50%, -50%); - - .item-close { - display: block; - } - - .weapon, - .armor, - .ring, - .neck { - & > div { - width: 2.2rem; - font-size: 0.13rem; - - .icon { - width: 0.45rem; - height: 0.45rem; - - img { - width: 0.4rem; - height: 0.4rem; - } - } - } - - padding: 0.06rem; - } - } - } - - .drawer-update { - width: 100% !important; - } - .qa { - left: 1.5rem; - width: 0.45rem; - height: 0.5rem; - span { - font-size: 0.12rem !important; - } - img { - width: 0.25rem; - height: 0.25rem; - } - } - .extras { - left: 0.8rem; - width: 0.45rem; - height: 0.5rem; - span { - font-size: 0.12rem !important; - } - img { - width: 0.25rem; - height: 0.25rem; - } - } - .setting { - left: 0.1rem; - width: 0.45rem; - height: 0.5rem; - span { - font-size: 0.12rem !important; - } - img { - width: 0.25rem; - height: 0.25rem; - } - } -} diff --git a/src/components/dialog.vue b/src/components/dialog.vue index d6a3bd4..45e24b7 100644 --- a/src/components/dialog.vue +++ b/src/components/dialog.vue @@ -170,7 +170,7 @@ onBeforeUnmount(() => { width: 100%; color: white; border-bottom: 1px solid #fff; - + cursor: pointer; } .close { diff --git a/src/components/equip-icon.vue b/src/components/equip-icon.vue index 7866a3f..370210f 100644 --- a/src/components/equip-icon.vue +++ b/src/components/equip-icon.vue @@ -24,17 +24,6 @@ const src = computed(() => { const quality = prop.equip.quality; const key = quality.extraQuality || quality.quality; return equip_effect_gif[key]; - if (quality.extraQuality) { - return taigu_gif; - } - switch (quality.quality) { - case qualitys[4]: - return red_gif; - case qualitys[5]: - return colorful_gif; - default: - return null; - } }) const prop = defineProps({ @@ -44,13 +33,6 @@ const prop = defineProps({ } }) -const iconClass = computed(() => { - if (prop.equip && prop.equip.isUnique()) { - return - } - return ""; -}) - onMounted(() => { }); \ No newline at end of file diff --git a/src/views/backpack/equip-menu/fusion/equip.vue b/src/views/backpack/equip-menu/fusion/equip.vue new file mode 100644 index 0000000..ab7fed9 --- /dev/null +++ b/src/views/backpack/equip-menu/fusion/equip.vue @@ -0,0 +1,52 @@ + + + + diff --git a/src/views/backpack/equip-menu/fusion/fusion.vue b/src/views/backpack/equip-menu/fusion/fusion.vue new file mode 100644 index 0000000..fb3ff10 --- /dev/null +++ b/src/views/backpack/equip-menu/fusion/fusion.vue @@ -0,0 +1,128 @@ + + + + \ No newline at end of file diff --git a/src/views/backpack/equip-menu/fusion/index.ts b/src/views/backpack/equip-menu/fusion/index.ts new file mode 100644 index 0000000..18d3cfd --- /dev/null +++ b/src/views/backpack/equip-menu/fusion/index.ts @@ -0,0 +1,3 @@ +import Fusion from "./fusion.vue"; + +export default Fusion; \ No newline at end of file diff --git a/src/views/backpack/equip-menu/index.ts b/src/views/backpack/equip-menu/index.ts new file mode 100644 index 0000000..6595611 --- /dev/null +++ b/src/views/backpack/equip-menu/index.ts @@ -0,0 +1,3 @@ +import EquipMenu from './equip-menu.vue'; + +export default EquipMenu; diff --git a/src/views/backpack/inherited.vue b/src/views/backpack/equip-menu/inherited.vue similarity index 87% rename from src/views/backpack/inherited.vue rename to src/views/backpack/equip-menu/inherited.vue index 46c0888..e0ed45f 100644 --- a/src/views/backpack/inherited.vue +++ b/src/views/backpack/equip-menu/inherited.vue @@ -1,5 +1,5 @@