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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<!DOCTYPE html>
<html class="no-js css-menubar" lang="zh-cn">
 
<head>
    <title>上海市道路交通环境监测平台</title>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <!-- 移动设备 viewport -->
    <meta name="viewport"
        content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui" />
    <meta name="author" content="上海市道路交通环境监测平台" />
    <!-- 360浏览器默认使用Webkit内核 -->
    <meta name="renderer" content="webkit" />
    <!-- Chrome浏览器添加桌面快捷方式(安卓) -->
    <link rel="icon" type="image/png" href="img/favicon/favicon.png" />
    <meta name="mobile-web-app-capable" content="yes" />
    <!-- Safari浏览器添加到主屏幕(IOS) -->
    <link rel="icon" sizes="192x192" href="img/favicon/apple-touch-icon.png" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="apple-mobile-web-app-title" content="MarsGIS" />
 
    <!--第三方lib-->
    <script type="text/javascript" src="../lib/include-lib.js?time=20210803" libpath="../lib/" include="jquery"></script>
    <link href="../css/style.css?time=20210803" rel="stylesheet" />
 
    <style>
        * {
            padding: 0;
            margin: 0;
            box-sizing: border-box;
        }
 
        ul,
        li {
            list-style: none;
        }
        .header{
            position: fixed;
            display: flex;
            height: 50px;
            width: 100%;
            padding: 10px;
            background: #0d47a1;
            color: #fff;
            font-size: 16px;
            box-shadow: 0 2px 4px rgba(83, 116, 167, 0.2);
            vertical-align: middle;
        }
        .header > img{
            width: 30px;
            height: 30px;
            padding: 2px;
            margin-right: 6px;
            background: #fff;
            border-radius: 2px;
        }
        .header > .title{
            flex: 1;
            line-height: 30px;
        }
        .header > .user{
            font-size: 12px;
            line-height: 30px;
            text-align: right;
        }
 
        .footbar {
            height: 50px;
            background: #fff;
            box-shadow: 0 -1px 6px rgba(13, 71, 161, 0.25);
            z-index: 9999999999999;
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
        }
 
        .footbar ul {
            display: flex;
            overflow: hidden;
            margin: 7px 12px;
            border-radius: 3px;
        }
 
        .footbar ul li {
            flex: 1;
            font-size: 14px;
            line-height: 34px;
            color: #333;
            text-align: center;
            border: 1px solid rgba(83, 116, 167, 0.2);
        }
 
        .footbar ul li.active {
            font-weight: 500;
            color: #e0f7fa;
            background: #0d47a1;
            border: 1px solid 0d47a1;
        }
 
        .hidden {
            display: none;
        }
 
        .map-panel {
            margin-top: 50px;
            height: calc(100vh - 100px);
            background: #fff;
            overflow: hidden;
        }
 
        .map-panel-item {
            width: 100%;
            height: 100%;
        }
        iframe{
            width: 100%;
            height: 100%;
            border: 0;
        }
    </style>
 
</head>
 
<body>
    <div class="header">
        <img src="../img/logo.png">
        <div class="title">上海市道路交通环境监测平台</div>
        <div class="user"><span id="name_"></span></div>
    </div>
    <div class="map-panel" id="a1">
        <!--道路查询 开始-->
        <div class="map-panel-item">
            <iframe src="road_search.html"></iframe>
        </div>
        <!--道路查询 结束-->
 
        <!--道路展示 开始-->
        <div class="map-panel-item">
            <iframe src="road_show.html"></iframe>
        </div>
        <!--道路展示 结束-->
    </div>
 
    <!--footbar 开始-->
    <div class="footbar">
        <ul btn='btn' data-target="#a1">
            <li class="active"><i class="fa fa-search"></i> 道路查询</li>
            <li><i class="fa fa-road"></i> 道路展示</li>
        </ul>
    </div>
    <!--footbar 结束-->
 
    <script>
        $.fn.$btnId = function () {
            $(this).children().click(function () {
                $(this).addClass('active').siblings().removeClass('active')
                // console.log($(this).index())
                var $index = $(this).index()
                var $Id = $(this).parent().data('target')
                //  console.log($Id)
                $($Id).children().eq($index).show().siblings().hide()
            })
        }
        $("[btn='btn']").$btnId()
        $("#name_").html(localStorage.getItem("name"));
    </script>
</body>
 
</html>