/
event.html
51 lines (48 loc) · 1.6 KB
/
event.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="ie=edge, chrome=1">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="saikai.css">
<link rel="stylesheet" href="/css/navigation.css">
<title>事件</title>
<script src="https://unpkg.com/vue@3.2.36/dist/vue.global.prod.js"></script>
<script src="https://unpkg.com/axios@0.27.2/dist/axios.min.js"></script>
</head>
<body>
<div class="mobile" id="wiki" v-cloak>
<template v-for="(i,n) in menu['活动事件']">
<a :href="i.href" class="link" v-if="n < menu['活动事件'].length-1">
<div v-text="i.name"></div>
</a>
<a :href="i.href" class="link" style="border: none;" v-else>
<div v-text="i.name"></div>
</a>
</template>
</div>
</body>
<script>
const App = {
data() {
return {
year: new Date().getFullYear(),
menu: "",
menu_mobile: "",
link: window.location.hash.slice(1)
}
},
created() {
axios.get('menu.json')
.then((response) => {
this.menu = response.data[0]
this.menu_mobile = response.data[1]
})
},
methods: {}
}
const app = Vue.createApp(App)
const vm = app.mount("#wiki")
</script>
</html>