赛事
This commit is contained in:
@@ -95,6 +95,7 @@ html, body {
|
||||
.table-container {
|
||||
margin: 0 -20px;
|
||||
border-radius: 0;
|
||||
overflow-x: auto;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,24 +1,33 @@
|
||||
<script setup lang="ts">
|
||||
import { computed } from 'vue'
|
||||
import { computed, ref } from 'vue'
|
||||
|
||||
const isLoggedIn = computed(() => {
|
||||
return !!localStorage.getItem('access_token')
|
||||
})
|
||||
|
||||
const showMobileMenu = ref(false)
|
||||
|
||||
const toggleMobileMenu = () => {
|
||||
showMobileMenu.value = !showMobileMenu.value
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="app">
|
||||
<nav class="navbar">
|
||||
<div class="nav-container">
|
||||
<div class="nav-left">
|
||||
<div class="nav-brand">红色警戒3数据分析中心</div>
|
||||
<div class="nav-brand">红色警戒3数据分析中心</div>
|
||||
<button class="mobile-menu-toggle" @click="toggleMobileMenu">
|
||||
<i class="fas fa-bars"></i>
|
||||
</button>
|
||||
<div class="nav-left" :class="{ active: showMobileMenu }">
|
||||
<router-link to="/maps" class="nav-link">最近上传地图</router-link>
|
||||
<router-link to="/weekly" class="nav-link">热门下载地图</router-link>
|
||||
<router-link v-if="isLoggedIn" to="/weapon-match" class="nav-link">Weapon 匹配</router-link>
|
||||
<router-link v-if="isLoggedIn" to="/competition" class="nav-link">赛程信息</router-link>
|
||||
<router-link v-if="isLoggedIn" to="/demands" class="nav-link">办事大厅</router-link>
|
||||
</div>
|
||||
<div class="nav-right">
|
||||
<div class="nav-right" :class="{ active: showMobileMenu }">
|
||||
<router-link :to="isLoggedIn ? '/backend/dashboard' : '/backend/login'" class="nav-link login-btn">
|
||||
<i class="fas fa-user"></i>
|
||||
{{ isLoggedIn ? '管理后台' : '登录' }}
|
||||
@@ -94,39 +103,59 @@ const isLoggedIn = computed(() => {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 0 20px;
|
||||
height: 60px;
|
||||
height: auto;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.nav-brand {
|
||||
color: white;
|
||||
font-size: 1.2rem;
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
padding: 15px 0;
|
||||
}
|
||||
|
||||
.nav-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 30px;
|
||||
gap: 15px;
|
||||
width: 100%;
|
||||
flex-direction: column;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.nav-left.active {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.nav-right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
display: none;
|
||||
padding-bottom: 15px;
|
||||
}
|
||||
|
||||
.nav-brand {
|
||||
color: white;
|
||||
font-size: 1.5rem;
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
.nav-right.active {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.nav-link {
|
||||
color: rgba(255, 255, 255, 0.9);
|
||||
text-decoration: none;
|
||||
padding: 8px 16px;
|
||||
padding: 10px 16px;
|
||||
border-radius: 6px;
|
||||
transition: all 0.3s ease;
|
||||
font-weight: 500;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.nav-link:hover {
|
||||
@@ -134,11 +163,7 @@ const isLoggedIn = computed(() => {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.router-link-active {
|
||||
background-color: rgba(255, 255, 255, 0.2);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.router-link-active,
|
||||
.router-link-exact-active {
|
||||
background-color: rgba(255, 255, 255, 0.2);
|
||||
color: white;
|
||||
@@ -150,9 +175,11 @@ const isLoggedIn = computed(() => {
|
||||
gap: 6px;
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||
padding: 8px 16px;
|
||||
padding: 10px 20px;
|
||||
border-radius: 20px;
|
||||
transition: all 0.3s ease;
|
||||
width: auto;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.login-btn:hover {
|
||||
@@ -165,80 +192,24 @@ const isLoggedIn = computed(() => {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
/* 响应式设计 */
|
||||
@media (max-width: 768px) {
|
||||
.nav-container {
|
||||
padding: 0 15px;
|
||||
}
|
||||
|
||||
.nav-left {
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.nav-brand {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.nav-link {
|
||||
padding: 6px 12px;
|
||||
}
|
||||
|
||||
.login-btn {
|
||||
padding: 6px 12px;
|
||||
}
|
||||
|
||||
.main-content {
|
||||
padding: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
.footer-content {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
||||
gap: 2rem;
|
||||
width: 100%;
|
||||
padding: 0 2rem;
|
||||
}
|
||||
|
||||
.footer-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.footer-section h3 {
|
||||
font-size: 1.25rem;
|
||||
font-weight: 600;
|
||||
/* 移动端菜单按钮 */
|
||||
.mobile-menu-toggle {
|
||||
display: block;
|
||||
font-size: 1.5rem;
|
||||
color: white;
|
||||
margin-bottom: 1rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.footer-section h3::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: -0.5rem;
|
||||
left: 0;
|
||||
width: 2rem;
|
||||
height: 2px;
|
||||
background: rgba(255, 255, 255, 0.3);
|
||||
}
|
||||
|
||||
.footer-section p {
|
||||
color: rgba(255, 255, 255, 0.9);
|
||||
font-size: 0.95rem;
|
||||
line-height: 1.6;
|
||||
margin: 0;
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
/* Footer 样式 */
|
||||
.footer-bottom {
|
||||
width: 100%;
|
||||
max-width: 1200px;
|
||||
text-align: center;
|
||||
margin-top: 2rem;
|
||||
padding-top: 1.5rem;
|
||||
margin-top: 1rem;
|
||||
padding-top: 1rem;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
@@ -275,37 +246,47 @@ const isLoggedIn = computed(() => {
|
||||
color: white;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.footer {
|
||||
padding: 1.5rem 1rem;
|
||||
}
|
||||
|
||||
.footer-content {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.footer-section h3 {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.footer-bottom {
|
||||
margin-top: 1.5rem;
|
||||
padding-top: 1rem;
|
||||
}
|
||||
|
||||
.beian {
|
||||
margin-top: 8px !important;
|
||||
gap: 6px;
|
||||
/* ----------- 桌面端样式 ----------- */
|
||||
@media (min-width: 769px) {
|
||||
.nav-container {
|
||||
height: 60px;
|
||||
flex-wrap: nowrap;
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
.police-icon {
|
||||
height: 18px;
|
||||
width: 16px;
|
||||
.nav-brand {
|
||||
font-size: 1.5rem;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.beian a {
|
||||
font-size: 12px;
|
||||
.nav-left {
|
||||
flex-direction: row;
|
||||
width: auto;
|
||||
display: flex;
|
||||
margin-left: 30px;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.nav-right {
|
||||
width: auto;
|
||||
display: flex;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.nav-link {
|
||||
width: auto;
|
||||
padding: 8px 16px;
|
||||
font-size: 0.95rem;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.mobile-menu-toggle {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.login-btn {
|
||||
padding: 8px 16px;
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -409,7 +409,6 @@ const triggerFileInput = () => {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.add-contestant {
|
||||
max-width: 800px;
|
||||
@@ -547,25 +546,6 @@ const triggerFileInput = () => {
|
||||
border-color: #ccc;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.add-contestant {
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
.contest-form {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.form-actions {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.submit-btn,
|
||||
.cancel-btn {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.excel-dialog-overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
@@ -625,11 +605,14 @@ const triggerFileInput = () => {
|
||||
margin: 20px 0;
|
||||
max-height: 300px;
|
||||
overflow-y: auto;
|
||||
overflow-x: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
.preview-table table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
min-width: 600px;
|
||||
}
|
||||
|
||||
.preview-table th,
|
||||
@@ -675,4 +658,98 @@ const triggerFileInput = () => {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
/* 移动端适配 */
|
||||
@media (max-width: 768px) {
|
||||
.add-contestant {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 12px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.header-actions {
|
||||
width: 100%;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.btn-excel {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.contest-form {
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
.form-group {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.form-group input,
|
||||
.form-group select {
|
||||
padding: 12px 10px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
input[type="date"],
|
||||
select {
|
||||
min-height: 44px;
|
||||
}
|
||||
|
||||
.form-actions {
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.submit-btn,
|
||||
.cancel-btn {
|
||||
width: 100%;
|
||||
padding: 14px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.excel-dialog {
|
||||
width: 95%;
|
||||
padding: 15px;
|
||||
max-height: 85vh;
|
||||
}
|
||||
|
||||
.excel-upload-area {
|
||||
padding: 30px 15px;
|
||||
}
|
||||
|
||||
.upload-content i {
|
||||
font-size: 36px;
|
||||
}
|
||||
|
||||
.preview-table {
|
||||
max-height: 200px;
|
||||
}
|
||||
|
||||
.preview-table table {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.preview-table th,
|
||||
.preview-table td {
|
||||
padding: 6px 8px;
|
||||
max-width: 120px;
|
||||
}
|
||||
|
||||
.dialog-actions {
|
||||
flex-direction: column-reverse;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.confirm-btn,
|
||||
.cancel-btn {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -213,91 +213,84 @@ refreshCompetitions()
|
||||
|
||||
<style scoped>
|
||||
.competition-page {
|
||||
padding: 20px;
|
||||
padding: 16px;
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
margin-bottom: 30px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.page-header h1 {
|
||||
font-size: 24px;
|
||||
font-size: 22px;
|
||||
color: #1a237e;
|
||||
margin: 0 0 8px 0;
|
||||
margin: 0 0 6px 0;
|
||||
}
|
||||
|
||||
.header-subtitle {
|
||||
color: #666;
|
||||
font-size: 14px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.action-bar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 20px;
|
||||
margin-bottom: 16px;
|
||||
flex-wrap: wrap;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.left-actions {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.left-actions,
|
||||
.right-actions {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.search-box {
|
||||
position: relative;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.search-box input {
|
||||
padding: 8px 12px 8px 32px;
|
||||
padding: 6px 10px 6px 28px;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 6px;
|
||||
font-size: 14px;
|
||||
width: 200px;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.search-box input:focus {
|
||||
border-color: #1a237e;
|
||||
outline: none;
|
||||
box-shadow: 0 0 0 2px rgba(26, 35, 126, 0.1);
|
||||
border-radius: 4px;
|
||||
font-size: 13px;
|
||||
width: 100%;
|
||||
max-width: 220px;
|
||||
}
|
||||
|
||||
.search-icon {
|
||||
position: absolute;
|
||||
left: 10px;
|
||||
left: 8px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
color: #999;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.filter-select {
|
||||
padding: 8px 12px;
|
||||
padding: 6px 10px;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 6px;
|
||||
font-size: 14px;
|
||||
border-radius: 4px;
|
||||
font-size: 13px;
|
||||
background: white;
|
||||
min-width: 120px;
|
||||
min-width: 100px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.btn-common {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 8px 16px;
|
||||
font-size: 14px;
|
||||
gap: 5px;
|
||||
padding: 6px 12px;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
border-radius: 6px;
|
||||
border-radius: 4px;
|
||||
border: 1px solid #b6d2ff;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
@@ -326,9 +319,9 @@ refreshCompetitions()
|
||||
|
||||
.table-container {
|
||||
background: white;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
|
||||
overflow: hidden;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
|
||||
overflow-x: auto;
|
||||
margin-bottom: 20px;
|
||||
position: relative;
|
||||
min-height: 200px;
|
||||
@@ -336,22 +329,22 @@ refreshCompetitions()
|
||||
|
||||
.competition-table {
|
||||
width: 100%;
|
||||
min-width: 800px;
|
||||
border-collapse: collapse;
|
||||
min-width: 1000px;
|
||||
}
|
||||
|
||||
.competition-table th,
|
||||
.competition-table td {
|
||||
padding: 16px;
|
||||
padding: 12px;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.competition-table th {
|
||||
background-color: #f8f9fa;
|
||||
font-weight: 600;
|
||||
color: #1a237e;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.competition-row {
|
||||
@@ -362,7 +355,6 @@ refreshCompetitions()
|
||||
.competition-row:hover {
|
||||
background-color: #f0f7ff;
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
.competition-name {
|
||||
@@ -372,111 +364,70 @@ refreshCompetitions()
|
||||
|
||||
.status-tag {
|
||||
display: inline-block;
|
||||
padding: 4px 8px;
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
padding: 2px 6px;
|
||||
border-radius: 3px;
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.status-tag.prepare {
|
||||
background-color: #e6a23c;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.status-tag.starting {
|
||||
background-color: #67c23a;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.status-tag.finish {
|
||||
background-color: #909399;
|
||||
color: #fff;
|
||||
}
|
||||
.status-tag.prepare { background-color: #e6a23c; color: #fff; }
|
||||
.status-tag.starting { background-color: #67c23a; color: #fff; }
|
||||
.status-tag.finish { background-color: #909399; color: #fff; }
|
||||
|
||||
.action-cell {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.action-btn {
|
||||
padding: 6px 12px;
|
||||
padding: 5px 10px;
|
||||
border-radius: 4px;
|
||||
border: none;
|
||||
background: linear-gradient(90deg, #71eaeb 0%, #416bdf 100%);
|
||||
color: white;
|
||||
font-size: 13px;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.action-btn:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 2px 8px rgba(65, 107, 223, 0.2);
|
||||
}
|
||||
|
||||
.action-btn:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.empty-state {
|
||||
padding: 40px;
|
||||
padding: 30px;
|
||||
text-align: center;
|
||||
font-size: 14px;
|
||||
color: #909399;
|
||||
}
|
||||
|
||||
.empty-state i {
|
||||
font-size: 48px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.error-message {
|
||||
background-color: #fef0f0;
|
||||
color: #f56c6c;
|
||||
padding: 12px 16px;
|
||||
border-radius: 6px;
|
||||
margin-bottom: 16px;
|
||||
padding: 10px 14px;
|
||||
border-radius: 4px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.error-message i {
|
||||
font-size: 16px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.retry-btn {
|
||||
margin-left: auto;
|
||||
padding: 4px 12px;
|
||||
padding: 4px 10px;
|
||||
font-size: 12px;
|
||||
background: #f56c6c;
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
border-radius: 3px;
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.retry-btn:hover {
|
||||
background: #f78989;
|
||||
}
|
||||
|
||||
.loading-overlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
top: 0; left: 0; right: 0; bottom: 0;
|
||||
background: rgba(255, 255, 255, 0.8);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 12px;
|
||||
gap: 10px;
|
||||
color: #409EFF;
|
||||
}
|
||||
|
||||
.loading-overlay i {
|
||||
font-size: 24px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.table-container.loading {
|
||||
@@ -489,35 +440,41 @@ refreshCompetitions()
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.btn-common:disabled:hover {
|
||||
transform: none;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.competition-page {
|
||||
padding: 15px;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.action-bar {
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.right-actions {
|
||||
.left-actions, .right-actions {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.search-box input {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.filter-select {
|
||||
gap: 8px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.table-container {
|
||||
margin: 0 -15px;
|
||||
margin: 0 -12px;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.competition-table th, .competition-table td {
|
||||
padding: 10px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.search-box input, .filter-select {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.status-tag {
|
||||
font-size: 10px;
|
||||
padding: 2px 5px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -16,12 +16,23 @@
|
||||
</div>
|
||||
|
||||
<div class="map-info">
|
||||
<div class="info-item">
|
||||
<h3>基本信息</h3>
|
||||
<p>下载次数: {{ map.download_count }}</p>
|
||||
<p>收藏次数: {{ map.favourite_count }}</p>
|
||||
<p>玩家数量: {{ map.player_count }}</p>
|
||||
<p>创建时间: {{ formatDate(map.create_time) }}</p>
|
||||
<div class="info-grid">
|
||||
<div class="info-item">
|
||||
<span class="info-label">下载次数</span>
|
||||
<span class="info-value">{{ map.download_count }}</span>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<span class="info-label">收藏次数</span>
|
||||
<span class="info-value">{{ map.favourite_count }}</span>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<span class="info-label">玩家数量</span>
|
||||
<span class="info-value">{{ map.player_count }}</span>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<span class="info-label">创建时间</span>
|
||||
<span class="info-value">{{ formatDate(map.create_time) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tags">
|
||||
@@ -71,19 +82,19 @@ onMounted(() => {
|
||||
|
||||
<style scoped>
|
||||
.map-detail {
|
||||
padding: 20px;
|
||||
padding: 15px;
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.back-button {
|
||||
margin-bottom: 20px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.back-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 8px 16px;
|
||||
padding: 8px 12px;
|
||||
background: #f8f9fa;
|
||||
border: 1px solid #e0e0e0;
|
||||
border-radius: 6px;
|
||||
@@ -104,23 +115,39 @@ onMounted(() => {
|
||||
}
|
||||
|
||||
.map-header {
|
||||
margin-bottom: 30px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.map-header h1 {
|
||||
margin: 0;
|
||||
color: #333;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.author {
|
||||
color: #666;
|
||||
margin-top: 5px;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.map-content {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 30px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.map-content {
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.map-image {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.map-info {
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.map-image img {
|
||||
@@ -130,17 +157,31 @@ onMounted(() => {
|
||||
}
|
||||
|
||||
.map-info {
|
||||
padding: 20px;
|
||||
padding: 15px;
|
||||
background: #f8f9fa;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.info-item {
|
||||
.info-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 12px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.info-item h3 {
|
||||
margin-bottom: 10px;
|
||||
.info-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.info-label {
|
||||
font-size: 0.8rem;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.info-value {
|
||||
font-size: 1rem;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
@@ -148,31 +189,54 @@ onMounted(() => {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.tags h3 {
|
||||
margin-bottom: 10px;
|
||||
font-size: 1.1rem;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.tag-list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.tag {
|
||||
background: #e9ecef;
|
||||
padding: 5px 10px;
|
||||
border-radius: 15px;
|
||||
font-size: 14px;
|
||||
padding: 4px 8px;
|
||||
border-radius: 12px;
|
||||
font-size: 0.8rem;
|
||||
color: #495057;
|
||||
}
|
||||
|
||||
.download-btn {
|
||||
display: inline-block;
|
||||
padding: 10px 20px;
|
||||
width: 100%;
|
||||
padding: 12px;
|
||||
background: #007bff;
|
||||
color: white;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
border-radius: 5px;
|
||||
transition: background 0.2s;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.download-btn:hover {
|
||||
background: #0056b3;
|
||||
}
|
||||
</style>
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.info-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.map-header h1 {
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
|
||||
.author {
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user