diff --git a/src/Layout/footer/index.vue b/src/Layout/footer/index.vue
index d0bed00..e497173 100644
--- a/src/Layout/footer/index.vue
+++ b/src/Layout/footer/index.vue
@@ -63,7 +63,7 @@ const toNewsDetail = (id: number) => {
}
.item {
text-align: center;
- font-size: 18px;
+ font-size: 14px;
cursor: pointer;
transition: all 0.3s;
}
@@ -78,10 +78,14 @@ const toNewsDetail = (id: number) => {
.copyright {
margin-top: 30px;
+ font-size: 10px;
}
.report {
margin-top: 0.1042rem;
+ font-size: 10px;
+ text-align: center;
+
}
&.dark-layout {
diff --git a/src/main.ts b/src/main.ts
index b219fd7..a81a446 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -59,8 +59,8 @@ const pcHost = new URL(import.meta.env.VITE_APP_PC_URL).host
if (isMobile && currentHost !== mobileHost) {
console.log('手机端,跳转到移动站')
- location.href = import.meta.env.VITE_APP_MOBILE_URL
+ // location.href = import.meta.env.VITE_APP_MOBILE_URL
} else if (!isMobile && currentHost !== pcHost) {
console.log('电脑端,跳转到 PC 站')
- location.href = import.meta.env.VITE_APP_PC_URL
+ // location.href = import.meta.env.VITE_APP_PC_URL
}
diff --git a/src/views/raceInfo/index.vue b/src/views/raceInfo/index.vue
index 3b61e22..25381d3 100644
--- a/src/views/raceInfo/index.vue
+++ b/src/views/raceInfo/index.vue
@@ -6,7 +6,7 @@
-
+
负责人:
{{ raceInfo.createBy }}
-
+
负责部门:
{{ raceInfo.comporderc }}
@@ -94,10 +94,16 @@
-
-
+
年度比赛列表:
@@ -120,9 +126,11 @@
class="item"
v-for="item in reacProjectList"
:key="item.id"
- @click="goToCompetition(item.id, item.endtime,item.isopen)"
+ @click="goToCompetition(item.id, item.endtime, item.isopen)"
:style="{
- 'background-color': isTimePassed(item.endtime) ? 'rgb(232 232 232)' : '#fff',
+ 'background-color': isTimePassed(item.endtime)
+ ? 'rgb(232 232 232)'
+ : '#fff',
}"
>
@@ -135,7 +143,14 @@
{{ item.name }}
@@ -155,8 +170,14 @@
-
-
+
+
@@ -187,17 +208,17 @@ console.log(Route, 'Route')
const loading = ref(false)
const reacProjectList = ref
([])
- let page = ref({
- id: Route.query.id,
- column: 'createTime',
- order: 'desc',
- pageNo: 1,
- pageSize: 8,
- total: 0
- })
+let page = ref({
+ id: Route.query.id,
+ column: 'createTime',
+ order: 'desc',
+ pageNo: 1,
+ pageSize: 8,
+ total: 0,
+})
const getRaceProjectListEvent = async () => {
loading.value = true
- const res: any = await getYearRaceList({...page.value,individual:true})
+ const res: any = await getYearRaceList({ ...page.value, individual: true })
console.log(res)
reacProjectList.value = res.result.records
page.value.total = res.result.total
@@ -206,7 +227,7 @@ const getRaceProjectListEvent = async () => {
loading.value = false
}
getRaceProjectListEvent()
-const pageChange = (e:any) => {
+const pageChange = (e: any) => {
page.value.pageNo = e
getRaceProjectListEvent()
}
@@ -224,11 +245,11 @@ const getraceInfoEvent = async () => {
getraceInfoEvent()
// 前往年度比赛页面
-const goToCompetition = async (id: any, endTime: string,isOpen:string) => {
- if(isOpen == '0') return ElMessage.error('比赛未开启')
- if (isTimePassed(endTime)) {
- return ElMessage.error('比赛已结束')
- }
+const goToCompetition = async (id: any, endTime: string, isOpen: string) => {
+ // if(isOpen == '0') return ElMessage.error('比赛未开启')
+ // if (isTimePassed(endTime)) {
+ // return ElMessage.error('比赛已结束')
+ // }
const projectId: any = await getProjectId({ anncmopid: id })
console.log(projectId.result)
@@ -365,7 +386,7 @@ const scrollToPosition = () => {
margin-top: 30px;
min-height: 750px;
.left-info {
- width: 100%;
+ width: 100%;
}
.right-history {
// width: 300px;
@@ -473,18 +494,18 @@ const scrollToPosition = () => {
display: flex;
margin: 10px 0;
.label {
- font-size: 16px;
+ font-size: 14px;
color: var(--text-color);
opacity: 0.45;
width: 100px;
}
.text {
- font-size: 16px;
+ font-size: 14px;
+
font-weight: 600;
color: var(--text-color);
}
}
-
}
}
}