Compare commits
1 Commits
w2
...
ecb368bbb2
| Author | SHA1 | Date | |
|---|---|---|---|
| ecb368bbb2 |
Binary file not shown.
|
Before Width: | Height: | Size: 253 KiB After Width: | Height: | Size: 38 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 472 KiB After Width: | Height: | Size: 88 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 508 KiB After Width: | Height: | Size: 111 KiB |
40
src/App.vue
40
src/App.vue
@@ -25,7 +25,7 @@
|
|||||||
<!-- 页脚 -->
|
<!-- 页脚 -->
|
||||||
<footer class="game-footer">
|
<footer class="game-footer">
|
||||||
<div class="footer-content">
|
<div class="footer-content">
|
||||||
<p>© 2025-2026 聚上集团 | 云上企 版权所有.</p>
|
<p>© 2025-2026 聚上集团 | 云上企. 所有权利保留.</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
@@ -108,28 +108,7 @@
|
|||||||
|
|
||||||
.footer-content {
|
.footer-content {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
/* 雕刻效果:使用多层text-shadow创建凸起感 */
|
text-shadow: 1px 1px 10px black;
|
||||||
text-shadow:
|
|
||||||
-1px -1px 0 rgba(255, 255, 255, 0.3), /* 高光 - 左上 */
|
|
||||||
1px 1px 0 rgba(0, 0, 0, 0.5), /* 阴影 - 右下 */
|
|
||||||
0 0 5px rgba(17, 17, 17, 0.5); /* 光晕 */
|
|
||||||
/* 背景和内边距 */
|
|
||||||
padding: 8px 16px;
|
|
||||||
border-radius: 4px;
|
|
||||||
|
|
||||||
/* 添加轻微的3D效果 */
|
|
||||||
transform: perspective(1000px) rotateX(0deg);
|
|
||||||
transition: all 0.3s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 鼠标悬停时增强3D效果 */
|
|
||||||
.footer-content:hover {
|
|
||||||
transform: perspective(1000px) rotateX(2deg) translateY(-2px);
|
|
||||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
|
|
||||||
text-shadow:
|
|
||||||
-1px -1px 0 rgba(255, 255, 255, 0.4),
|
|
||||||
1px 1px 0 rgba(0, 0, 0, 0.6),
|
|
||||||
0 0 8px rgba(15, 15, 15, 0.7);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 针对1920x1080分辨率的banner精确定位 */
|
/* 针对1920x1080分辨率的banner精确定位 */
|
||||||
@@ -193,20 +172,5 @@
|
|||||||
.app-logo {
|
.app-logo {
|
||||||
width: 200px; /* 移动设备上设置固定宽度为200px */
|
width: 200px; /* 移动设备上设置固定宽度为200px */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 移动设备上的页脚雕刻效果适配 */
|
|
||||||
.footer-content {
|
|
||||||
font-size: 12px;
|
|
||||||
padding: 6px 12px;
|
|
||||||
text-shadow:
|
|
||||||
-1px -1px 0 rgba(255, 255, 255, 0.2),
|
|
||||||
1px 1px 0 rgba(0, 0, 0, 0.4),
|
|
||||||
0 0 3px rgba(255, 215, 0, 0.4);
|
|
||||||
}
|
|
||||||
|
|
||||||
.footer-content:hover {
|
|
||||||
transform: none; /* 移动设备上禁用悬停效果 */
|
|
||||||
box-shadow: none;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -32,9 +32,7 @@
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<!-- 第三部分:奖金设置(图片形式) -->
|
<!-- 第三部分:奖金设置(图片形式) -->
|
||||||
<section v-if="localDisplayConfig.showBonusModule" class="bonus-section card-game"
|
<section v-if="localDisplayConfig.showBonusModule" class="bonus-section card-game" @mousedown="startBonusDrag"
|
||||||
@mousedown="startBonusDrag"
|
|
||||||
@touchstart="startBonusTouch"
|
|
||||||
@click.stop>
|
@click.stop>
|
||||||
<div class="bonus-awards-container">
|
<div class="bonus-awards-container">
|
||||||
<div><img src="/award1.png" alt="一等奖" class="award-image"></div>
|
<div><img src="/award1.png" alt="一等奖" class="award-image"></div>
|
||||||
@@ -47,10 +45,7 @@
|
|||||||
<section class="total-score-section card-game">
|
<section class="total-score-section card-game">
|
||||||
<div class="total-score-container">
|
<div class="total-score-container">
|
||||||
<div class="game-subtitle total-score-total-title">
|
<div class="game-subtitle total-score-total-title">
|
||||||
<img src="/completed_performance.png"
|
<img src="/completed_performance.png" alt="总战绩" class="total-score-total-image">
|
||||||
alt="总战绩"
|
|
||||||
style="width: 880px; display: block; margin: 0 auto; height: auto;"
|
|
||||||
class="total-score-total-image">
|
|
||||||
</div>
|
</div>
|
||||||
<div class="total-score-content">
|
<div class="total-score-content">
|
||||||
<div class="total-score-item">
|
<div class="total-score-item">
|
||||||
@@ -68,8 +63,7 @@
|
|||||||
<div class="team-rankings">
|
<div class="team-rankings">
|
||||||
<!-- 战区排名宣传语 -->
|
<!-- 战区排名宣传语 -->
|
||||||
<div class="team-rankings-propagation">
|
<div class="team-rankings-propagation">
|
||||||
<img src="/team-propagation.png" alt="虎狼之师" class="team-rankings-propagation-image"
|
<img src="/team-propagation.png" alt="虎狼之师" class="team-rankings-propagation-image">
|
||||||
style="width: 500px; height: auto">
|
|
||||||
</div>
|
</div>
|
||||||
<!-- 战区冠军 -->
|
<!-- 战区冠军 -->
|
||||||
<div class="team-champion">
|
<div class="team-champion">
|
||||||
@@ -125,8 +119,7 @@
|
|||||||
<div class="individual-rankings">
|
<div class="individual-rankings">
|
||||||
<!-- 英雄排名宣传语 -->
|
<!-- 英雄排名宣传语 -->
|
||||||
<div class="individual-rankings-propagation">
|
<div class="individual-rankings-propagation">
|
||||||
<img src="/individual-propagation.png" alt="虎狼之师" class="individual-rankings-propagation-image"
|
<img src="/individual-propagation.png" alt="虎狼之师" class="individual-rankings-propagation-image">
|
||||||
style="width: 500px; height: auto">
|
|
||||||
</div>
|
</div>
|
||||||
<!-- 英雄冠军 -->
|
<!-- 英雄冠军 -->
|
||||||
<div class="individual-champion">
|
<div class="individual-champion">
|
||||||
@@ -216,7 +209,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, onBeforeMount, onMounted, onUnmounted, watch, computed, reactive, proxyRefs } from 'vue';
|
import { ref, onBeforeMount, onMounted, onUnmounted, watch, computed, reactive } from 'vue';
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
import {
|
import {
|
||||||
individualRankings as importedIndividualRankings,
|
individualRankings as importedIndividualRankings,
|
||||||
@@ -734,7 +727,7 @@ const startDrag = (e) => {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
};
|
};
|
||||||
|
|
||||||
// 开始拖动奖金模块(鼠标事件)
|
// 开始拖动奖金模块
|
||||||
const startBonusDrag = (e) => {
|
const startBonusDrag = (e) => {
|
||||||
e.stopPropagation(); // 阻止事件冒泡
|
e.stopPropagation(); // 阻止事件冒泡
|
||||||
isBonusDragging = true;
|
isBonusDragging = true;
|
||||||
@@ -747,24 +740,7 @@ const startBonusDrag = (e) => {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
};
|
};
|
||||||
|
|
||||||
// 开始拖动奖金模块(触摸事件)
|
// 结束拖动
|
||||||
const startBonusTouch = (e) => {
|
|
||||||
e.stopPropagation(); // 阻止事件冒泡
|
|
||||||
e.preventDefault(); // 阻止默认行为,如滚动
|
|
||||||
|
|
||||||
const touch = e.touches[0];
|
|
||||||
isBonusDragging = true;
|
|
||||||
|
|
||||||
// 计算触摸点相对于元素左上角的偏移量
|
|
||||||
const rect = e.currentTarget.getBoundingClientRect();
|
|
||||||
bonusDragOffset.x = touch.clientX - rect.left;
|
|
||||||
bonusDragOffset.y = touch.clientY - rect.top;
|
|
||||||
|
|
||||||
// 提高拖动时的性能,临时禁用动画效果
|
|
||||||
e.currentTarget.style.transition = 'none';
|
|
||||||
};
|
|
||||||
|
|
||||||
// 结束拖动(鼠标和触摸事件)
|
|
||||||
const endDrag = (e) => {
|
const endDrag = (e) => {
|
||||||
isDragging = false;
|
isDragging = false;
|
||||||
|
|
||||||
@@ -778,19 +754,7 @@ const endDrag = (e) => {
|
|||||||
isBonusDragging = false;
|
isBonusDragging = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
// 结束触摸拖动
|
// 优化的拖动函数 - 使用节流减少更新频率
|
||||||
const endTouch = (e) => {
|
|
||||||
if (isBonusDragging) {
|
|
||||||
// 恢复动画效果
|
|
||||||
const bonusElement = document.querySelector('.bonus-section');
|
|
||||||
if (bonusElement) {
|
|
||||||
bonusElement.style.transition = '';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
isBonusDragging = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
// 优化的拖动函数 - 使用节流减少更新频率(鼠标事件)
|
|
||||||
const drag = throttle((e) => {
|
const drag = throttle((e) => {
|
||||||
if (isDragging) {
|
if (isDragging) {
|
||||||
drumsPosition.value.x = e.clientX - dragOffset.x;
|
drumsPosition.value.x = e.clientX - dragOffset.x;
|
||||||
@@ -828,43 +792,6 @@ const drag = throttle((e) => {
|
|||||||
}
|
}
|
||||||
}, 10); // 10ms节流,约100FPS
|
}, 10); // 10ms节流,约100FPS
|
||||||
|
|
||||||
// 优化的触摸拖动函数 - 使用节流减少更新频率
|
|
||||||
const touchMove = throttle((e) => {
|
|
||||||
if (isBonusDragging) {
|
|
||||||
e.preventDefault(); // 阻止页面滚动
|
|
||||||
|
|
||||||
const touch = e.touches[0];
|
|
||||||
// 计算新的位置
|
|
||||||
const newX = touch.clientX - bonusDragOffset.x;
|
|
||||||
const newY = touch.clientY - bonusDragOffset.y;
|
|
||||||
|
|
||||||
// 确保元素不会被拖出视口
|
|
||||||
const windowWidth = window.innerWidth;
|
|
||||||
const windowHeight = window.innerHeight;
|
|
||||||
const element = document.querySelector('.bonus-section');
|
|
||||||
|
|
||||||
if (element) {
|
|
||||||
const elementWidth = element.offsetWidth;
|
|
||||||
const elementHeight = element.offsetHeight;
|
|
||||||
|
|
||||||
// 限制在视口内,添加一些边距
|
|
||||||
const limitedX = Math.max(10, Math.min(newX, windowWidth - elementWidth - 10));
|
|
||||||
const limitedY = Math.max(10, Math.min(newY, windowHeight - elementHeight - 10));
|
|
||||||
|
|
||||||
// 使用优化的更新函数更新奖金模块位置
|
|
||||||
requestAnimationFrame(() => {
|
|
||||||
bonusPosition.x = limitedX;
|
|
||||||
bonusPosition.y = limitedY;
|
|
||||||
// 直接设置元素样式确保实时更新
|
|
||||||
element.style.left = `${limitedX}px`;
|
|
||||||
element.style.top = `${limitedY}px`;
|
|
||||||
element.style.right = 'auto';
|
|
||||||
element.style.bottom = 'auto';
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}, 10); // 10ms节流,约100FPS
|
|
||||||
|
|
||||||
// 计算倒计时
|
// 计算倒计时
|
||||||
const calculateCountdown = () => {
|
const calculateCountdown = () => {
|
||||||
// 使用配置的结束时间
|
// 使用配置的结束时间
|
||||||
@@ -1164,11 +1091,6 @@ onMounted(async () => {
|
|||||||
// 添加拖放相关的事件监听
|
// 添加拖放相关的事件监听
|
||||||
document.addEventListener('mousemove', drag);
|
document.addEventListener('mousemove', drag);
|
||||||
document.addEventListener('mouseup', endDrag);
|
document.addEventListener('mouseup', endDrag);
|
||||||
|
|
||||||
// 添加触摸事件监听
|
|
||||||
document.addEventListener('touchmove', touchMove, { passive: false });
|
|
||||||
document.addEventListener('touchend', endTouch);
|
|
||||||
document.addEventListener('touchcancel', endTouch);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// 监听结束时间变化(在真实环境中,可能需要通过props或store来监听)
|
// 监听结束时间变化(在真实环境中,可能需要通过props或store来监听)
|
||||||
@@ -1194,11 +1116,6 @@ onUnmounted(() => {
|
|||||||
document.removeEventListener('mousemove', drag);
|
document.removeEventListener('mousemove', drag);
|
||||||
document.removeEventListener('mouseup', endDrag);
|
document.removeEventListener('mouseup', endDrag);
|
||||||
|
|
||||||
// 移除触摸事件监听
|
|
||||||
document.removeEventListener('touchmove', touchMove);
|
|
||||||
document.removeEventListener('touchend', endTouch);
|
|
||||||
document.removeEventListener('touchcancel', endTouch);
|
|
||||||
|
|
||||||
// 清理音频资源
|
// 清理音频资源
|
||||||
if (audioContext) {
|
if (audioContext) {
|
||||||
audioContext.close();
|
audioContext.close();
|
||||||
@@ -1219,11 +1136,43 @@ onUnmounted(() => {
|
|||||||
transform: translateY(0px) rotate(0deg);
|
transform: translateY(0px) rotate(0deg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.team-rankings-propagation-image {
|
||||||
|
width: 360px;
|
||||||
|
height: auto;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.individual-rankings-propagation-image {
|
||||||
|
width: 360px;
|
||||||
|
height: auto;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
.avatar-image-champion {
|
||||||
|
object-fit: cover;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
.avatar-image-champion {
|
.avatar-image-champion {
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 新增:电脑端「已完成业绩」图片居中 */
|
||||||
|
.total-score-total-title {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center; /* 水平居中 */
|
||||||
|
}
|
||||||
|
.total-score-total-image {
|
||||||
|
width: 780px; /* 电脑端图片宽度(可按需调小,比如160px/200px) */
|
||||||
|
height: auto; /* 保持宽高比不变形 */
|
||||||
|
}
|
||||||
|
.score-value {
|
||||||
|
font-size: 10rem; /* 电脑端所有业绩数字大小 */
|
||||||
|
}
|
||||||
|
|
||||||
|
.total-score-total-value {
|
||||||
|
font-size: 10rem;
|
||||||
|
margin-top: -40px;
|
||||||
|
}
|
||||||
/* 冠军模块样式 */
|
/* 冠军模块样式 */
|
||||||
.champion-section {
|
.champion-section {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -1240,12 +1189,12 @@ onUnmounted(() => {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
margin-bottom: 0;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.team-logo {
|
.team-logo {
|
||||||
font-size: 0;
|
font-size: 2rem;
|
||||||
margin-bottom: 0;
|
margin-bottom: 5px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
color: gold;
|
color: gold;
|
||||||
}
|
}
|
||||||
@@ -1378,7 +1327,6 @@ onUnmounted(() => {
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
cursor: move;
|
cursor: move;
|
||||||
transition: transform 0.2s ease;
|
transition: transform 0.2s ease;
|
||||||
z-index: 9999; /* 设置最高层级,确保在最上层显示 */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 奖金图片容器样式 - Flex布局居中且保持一行 */
|
/* 奖金图片容器样式 - Flex布局居中且保持一行 */
|
||||||
@@ -1409,69 +1357,15 @@ onUnmounted(() => {
|
|||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
|
|
||||||
.total-score-total-image {
|
.total-score-total-image {
|
||||||
width: 340px !important; /* 调整总战绩图片大小,覆盖内联样式 */
|
width: 320px;
|
||||||
}
|
|
||||||
|
|
||||||
/* 移动端总战绩金额字体调小 */
|
|
||||||
.total-score-total-value {
|
|
||||||
font-size: 5rem !important; /* 调小总战绩金额字体 */
|
|
||||||
margin-top: -40px !important; /* 调整与图片的间距 */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.team-rankings-propagation-image {
|
.team-rankings-propagation-image {
|
||||||
width: 200px !important; /* 覆盖内联样式 */
|
width: 320px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.individual-rankings-propagation-image {
|
.individual-rankings-propagation-image {
|
||||||
width: 200px !important; /* 覆盖内联样式 */
|
width: 320px;
|
||||||
}
|
|
||||||
|
|
||||||
/* 战区排名宣传语容器调整 */
|
|
||||||
.team-rankings-propagation {
|
|
||||||
position: relative;
|
|
||||||
z-index: 5; /* 提高z-index避免被其他元素遮挡 */
|
|
||||||
margin-bottom: 70px; /* 进一步增大战区冠军的间距 */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 英雄排名宣传语容器调整 */
|
|
||||||
.individual-rankings-propagation {
|
|
||||||
position: relative;
|
|
||||||
z-index: 5; /* 提高z-index避免被其他元素遮挡 */
|
|
||||||
margin-bottom: 10px; /* 减小英雄榜虎狼之师图片与个人英雄图片的距离 */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 移动端战区冠军布局调整,与个人英雄冠军保持一致 */
|
|
||||||
.team-champion {
|
|
||||||
margin-bottom: 30px; /* 增加与下方战区排名标题的间距 */
|
|
||||||
padding: 10px; /* 调整内边距 */
|
|
||||||
min-height: 120px; /* 确保与英雄冠军有相同的视觉权重 */
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 移动端英雄冠军布局调整 */
|
|
||||||
.individual-champion {
|
|
||||||
margin-bottom: -10px; /* 恢复为修改之前的间距 */
|
|
||||||
padding: 10px; /* 与战区冠军保持一致的内边距 */
|
|
||||||
min-height: 120px; /* 确保与战区冠军有相同的视觉权重 */
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 确保两个排名区域在移动端有相同的起始位置 */
|
|
||||||
.team-rankings,
|
|
||||||
.individual-rankings {
|
|
||||||
position: relative;
|
|
||||||
z-index: 2; /* 统一的层级 */
|
|
||||||
padding-top: 10px; /* 统一的顶部内边距 */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 战区和英雄排名容器在移动端的统一样式 */
|
|
||||||
.team-rankings-container,
|
|
||||||
.individual-rankings-container {
|
|
||||||
margin-top: 20px; /* 与上方冠军图片的统一间距 */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 隐藏倒计时模块 */
|
/* 隐藏倒计时模块 */
|
||||||
@@ -1501,7 +1395,7 @@ onUnmounted(() => {
|
|||||||
|
|
||||||
/* 保留响应式中的padding设置,但移除其他可能冲突的位置样式 */
|
/* 保留响应式中的padding设置,但移除其他可能冲突的位置样式 */
|
||||||
.bonus-section {
|
.bonus-section {
|
||||||
padding: 8px; /* 减小padding */
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bonus-awards-container {
|
.bonus-awards-container {
|
||||||
@@ -1509,12 +1403,6 @@ onUnmounted(() => {
|
|||||||
scale: 0.8;
|
scale: 0.8;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 确保图片容器有足够的显示空间 */
|
|
||||||
.team-rankings, .individual-rankings {
|
|
||||||
position: relative;
|
|
||||||
z-index: 2; /* 确保排名区域在奖金模块之上 */
|
|
||||||
}
|
|
||||||
|
|
||||||
.timer-float {
|
.timer-float {
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
}
|
}
|
||||||
@@ -1734,7 +1622,7 @@ onUnmounted(() => {
|
|||||||
background: rgba(255, 255, 255, 0.95);
|
background: rgba(255, 255, 255, 0.95);
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
cursor: move;
|
cursor: move;
|
||||||
z-index: 1000;
|
z-index: 100;
|
||||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
|
||||||
transition: box-shadow 0.3s ease;
|
transition: box-shadow 0.3s ease;
|
||||||
}
|
}
|
||||||
@@ -1922,29 +1810,8 @@ onUnmounted(() => {
|
|||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-top: 0.8rem;
|
margin-top: 0.8rem;
|
||||||
max-height: 420px;
|
max-height: 480px;
|
||||||
// 只对左侧战区的.rank-table生效(通过父容器限定)
|
min-height: 480px;
|
||||||
.team-rankings-container & {
|
|
||||||
-ms-overflow-style: none; /* IE/Edge 隐藏 */
|
|
||||||
scrollbar-width: none; /* Firefox 隐藏 */
|
|
||||||
}
|
|
||||||
// Chrome/Safari 隐藏左侧滚动条(伪元素必须单独写)
|
|
||||||
.team-rankings-container &::-webkit-scrollbar {
|
|
||||||
display: none !important;
|
|
||||||
width: 0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
// ========== 新增:右侧英雄排名滚动条保留原样 ==========
|
|
||||||
.individual-rankings-container & {
|
|
||||||
-ms-overflow-style: auto; /* 恢复IE/Edge默认 */
|
|
||||||
scrollbar-width: auto; /* 恢复Firefox默认 */
|
|
||||||
}
|
|
||||||
// Chrome/Safari 恢复右侧滚动条
|
|
||||||
.individual-rankings-container &::-webkit-scrollbar {
|
|
||||||
display: block !important;
|
|
||||||
width: 6px !important; // 恢复默认滚动条宽度
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.table-header {
|
.table-header {
|
||||||
@@ -2006,7 +1873,7 @@ onUnmounted(() => {
|
|||||||
/* 前三名特殊背景色,增强亮度和对比度 - 确保英雄排名和战区排名样式一致 */
|
/* 前三名特殊背景色,增强亮度和对比度 - 确保英雄排名和战区排名样式一致 */
|
||||||
.team-rankings-container .table-row:nth-child(1),
|
.team-rankings-container .table-row:nth-child(1),
|
||||||
.individual-rankings-container .table-row:nth-child(1) {
|
.individual-rankings-container .table-row:nth-child(1) {
|
||||||
background: linear-gradient(135deg, #ffd700, #403f3c);
|
background: linear-gradient(135deg, #ffd700, #ffed4a);
|
||||||
color: #333;
|
color: #333;
|
||||||
box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
|
box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
|
||||||
}
|
}
|
||||||
@@ -2089,8 +1956,9 @@ onUnmounted(() => {
|
|||||||
gap: 15px;
|
gap: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 移除空的total-score-content规则集以避免SCSS警告 */
|
.total-score-content {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
.total-score-item {
|
.total-score-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -2101,19 +1969,23 @@ onUnmounted(() => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.score-value {
|
.score-value {
|
||||||
font-size: calc(var(--individual-champion-font-size, 6rem) * 2);
|
font-size: calc(var(--individual-champion-font-size, 2.4rem) * 2);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #fff2c4;
|
color: #fff2c4;
|
||||||
text-shadow: 0 0 10px rgba(0, 0, 0, .8), 0 0 20px rgb(16 16 16 / 30%), 1px 1px 2px rgba(0, 0, 0, .8);
|
text-shadow:
|
||||||
|
0 0 10px rgba(255, 215, 0, 0.5),
|
||||||
|
0 0 20px rgba(255, 215, 0, 0.3),
|
||||||
|
1px 1px 2px rgba(0, 0, 0, 0.8);
|
||||||
}
|
}
|
||||||
|
|
||||||
.total-score-total-value {
|
.total-score-total-value {
|
||||||
|
|
||||||
margin-top: -40px;
|
margin-top: -40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 战区冠军分数特殊样式 */
|
/* 战区冠军分数特殊样式 */
|
||||||
.team-champion .score-value {
|
.team-champion .score-value {
|
||||||
font-size: calc(var(--team-champion-font-size, 1.8rem) * 4);
|
font-size: calc(var(--team-champion-font-size, 1.8rem) * 2);
|
||||||
text-shadow:
|
text-shadow:
|
||||||
0 0 15px rgba(255, 215, 0, 0.7),
|
0 0 15px rgba(255, 215, 0, 0.7),
|
||||||
0 0 30px rgba(255, 215, 0, 0.4),
|
0 0 30px rgba(255, 215, 0, 0.4),
|
||||||
@@ -2123,7 +1995,7 @@ onUnmounted(() => {
|
|||||||
/* 照片容器样式 */
|
/* 照片容器样式 */
|
||||||
.team-logo.photo-container {
|
.team-logo.photo-container {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
margin-top: -97px;
|
margin-top: -40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.individual-champion {
|
.individual-champion {
|
||||||
@@ -2131,7 +2003,7 @@ onUnmounted(() => {
|
|||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 100px;
|
||||||
gap: 30px;
|
gap: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2159,84 +2031,68 @@ onUnmounted(() => {
|
|||||||
.team-rankings-container .rank-table {
|
.team-rankings-container .rank-table {
|
||||||
position: relative;
|
position: relative;
|
||||||
min-height: auto;
|
min-height: auto;
|
||||||
/* 移动端强制显示所有行,覆盖JS动态设置的CSS变量 */
|
/* 如果配置了具体了默认显示行数,则设置高度和滚动,否则显示所有行 */
|
||||||
height: auto !important;
|
height: var(--team-default-height, auto) !important;
|
||||||
max-height: none !important;
|
overflow-y: var(--team-overflow-y, hidden);
|
||||||
overflow-y: visible !important;
|
overflow-x: var(--team-overflow-x, auto);
|
||||||
overflow-x: auto !important;
|
|
||||||
/* 强制覆盖CSS变量 */
|
|
||||||
--team-default-height: auto !important;
|
|
||||||
--team-overflow-y: visible !important;
|
|
||||||
--team-overflow-x: auto !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 移动端战区排名显示所有内容,不受滚动锁定影响 */
|
/* 当设置了滚动锁定时,禁止所有滚动 */
|
||||||
:root[style*="--team-scroll-lock: lock"] .team-rankings-container .rank-table {
|
:root[style*="--team-scroll-lock: lock"] .team-rankings-container .rank-table {
|
||||||
overflow-y: visible !important;
|
overflow-y: hidden !important;
|
||||||
overflow-x: auto !important;
|
overflow-x: hidden !important;
|
||||||
height: auto !important;
|
height: var(--team-default-height, auto) !important;
|
||||||
min-width: auto !important;
|
min-width: auto !important;
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 确保表格内容在移动端正确显示 */
|
/* 确保表格内容在锁定模式下正确显示 */
|
||||||
:root[style*="--team-scroll-lock: lock"] .team-rankings-container .rank-table .table-header,
|
:root[style*="--team-scroll-lock: lock"] .team-rankings-container .rank-table .table-header,
|
||||||
:root[style*="--team-scroll-lock: lock"] .team-rankings-container .rank-table .table-row {
|
:root[style*="--team-scroll-lock: lock"] .team-rankings-container .rank-table .table-row {
|
||||||
min-width: auto !important;
|
min-width: auto !important;
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
overflow-x: visible !important;
|
overflow-x: visible !important;
|
||||||
white-space: nowrap !important;
|
white-space: normal !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.individual-rankings-propagation {
|
.individual-rankings-propagation {
|
||||||
margin-top: -40px;
|
margin-top: -40px;
|
||||||
padding-bottom: 10px;
|
padding-bottom: 40px;
|
||||||
margin-bottom: 20px; /* 恢复为修改之前的间距 */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.individual-rankings {
|
.individual-rankings {
|
||||||
margin-top: 60px; /* 增加排名列表的顶部间距 */
|
margin-top: 60px; /* 增加排名列表的顶部间距 */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 移动端战区排名容器位置调整 */
|
|
||||||
.team-rankings {
|
|
||||||
margin-top: 0; /* 确保与英雄排名区域在统一水平线 */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 英雄排名容器设置 - 根据配置决定显示行数和滚动行为 */
|
/* 英雄排名容器设置 - 根据配置决定显示行数和滚动行为 */
|
||||||
.individual-rankings-container .rank-table {
|
.individual-rankings-container .rank-table {
|
||||||
position: relative;
|
position: relative;
|
||||||
min-height: auto;
|
min-height: auto;
|
||||||
/* 移动端强制显示所有行,覆盖JS动态设置的CSS变量 */
|
/* 如果配置了具体了默认显示行数,则设置高度和滚动,否则显示所有行 */
|
||||||
height: auto !important;
|
height: var(--individual-default-height, auto) !important;
|
||||||
max-height: none !important;
|
overflow-y: var(--individual-overflow-y, hidden);
|
||||||
overflow-y: visible !important;
|
overflow-x: var(--individual-overflow-x, auto);
|
||||||
overflow-x: auto !important;
|
|
||||||
/* 隐藏滚动条 */
|
/* 隐藏滚动条 */
|
||||||
-ms-overflow-style: none;
|
-ms-overflow-style: none;
|
||||||
scrollbar-width: none;
|
scrollbar-width: none;
|
||||||
/* 强制覆盖CSS变量 */
|
|
||||||
--individual-default-height: auto !important;
|
|
||||||
--individual-overflow-y: visible !important;
|
|
||||||
--individual-overflow-x: auto !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 移动端英雄排名显示所有内容,不受滚动锁定影响 */
|
/* 当设置了滚动锁定时,禁止所有滚动 */
|
||||||
:root[style*="--individual-scroll-lock: lock"] .individual-rankings-container .rank-table {
|
:root[style*="--individual-scroll-lock: lock"] .individual-rankings-container .rank-table {
|
||||||
overflow-y: visible !important;
|
overflow-y: hidden !important;
|
||||||
overflow-x: auto !important;
|
overflow-x: hidden !important;
|
||||||
height: auto !important;
|
height: var(--individual-default-height, auto) !important;
|
||||||
min-width: auto !important;
|
min-width: auto !important;
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 确保表格内容在移动端正确显示 */
|
/* 确保表格内容在锁定模式下正确显示 */
|
||||||
:root[style*="--individual-scroll-lock: lock"] .individual-rankings-container .rank-table .table-header,
|
:root[style*="--individual-scroll-lock: lock"] .individual-rankings-container .rank-table .table-header,
|
||||||
:root[style*="--individual-scroll-lock: lock"] .individual-rankings-container .rank-table .table-row {
|
:root[style*="--individual-scroll-lock: lock"] .individual-rankings-container .rank-table .table-row {
|
||||||
min-width: auto !important;
|
min-width: auto !important;
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
overflow-x: visible !important;
|
overflow-x: visible !important;
|
||||||
white-space: nowrap !important;
|
white-space: normal !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 移动端非前三名字体放大 */
|
/* 移动端非前三名字体放大 */
|
||||||
@@ -2624,17 +2480,28 @@ onUnmounted(() => {
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
top: 360px;
|
top: 360px;
|
||||||
left: 720px;
|
left: 720px;
|
||||||
z-index: 9999; /* 设置最高层级,确保在最上层显示 */
|
z-index: 100;
|
||||||
cursor: move;
|
cursor: move;
|
||||||
transition: transform 0.2s ease;
|
transition: transform 0.2s ease;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.team-rankings-container .rank-table {
|
/* ========== 新增的电脑端总业绩样式(放在最底部) ========== */
|
||||||
-ms-overflow-style: none !important;
|
/* 电脑端(769px以上)总业绩字体样式 - 不影响移动端 */
|
||||||
scrollbar-width: none !important;
|
@media (min-width: 769px) {
|
||||||
}
|
/* 总战绩大数字(核心修改项) */
|
||||||
.team-rankings-container .rank-table::-webkit-scrollbar {
|
.total-score-total-value {
|
||||||
display: none !important;
|
font-size: 10rem !important; /* 电脑端字体大小(默认10rem,可按需调整) */
|
||||||
width: 0 !important;
|
font-weight: 900 !important; /* 字体粗细(加粗) */
|
||||||
|
color: #ffd700 !important; /* 字体颜色(金色) */
|
||||||
|
text-shadow: 0 0 20px rgba(255, 215, 0, 0.8) !important; /* 发光效果 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 兜底:确保所有电脑端业绩数值样式统一 */
|
||||||
|
.score-value {
|
||||||
|
font-size: 10rem !important; /* 与总战绩数值保持一致 */
|
||||||
|
font-weight: 900 !important;
|
||||||
|
color:#fff2c4 !important;
|
||||||
|
text-shadow: 0 0 20px rgba(255, 215, 0, 0.8) !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user