-
Notifications
You must be signed in to change notification settings - Fork 47
/
type.html
83 lines (78 loc) · 2.25 KB
/
type.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!--
* @Author: mokevip
* @Date: 2020-09-14 09:24:16
* @LastEditors: mokevip
* @LastEditTime: 2020-09-14 11:00:40
* @Description:
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Expires" content="0">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-control" content="no-cache,must-revalidate">
<meta http-equiv="Cache" content="no-cache">
<title>答题类型选择</title>
<link rel="stylesheet" href="./css/iview.css">
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?b3a7eb27703def9ba98376aca09290db";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<style>
.typeList {
width: 95vw;
margin: 2vw auto;
}
.typeList>div {
margin-top: 2vw;
}
</style>
</head>
<body>
<div id="el">
<p style="margin-left:3vw;margin-top: 3vw;font-size: 0.9rem;">请选择答题模式:</p>
<div class="typeList">
<div v-for="i in typeList" @click='goNext(i.id)'>
<Card class="timu">
{{i.name}}
</Card>
</div>
</div>
</div>
<script src="./js/vue.min.js"></script>
<script src="./js/iview.min.js"></script>
<script>
const vue = new Vue({
el: "#el",
data: {
typeList: [{
id: 'random',
name: "乱序答题"
}, {
id: 'order',
name: "顺序答题"
}, {
id: 'recite',
name: "背题模式"
}, {
id: 'wrong',
name: "错题模式"
}]
},
methods: {
goNext(id) {
sessionStorage.type = id;
window.location.href = "./timu.html"
}
}
})
</script>
</body>
</html>