-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
58 lines (47 loc) · 1.51 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<meta charset="utf-8" />
<script type="text/javascript" src="http://kehu.beta.fang.com/Resourse/js/axios.min.js?v=3.0.0"></script>
<!--vue-->
<script type="text/javascript" src="http://kehu.beta.fang.com/Resourse/js/vue.min.js?v=3.0.0"></script>
<!--vue自定定组件-->
<script type="text/javascript" src="component/vue.components.js"></script>
<!--样式-->
<link rel="stylesheet" href="http://kehu.beta.fang.com/Resourse/css/work_plat.css">
<style>
</style>
</head>
<body>
<div id="box">
<div class="left_menu" style="height: 796px; opacity: 1; left: 0px;">
<leftmenu :list="list"></leftmenu>
</div>
</div>
<script>
new Vue({
el: '#box',
methods: {
getdate: function () {
var that = this;
axios.get("data/data.json?dfsa", {})
.then(function (res) {
that.list = res.data;
for (var i = 0; i < that.list.length; i++) {
that.list[i].show = 'display:none';
}
});
}
},
data: {
list: []
},
mounted: function () {
this.getdate();
}
});
</script>
</body>
</html>