Skip to content

Commit 742b952

Browse files
SkyBird233HouLiXieBuRou
authored andcommitted
feat: update AOSCC list in events page
1 parent f4d086f commit 742b952

File tree

2 files changed

+63
-42
lines changed

2 files changed

+63
-42
lines changed

locales/zh-cn/json/page/events.json

Lines changed: 58 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -13,32 +13,6 @@
1313
"title3": "安同校园行",
1414
"title4": "春节烙饼会",
1515
"title5": "其他活动",
16-
"ul1": {
17-
"b": [
18-
"2024 年:",
19-
"2023 年:",
20-
"2022 年:",
21-
"2021 年:",
22-
"2020 年:",
23-
"2019 年:",
24-
"2018 年:",
25-
"2017 年:",
26-
"2016 年:",
27-
"2015 年:"
28-
],
29-
"link": [
30-
["吉林大学(2024 年 7 月 13 - 14 日)", 2024],
31-
["上海科技大学(2023 年 7 月 15 - 16 日)", 2023],
32-
["由于新冠肺炎疫情,于线上举办(2022 年 9 月 17 日)", 2022],
33-
["由于新冠肺炎疫情,于线上举办(2021 年 9 月 19 - 20 日)", 2021],
34-
["由于新冠肺炎疫情,于线上举办(2020 年 9 月 25 - 26 日)", 2020],
35-
["中国科学技术大学(2019 年 7 月 12 - 14 日)", 2019],
36-
"聚会取消",
37-
["广东工业大学(2017 年 7 月 14 - 16 日)", 2017],
38-
"上海科技大学(2016 年 7 月)",
39-
"深圳长虹科技大厦(2015 年 7 月)"
40-
]
41-
},
4216
"ul2": {
4317
"li": [
4418
{
@@ -120,6 +94,63 @@
12094
}
12195
}
12296
]
123-
}
97+
},
98+
"aosccList": [
99+
{
100+
"year": 2025,
101+
"title": "上海交通大学(2025 年 7 月 26 - 27 日)",
102+
"hasLink": true
103+
},
104+
{
105+
"year": 2024,
106+
"title": "吉林大学(2024 年 7 月 13 - 14 日)",
107+
"hasLink": true
108+
},
109+
{
110+
"year": 2023,
111+
"title": "上海科技大学(2023 年 7 月 15 - 16 日)",
112+
"hasLink": true
113+
},
114+
{
115+
"year": 2022,
116+
"title": "由于新冠肺炎疫情,于线上举办(2022 年 9 月 17 日)",
117+
"hasLink": true
118+
},
119+
{
120+
"year": 2021,
121+
"title": "由于新冠肺炎疫情,于线上举办(2021 年 9 月 19 - 20 日)",
122+
"hasLink": true
123+
},
124+
{
125+
"year": 2020,
126+
"title": "由于新冠肺炎疫情,于线上举办(2020 年 9 月 25 - 26 日)",
127+
"hasLink": true
128+
},
129+
{
130+
"year": 2019,
131+
"title": "中国科学技术大学(2019 年 7 月 12 - 14 日)",
132+
"hasLink": true
133+
},
134+
{
135+
"year": 2018,
136+
"title": "于线上举办(2018 年 7 月 21 日)",
137+
"hasLink": true
138+
},
139+
{
140+
"year": 2017,
141+
"title": "广东工业大学(2017 年 7 月 14 - 16 日)",
142+
"hasLink": true
143+
},
144+
{
145+
"year": 2016,
146+
"title": "上海科技大学(2016 年 7 月)",
147+
"hasLink": false
148+
},
149+
{
150+
"year": 2015,
151+
"title": "深圳长虹科技大厦(2015 年 7 月)",
152+
"hasLink": false
153+
}
154+
]
124155
}
125156
}

pages/events/index.vue

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ const navigationList = [
3636
useTIndex(useHIndex(evelink, 3), 5)
3737
];
3838
39-
const ul1TextLinks = textValue.ul1.link;
40-
4139
const lis2 = textValue.ul2.li.map((obj) => {
4240
obj.link.url = linkValue.bilibili.url + obj.link.url;
4341
return obj;
@@ -72,19 +70,11 @@ const lis5 = textValue.ul5.li.map((obj, index) => {
7270
<div class="px-16 pt-4 pb-4">
7371
<ul class="list-disc">
7472
<li
75-
v-for="(item, index) in textValue.ul1.b"
76-
:key="`events-index-1-li-${index}`">
77-
<b>{{ item }}</b>
78-
<span
79-
v-if="
80-
index < textValue.ul1.b.length - 2 &&
81-
index !== textValue.ul1.b.length - 4
82-
">
83-
<AppLink :to="linkValue.aosccWiki.url + ul1TextLinks[index][1]">
84-
{{ ul1TextLinks[index][0] }}
85-
</AppLink>
86-
</span>
87-
<span v-else>{{ ul1TextLinks[index] }}</span>
73+
v-for="{ year, title, hasLink } in textValue.aosccList"
74+
:key="year">
75+
<b>{{ year }} 年:</b>
76+
<AppLink v-if="hasLink" :to="`/aoscc/${year}`">{{ title }}</AppLink>
77+
<span v-else>{{ title }}</span>
8878
</li>
8979
</ul>
9080
</div>

0 commit comments

Comments
 (0)