city_win.html
2.8 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
<title></title>
<script src="../../assets/js/fontsize.js"></script>
<link rel="stylesheet" href="../../assets/css/api.css"/>
<link rel="stylesheet" href="../../assets/icon/iconfont.css">
<style>
header {
width: 100%;
height: auto;
font-size: 15px;
}
.index_header {
line-height: 0.44rem;
color: #424242;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.24rem 0.42rem;
}
.close_left {
position: relative;
}
.close_left::before {
position: absolute;
left: -0.1rem;
right: -0.1rem;
top: -0.1rem;
bottom: -0.1rem;
content: '';
}
</style>
</head>
<body>
<div id="app">
<header>
<div class="index_header">
<div class="close_left" @click.stop="close"><span class="iconfont icon-fanhui"></span></div>
<div>选择城市</div>
<div></div>
</div>
</header>
</div>
</body>
</html>
<script type="text/javascript" src="../../assets/js/api.js"></script>
<script type="text/javascript" src="../../assets/js/public.js"></script>
<script type="text/javascript" src="../../assets/js/fastclick.js"></script>
<script>
new FastClick(document.body);
</script>
<script type="text/javascript" src="../../assets/js/vue.min.js"></script>
<script type="text/javascript" src="../../assets/js/axios.min.js"></script>
<script type="text/javascript" src="../../assets/icon/iconfont.js"></script>
<script>
var app = new Vue({
el: '#app',
data: {
headerH: '',
cityname: ''
},
created: function () {
apiready = function () {
app.headerH = $api.offset($api.dom('header')).h;
api.openFrame({
name: 'city_f',
url: './city_f.html',
rect: {
x: 0,
y: app.headerH,
w: api.frameWidth,
h: api.frameHeight
},
pageParam: {
cityname: app.cityname
}
})
}
},
methods: {
close:function () {
closeWindow()
}
}
})
</script>