diff --git a/src/assets/css/baizhan/baizhan.less b/src/assets/css/baizhan/baizhan.less index 42c1d244..2ad67feb 100644 --- a/src/assets/css/baizhan/baizhan.less +++ b/src/assets/css/baizhan/baizhan.less @@ -23,11 +23,12 @@ width: 100%; background-color: @baizhan_bg; overflow: hidden; - padding: 0 20px; - height: calc(100vh - 113px); + padding: 15px 20px 0; + height: calc(100vh - 112px); .m-baizhan-sidebar { padding: 0; + top: calc(112px + 20px); padding-left: 20px; background-color: transparent; border-right: none; @@ -43,7 +44,8 @@ } &:hover { .c-sidebar-left-toggle { - .db; + // .db; + .none; background-color: @baizhan_tab_bg; border-color: @baizhan_tab_bg; color: @baizhan_color; @@ -94,23 +96,37 @@ background-color: @baizhan_bg; border-right: none; width: 292px; - height: calc(100vh - 64px - 48px - 32px); + height: calc(100vh - 125px); background: #111827; margin-right: 20px; transition: 0.2s ease-in-out; transform: translateX(0); .r(10px); + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; + .m-right-wrap { + .size(100%, 100%); + overflow-x: hidden; + overflow-y: auto; + .scrollbar(2px, #666); + } + .c-sidebar-right-toggle { + background-color: #101827; + border-color: #101827; + color: @baizhan_color; + } .c-sidebar-right-toggle { .none; + border-radius: 0; } &:hover { .c-sidebar-right-toggle { .db; - background-color: #101827; - border-color: #101827; - color: @baizhan_color; } } + &.is-no { + transform: translateX(calc(100% + 20px)); + } &.is-close { transform: translateX(calc(100% + 20px)); .c-sidebar-right-toggle { diff --git a/src/assets/css/baizhan/main_tabs.less b/src/assets/css/baizhan/main_tabs.less index 521e47af..6cabae7a 100644 --- a/src/assets/css/baizhan/main_tabs.less +++ b/src/assets/css/baizhan/main_tabs.less @@ -30,6 +30,12 @@ color: @tab-text-color-active; background-color: @tab-bg-active; } + &.is-gray { + img, + .u-name { + opacity: 0.3; + } + } } .u-map-info { diff --git a/src/assets/css/baizhan/map.less b/src/assets/css/baizhan/map.less index 2b6017d1..892748df 100644 --- a/src/assets/css/baizhan/map.less +++ b/src/assets/css/baizhan/map.less @@ -248,6 +248,12 @@ } } &.is-info { + background-color: @baizhan_active !important; + color: @baizhan_map_select_color !important; + .u-name, + .u-index { + color: @baizhan_map_select_color; + } .u-info-icon { .db; } @@ -289,6 +295,14 @@ gap: 8px; height: 150px; color: @baizhan_map_color; + &.has-info { + .u-floor { + opacity: 0.2; + &.is-info { + opacity: 1; + } + } + } &:nth-of-type(even) { flex-direction: row-reverse; .u-floor { diff --git a/src/assets/css/baizhan/map_filter.less b/src/assets/css/baizhan/map_filter.less index a650e434..7522a92c 100644 --- a/src/assets/css/baizhan/map_filter.less +++ b/src/assets/css/baizhan/map_filter.less @@ -4,9 +4,11 @@ position: relative; overflow-x: hidden; overflow-y: auto; - height: calc(100vh - 457px); + height: calc(100vh - 428px); .scrollbar(2px, #666); padding: 0 24px 20px !important; + border-bottom-left-radius: 0 !important; + border-bottom-right-radius: 0 !important; .m-section-title { .w(100%); position: relative; diff --git a/src/assets/css/baizhan/map_level_info.less b/src/assets/css/baizhan/map_level_info.less index 8c667d8f..633a70e0 100644 --- a/src/assets/css/baizhan/map_level_info.less +++ b/src/assets/css/baizhan/map_level_info.less @@ -40,6 +40,9 @@ .u-header { font-weight: 700; } + .u-effect-desc { + height: 78px; + } .u-title { .flex; align-items: center; @@ -50,6 +53,12 @@ cursor: pointer; } } + .u-no-effect { + .flex; + align-items: center; + justify-content: center; + height: 78px; + } } .u-skill-wrap { .flex; @@ -68,20 +77,41 @@ height: 30px; .flex; gap: 10px; + justify-content: space-between; align-items: center; background-color: #000; color: @baizhan_color; cursor: pointer; &:hover { - color: @skill_active; + .u-skill-left { + color: @skill_active; + } + } + .u-skill-left { + .flex; + align-items: center; + gap: 10px; + } + .u-skill-right { + font-size: 12px; + color: @baizhan_active; } .u-skill-icon { + transform: scale(1.15); + } + .u-img-wrap { + .flex; + justify-content: center; + align-items: center; + overflow: hidden; .size(30px, 30px); &.is-passive { - .size(26px, 26px); - margin-right: 2px; - margin-left: 2px; - border-radius: 50%; + background-color: @baizhan_map_bg; + .u-skill-icon { + .size(24px, 24px); + border-radius: 50%; + transform: scale(1); + } } } &.u-skill-icon__1 { diff --git a/src/assets/data/baizhan_effects.js b/src/assets/data/baizhan_effects.js index 0269ae28..eab30b68 100644 --- a/src/assets/data/baizhan_effects.js +++ b/src/assets/data/baizhan_effects.js @@ -200,7 +200,7 @@ export const effects = [ name: "因陀罗的护佑", desc: "获得一个随机前进次数,直接获得80个修罗之印。", reward: 80, - tags: ["随机次数"], + tags: ["随机前进"], buffID: 24902, buffLevel: 1, }, diff --git a/src/components/baizhan/main_tabs.vue b/src/components/baizhan/main_tabs.vue index fb420b17..b6c14ab3 100644 --- a/src/components/baizhan/main_tabs.vue +++ b/src/components/baizhan/main_tabs.vue @@ -3,7 +3,7 @@
-
+
{ @@ -405,10 +410,12 @@ export default { const topTxtY = 30 * 1.5; // 垂直位置 ctx.fillText(topTxt, topTxtX, topTxtY); - // const bottomTxt = "By: 魔盒 (https://www.jx3box.com)"; - // const bottomTxtX = canvas.width / 2; // 居中位置 - // const bottomTxtY = canvas.height - topTxtY; // 垂直位置 - // ctx.fillText(bottomTxt, bottomTxtX, bottomTxtY); + const bottomTxt = "魔盒·百战查询 https://www.jx3box.com/fb/baizhan"; + ctx.font = `bold 30px Arial`; + const txtBottomWidth = ctx.measureText(bottomTxt).width; + const bottomTxtX = canvas.width - txtBottomWidth / 2 - 30 * 2; + const bottomTxtY = canvas.height - topTxtY; // 垂直位置 + ctx.fillText(bottomTxt, bottomTxtX, bottomTxtY); // 绘制文字水印 // const txt = "JX3BOX"; diff --git a/src/components/baizhan/map_level_info.vue b/src/components/baizhan/map_level_info.vue index ed990c38..93bdd917 100644 --- a/src/components/baizhan/map_level_info.vue +++ b/src/components/baizhan/map_level_info.vue @@ -22,7 +22,7 @@
层数效果
- -
当前层没有特殊效果
+
+
当前层没有特殊效果
diff --git a/src/store/modules/baizhan.js b/src/store/modules/baizhan.js index 0a3b0449..e2ca5c61 100644 --- a/src/store/modules/baizhan.js +++ b/src/store/modules/baizhan.js @@ -50,6 +50,7 @@ export default { resetCurrent({ commit, state }, isInitBoss = false) { commit("setState", { key: "currentBoss", + // val: isInitBoss ? state.maps?.[0] || {} : {}, val: isInitBoss ? state.maps?.[0] || {} : {}, }); commit("setState", { @@ -205,10 +206,10 @@ export default { key: "maps", val: list, }); - commit("setState", { - key: "currentBoss", - val: list[0], - }); + // commit("setState", { + // key: "currentBoss", + // val: list[0], + // }); }); }, }, diff --git a/src/views/Baizhan.vue b/src/views/Baizhan.vue index d191c8f6..0aeeb5a8 100644 --- a/src/views/Baizhan.vue +++ b/src/views/Baizhan.vue @@ -17,9 +17,12 @@
-
- - + +
+
+ + +