Skip to content

Commit 02e7122

Browse files
SkyBird233MingcongBai
authored andcommitted
chore: move AOSCC event list to events page
1 parent 865e747 commit 02e7122

File tree

2 files changed

+56
-124
lines changed

2 files changed

+56
-124
lines changed

src/pages/aoscc/AosccIndex.vue

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,5 @@
11
<script setup lang="ts">
22
import AosccLinkButton from './components/AosccLinkButton.vue';
3-
import AppLink from '../../components/AppLink.vue';
4-
5-
const aosccList = [
6-
{
7-
year: 2025,
8-
title: '上海交通大学(2025 年 7 月 26 - 27 日)',
9-
hasLink: true
10-
},
11-
{ year: 2024, title: '吉林大学(2024 年 7 月 13 - 14 日)', hasLink: true },
12-
{
13-
year: 2023,
14-
title: '上海科技大学(2023 年 7 月 15 - 16 日)',
15-
hasLink: true
16-
},
17-
{
18-
year: 2022,
19-
title: '由于新冠肺炎疫情,于线上举办(2022 年 9 月 17 日)',
20-
hasLink: true
21-
},
22-
{
23-
year: 2021,
24-
title: '由于新冠肺炎疫情,于线上举办(2021 年 9 月 19 - 20 日)',
25-
hasLink: true
26-
},
27-
{
28-
year: 2020,
29-
title: '由于新冠肺炎疫情,于线上举办(2020 年 9 月 25 - 26 日)',
30-
hasLink: true
31-
},
32-
{
33-
year: 2019,
34-
title: '中国科学技术大学(2019 年 7 月 12 - 14 日)',
35-
hasLink: true
36-
},
37-
{
38-
year: 2018,
39-
title: '于线上举办(2018 年 7 月 21 日)',
40-
hasLink: true
41-
},
42-
{
43-
year: 2017,
44-
title: '广东工业大学(2017 年 7 月 14 - 16 日)',
45-
hasLink: true
46-
},
47-
{ year: 2016, title: '上海科技大学(2016 年 7 月)', hasLink: false },
48-
{ year: 2015, title: '深圳长虹科技大厦(2015 年 7 月)', hasLink: false }
49-
];
503
</script>
514

525
<template>
@@ -61,23 +14,6 @@ const aosccList = [
6114
</div>
6215
</div>
6316
<category-second title="AOSCC:社区年度聚会" id="aoscc" />
64-
<div class="p-6">
65-
<p>
66-
AOSCC
67-
是我社每年一度的线下聚会,公开邀请社区好友参与。活动期间,社区邀请社区贡献者、高校社团成员和行业代表等分享、交流工作,并组织抽奖、代号投票等趣味活动。近年来,AOSCC
68-
均由中国高校社团协办,每年吸引超过 100 来自与会者参与。以下是自 2015
69-
年的 AOSCC 活动地点、日期和会议信息记录:
70-
</p>
71-
<div class="px-16 pt-4 pb-4">
72-
<ul class="list-disc">
73-
<li v-for="{ year, title, hasLink } in aosccList" :key="year">
74-
<b>{{ year }} 年:</b>
75-
<AppLink v-if="hasLink" :to="`/aoscc/${year}`">{{ title }}</AppLink>
76-
<span v-else>{{ title }}</span>
77-
</li>
78-
</ul>
79-
</div>
80-
</div>
8117
</div>
8218
</template>
8319

src/pages/events/EventsIndex.vue

Lines changed: 56 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script setup>
22
import CategorySecond from '/src/components/CategorySecond.vue';
3+
import AppLink from '../../components/AppLink.vue';
34
45
const navigationList = [
56
{
@@ -19,6 +20,52 @@ const navigationList = [
1920
hash: '#others'
2021
}
2122
];
23+
24+
const aosccList = [
25+
{
26+
year: 2025,
27+
title: '上海交通大学(2025 年 7 月 26 - 27 日)',
28+
hasLink: true
29+
},
30+
{ year: 2024, title: '吉林大学(2024 年 7 月 13 - 14 日)', hasLink: true },
31+
{
32+
year: 2023,
33+
title: '上海科技大学(2023 年 7 月 15 - 16 日)',
34+
hasLink: true
35+
},
36+
{
37+
year: 2022,
38+
title: '由于新冠肺炎疫情,于线上举办(2022 年 9 月 17 日)',
39+
hasLink: true
40+
},
41+
{
42+
year: 2021,
43+
title: '由于新冠肺炎疫情,于线上举办(2021 年 9 月 19 - 20 日)',
44+
hasLink: true
45+
},
46+
{
47+
year: 2020,
48+
title: '由于新冠肺炎疫情,于线上举办(2020 年 9 月 25 - 26 日)',
49+
hasLink: true
50+
},
51+
{
52+
year: 2019,
53+
title: '中国科学技术大学(2019 年 7 月 12 - 14 日)',
54+
hasLink: true
55+
},
56+
{
57+
year: 2018,
58+
title: '于线上举办(2018 年 7 月 21 日)',
59+
hasLink: true
60+
},
61+
{
62+
year: 2017,
63+
title: '广东工业大学(2017 年 7 月 14 - 16 日)',
64+
hasLink: true
65+
},
66+
{ year: 2016, title: '上海科技大学(2016 年 7 月)', hasLink: false },
67+
{ year: 2015, title: '深圳长虹科技大厦(2015 年 7 月)', hasLink: false }
68+
];
2269
</script>
2370

2471
<template>
@@ -50,65 +97,11 @@ const navigationList = [
5097
</p>
5198
<div class="px-16 pt-4 pb-4">
5299
<ul class="list-disc">
53-
<li
54-
><b>2024 年:</b
55-
><a
56-
class="text-[#0056cc] no-underline"
57-
href="https://wiki.aosc.io/zh/community/aoscc/2024/"
58-
>吉林大学(2024 年 7 月 13 - 14 日)</a
59-
></li
60-
>
61-
<li
62-
><b>2023 年:</b
63-
><a
64-
class="text-[#0056cc] no-underline"
65-
href="https://wiki.aosc.io/zh/community/aoscc/2023/"
66-
>上海科技大学(2023 年 7 月 15 - 16 日)</a
67-
></li
68-
>
69-
<li
70-
><b>2022 年:</b
71-
><a
72-
class="text-[#0056cc] no-underline"
73-
href="https://wiki.aosc.io/zh/community/aoscc/2022/"
74-
>由于新冠肺炎疫情,于线上举办(2022 年 9 月 17 日)</a
75-
></li
76-
>
77-
<li
78-
><b>2021 年:</b
79-
><a
80-
class="text-[#0056cc] no-underline"
81-
href="https://wiki.aosc.io/zh/community/aoscc/2021/"
82-
>由于新冠肺炎疫情,于线上举办(2021 年 9 月 19 - 20 日)</a
83-
></li
84-
>
85-
<li
86-
><b>2020 年:</b
87-
><a
88-
class="text-[#0056cc] no-underline"
89-
href="https://wiki.aosc.io/zh/community/aoscc/2020/"
90-
>由于新冠肺炎疫情,于线上举办(2020 年 9 月 25 - 26 日)</a
91-
></li
92-
>
93-
<li
94-
><b>2019 年:</b
95-
><a
96-
class="text-[#0056cc] no-underline"
97-
href="https://wiki.aosc.io/zh/community/aoscc/2019/"
98-
>中国科学技术大学(2019 年 7 月 12 - 14 日)</a
99-
></li
100-
>
101-
<li><b>2018 年:</b>聚会取消</li>
102-
<li
103-
><b>2017 年:</b
104-
><a
105-
class="text-[#0056cc] no-underline"
106-
href="https://wiki.aosc.io/zh/community/aoscc/2017/"
107-
>广东工业大学(2017 年 7 月 14 - 16 日)</a
108-
></li
109-
>
110-
<li><b>2016 年:</b>上海科技大学(2016 年 7 月)</li>
111-
<li><b>2015 年:</b>深圳长虹科技大厦(2015 年 7 月)</li>
100+
<li v-for="{ year, title, hasLink } in aosccList" :key="year">
101+
<b>{{ year }} 年:</b>
102+
<AppLink v-if="hasLink" :to="`/aoscc/${year}`">{{ title }}</AppLink>
103+
<span v-else>{{ title }}</span>
104+
</li>
112105
</ul>
113106
</div>
114107
</div>
@@ -184,7 +177,10 @@ const navigationList = [
184177
<p> 如下是近期规划内的“安同校园行”目的地: </p>
185178
<div class="px-16 pt-4 pb-4">
186179
<ul class="list-disc">
187-
<li><b>2025 年 4 月 19 日:</b>北京站(北京大学、北京航空航天大学与中国人民大学合办)</li>
180+
<li
181+
><b>2025 年 4 月 19 日:</b
182+
>北京站(北京大学、北京航空航天大学与中国人民大学合办)</li
183+
>
188184
</ul>
189185
</div>
190186
</div>

0 commit comments

Comments
 (0)