lxwm_6.html
19.1 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
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>联系我们</title>
<script type="text/javascript" src="http://api.map.baidu.com/api?key=&v=1.1&services=true"></script>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, initial-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="https://at.alicdn.com/t/font_1011505_vdlnckj4lm.css">
<link rel="stylesheet" type="text/css" href="../css/common.css">
<link rel="stylesheet" type="text/css" href="../icon/iconfont.css">
<link rel="stylesheet" type="text/css" href="../css/lxwm_5.css">
<link rel="stylesheet" type="text/css" href="https://api.map.baidu.com/res/13/bmap.css">
<script src="../js/base.js"></script>
<script src="../js/jquery.min.js"></script>
<style>
.menu_default{
position: fixed;
top: 0.88rem;
left: 0;
z-index: 10;
background: #fff;
}
.menu_item{
display: flex;
justify-content: space-between;
height: 0.79rem;
align-items: center;
border-bottom: 1px solid #e6e6e6;
margin: 0 0.32rem;
}
.menu_item:first-child{
margin-top: 0.24rem;
}
.menu_item:last-child{
border: none;
}
.menu_text{
font-size: 0.26rem;
margin-left: 0.14rem;
}
.icon-jinru{
color: #666666;
}
.icon-caidan{
font-size: 0.6rem;
margin-left: 0.3rem;
}
.icon-guanbi{
margin-top: 0.06rem;
font-size: 0.5rem;
margin-left: 0.3rem;
}
/*引入百度地图*/
#allmap,.BMap_mask {
height: 100%;
width: 100%;
overflow: hidden;
}
#r-result {
width: 100%;
font-size: 14px;
position: absolute;
top: 10px;
left: 200px
}
</style>
</head>
<body>
<div class="main">
<div class="container">
<!--头部-->
<div class="header">
<!--左 菜单条目-->
<div class="iconfont icon-caidan">
</div>
<!--中 主页面图标-->
<div class="header_mid">
<img src="../images/LOGO.png" >
</div>
</div>
<!--左边菜单栏时出现列表-->
<div class="container menu_default " style="display: none">
<!--首页-->
<div class="menu_item" onclick="btn_index()">
<div class="menu_text" >首页</div>
<div class="iconfont icon-jinru"></div>
</div>
<div class="menu_item" onclick="btn_company()">
<div class="menu_text" >公司简介</div>
<div class="iconfont icon-jinru"></div>
</div>
<div class="menu_item" onclick="btn_jm()">
<div class="menu_text">加盟可耐美</div>
<div class="iconfont icon-jinru"></div>
</div>
<div class="menu_item" onclick="btn_cpzx()">
<div class="menu_text" >产品中心</div>
<div class="iconfont icon-jinru"></div>
</div>
<div class="menu_item" onclick="btn_sckj()">
<div class="menu_text">色彩空间</div>
<div class="iconfont icon-jinru"></div>
</div>
<div class="menu_item" onclick="btn_qqrz()">
<div class="menu_text">全球认证</div>
<div class="iconfont icon-jinru"></div>
</div>
<div class="menu_item" onclick="btn_khfw()">
<div class="menu_text">客户服务</div>
<div class="iconfont icon-jinru"></div>
</div>
<div class="menu_item" onclick="btn_lxwm()">
<div class="menu_text" >联系我们</div>
<div class="iconfont icon-jinru"></div>
</div>
</div>
<!-------------图片------------->
<div class="banner">
<img src="../images/bicon_28@2x.png">
</div>
<!--全球认证-->
<!-------------mid------------>
<div class="mid">
<div class="mid_big">
联系我们
</div>
<div class="mid_small">
CONTACT US
</div>
<!--介绍盒子-->
<div class="mid_box">
<!--图列表-->
<div class="mid_box_item">
<div class="mid_box_item_pic">
<img src="../images/bicon_44@2x.png">
</div>
<div class="mid_box_item_addr">
地址
</div>
<div class="mid_box_item_underline"></div>
<div class="mid_box_item_text">
北京市大兴区欣雅街<br>
兴创国际中心3A-1501室
</div>
</div>
<div class="mid_box_item">
<div class="mid_box_item_tel">
<img src="../images/bicon_45@2x.png">
</div>
<div class="mid_box_item_addr">
电话
</div>
<div class="mid_box_item_underline"></div>
<div class="mid_box_item_text">
010-64482186
</div>
</div>
<div class="mid_box_item">
<div class="mid_box_item_email">
<img src="../images/bicon_46@2x.png">
</div>
<div class="mid_box_item_addr">
邮箱
</div>
<div class="mid_box_item_underline"></div>
<div class="mid_box_item_text">
beijing@germanyclime.cn
</div>
</div>
<div class="mid_box_item">
<div class="mid_box_item_wechat">
<img src="../images/bicon_47@2x.png">
</div>
<div class="mid_box_item_addr">
官方微信
</div>
<div class="mid_box_item_underline"></div>
<div class="mid_box_item_QRcode">
<img src="../images/bicon_48@2x.png">
</div>
</div>
</div>
<!--线下门店-->
<div class="mid_big">
线下门店
</div>
<div class="mid_small">
OFFLINE STORE
</div>
<!--地图-->
<div class="mid_map">
<div id="allmap"></div>
</div>
<!--城市选择-->
<div class="mid_city">
<!--省-->
<div class="mid_province_box">
<select class="mid_province_select ">
<option selected="selected">请选择省</option>
<option>北京</option>
<option>上海</option>
<option>广州</option>
<!--<div class="iconfont icon-tubiaozhizuo-"></div>-->
</select>
<div class="iconfont icon-tubiaozhizuo-"></div>
</div>
<!--市·区-->
<div class="mid_downtown">
<!--市-->
<div class="mid_downtown_box">
<select class="mid_downtown_select ">
<option selected="selected">请选择市</option>
<option>北京</option>
<option>上海</option>
<option>广州</option>
<!--<div class="iconfont icon-tubiaozhizuo-"></div>-->
</select>
<div class="iconfont icon-tubiaozhizuo-"></div>
</div>
<!--区-->
<div class="mid_downtown_box">
<select class="mid_downtown_select ">
<option selected="selected">请选择区</option>
<option>朝阳</option>
<option>浦东</option>
<option>白云</option>
<!--<div class="iconfont icon-tubiaozhizuo-"></div>-->
</select>
<div class="iconfont icon-tubiaozhizuo-"></div>
</div>
</div>
<!--查询按钮-->
<div class="mid_inquire" onclick="btn_location()">
查询
</div>
<!--定位到当前位置-->
<div class="mid_location">
定位当当前位置
</div>
<!--门店结果-->
<div class="mid_shop">
线下门店<span class="mid_shop_color">19</span>个结果
</div>
<!--门店下划线-->
<div class="mid_shop_underline"></div>
<!--门店列表-->
<div class="mid_shop_items">
<div class="mid_shop_item">
<div class="mid_shop_item_top">
百安居上海龙阳店
</div>
<div class="mid_shop_item_bottom">
真北路1208号红星美凯龙(北馆)A8013-2
</div>
<div class="mid_shop_item_underline"></div>
</div>
<div class="mid_shop_item">
<div class="mid_shop_item_top">
百安居上海龙阳店
</div>
<div class="mid_shop_item_bottom">
真北路1208号红星美凯龙(北馆)A8013-2
</div>
<div class="mid_shop_item_underline"></div>
</div>
<div class="mid_shop_item">
<div class="mid_shop_item_top">
百安居上海龙阳店
</div>
<div class="mid_shop_item_bottom">
真北路1208号红星美凯龙(北馆)A8013-2
</div>
<div class="mid_shop_item_underline"></div>
</div>
<div class="mid_shop_item">
<div class="mid_shop_item_top">
百安居上海龙阳店
</div>
<div class="mid_shop_item_bottom">
真北路1208号红星美凯龙(北馆)A8013-2
</div>
<div class="mid_shop_item_underline"></div>
</div>
<div class="mid_shop_item">
<div class="mid_shop_item_top">
百安居上海龙阳店
</div>
<div class="mid_shop_item_bottom">
真北路1208号红星美凯龙(北馆)A8013-2
</div>
<div class="mid_shop_item_underline"></div>
</div>
<div class="mid_shop_item">
<div class="mid_shop_item_top">
百安居上海龙阳店
</div>
<div class="mid_shop_item_bottom">
真北路1208号红星美凯龙(北馆)A8013-2
</div>
<div class="mid_shop_item_underline"></div>
</div>
</div>
</div>
<!--意见反馈-->
<div class="mid_big">
意见反馈
</div>
<div class="mid_small">
FEEDBACK
</div>
<!--输入框-->
<!--姓名-->
<div class="mid_opinion">
<input class="mid_opinion_input" type="text" placeholder="您的姓名">
</div>
<!--手机号-->
<div class="mid_opinion">
<input class="mid_opinion_input" type="text" placeholder="您的手机号">
</div>
<!--邮箱-->
<div class="mid_opinion">
<input class="mid_opinion_input" type="text" placeholder="您的邮箱">
</div>
<!--您的意见-->
<div class="mid_opinion_big">
<textarea class="mid_opinion_textarea" placeholder="您的意见"></textarea>
</div>
<!--提交按钮-->
<div class="mid_opinion_sub">
提交
</div>
</div>
<!--底部介绍-->
<div class="bottom">
<p class="bottom_addr">
公司地址:北京市大兴区欣雅街兴创国际中心3A-1501室
</p>
<p class="bottom_tel">
电话 : 010-64482186
</p>
<p class="bottom_fax">
传真:010-6448-2226
</p>
<p class="bottom_email">
公司邮箱:beijing@germanyclime.cn
</p>
<p class="bottom_copyright">Copyright © 2015 All Rights Reserved 可耐美 版权所有</p>
</div>
<!--底部菜单栏-->
<div class="footer_menu">
<div class="footer_item" onclick="btn_sckj()">
<div class="footer_item_icon icon_select"></div>
<div class="footer_item_text">在线选色</div>
</div>
<div class="footer_item" onclick="btn_cpzx()">
<div class="footer_item_icon icon_product"></div>
<div class="footer_item_text">产品中心</div>
</div>
<div class="footer_item" onclick="btn_khfw()">
<div class="footer_item_icon icon_inquire"></div>
<div class="footer_item_text">防伪查询</div>
</div>
<div class="footer_item">
<div class="footer_item_icon icon_join icon_big" onclick="btn_jm()"></div>
<div class="footer_item_text">加盟可耐美</div>
</div>
</div>
</div>
</div>
<!--<script src="http://api.map.baidu.com/api?v=2.0&ak=EZPCgQ6zGu6hZSmXlRrUMTpr"></script>-->
<script type="text/javascript" src="https://api.map.baidu.com/getscript?v=1.3&ak=&services=true&t=20181212032835"></script>
<script>
function btn_index() {
window.location.href = "index.html"
}
function btn_company(){
window.location.href = "gsjj.html"
}
function btn_jm(){
window.location.href = "jm_3.html"
}
function btn_cpzx(){
window.location.href = "cpzx_2.html"
}
function btn_sckj(){
window.location.href = "sckj.html"
}
function btn_qqrz(){
window.location.href = "qqrz.html"
}
function btn_khfw(){
window.location.href = "fwcx_4.html"
}
function btn_lxwm(){
window.location.href = "lxwm_5.html"
}
$(document).ready(function () {
$(".icon-caidan").click(function () {
$(".menu_default").slideToggle();
if($(this).hasClass("icon-caidan")){
$(this).addClass("icon-guanbi");
$(this).removeClass("icon-caidan");
$("body").css("overflow","hidden");
}else{
$(this).removeClass("icon-guanbi");
$(this).addClass("icon-caidan");
$("body").css("overflow","auto");
}
// $(".icon-guanbi").css("display","none");
})
})
// 点击时自动下拉
$("input").blur(function(){
setTimeout(function() {
var scrollHeight = document.documentElement.scrollTop || document.body.scrollTop || 0;
window.scrollTo(0, Math.max(scrollHeight - 1, 0));
}, 300);
})
$("textarea").blur(function(){
setTimeout(function() {
var scrollHeight = document.documentElement.scrollTop || document.body.scrollTop || 0;
window.scrollTo(0, Math.max(scrollHeight - 1, 0));
}, 300);
})
//聚焦监听
$('input').focus(function() {
if((/Android/gi).test(navigator.userAgent)) {
window.addEventListener('resize', function() {
if(document.activeElement.tagName == 'INPUT' ||
document.activeElement.tagName == 'TEXTAREA') {
window.setTimeout(function() {
document.activeElement.scrollIntoViewIfNeeded();
}, 0);
}
});
}
})
$('textarea').focus(function() {
if((/Android/gi).test(navigator.userAgent)) {
window.addEventListener('resize', function() {
if(document.activeElement.tagName == 'INPUT' ||
document.activeElement.tagName == 'TEXTAREA') {
window.setTimeout(function() {
document.activeElement.scrollIntoViewIfNeeded();
}, 0);
}
});
}
})
// 在指定容器创建地图实例并设置最大最小缩放级别
var map = new BMap.Map("allmap", {
minZoom: 3,
maxZoom: 25
});
// 初始化地图,设置中心点和显示级别
map.centerAndZoom(new BMap.Point(121.36564, 31.22611), 19);
// 开启鼠标滚轮缩放功能,仅对PC上有效
map.enableScrollWheelZoom(true);
// 将控件(平移缩放控件)添加到地图上
map.addControl(new BMap.NavigationControl());
// 为地图增加点击事件,为input赋值
map.addEventListener("click", function(e) {
document.getElementById('lat').value = e.point.lat;
document.getElementById('lng').value = e.point.lng;
});
// 创建位置检索、周边检索和范围检索
var local = new BMap.LocalSearch(map, {
renderOptions: {
map: map
}
});
var province = $("#province2 option:selected").text();
var city = $("#city2 option:selected").text();
var district = $("#district2 option:selected").text();
// 发起检索
function btn_location() {
alert(1)
var city = $("#province2 option:selected").text() + $("#city2 option:selected").text() + $("#district2 option:selected").text() + '可耐美';
if (city != "") {
local.search(city);
}
};
var city = $("#province2 option:selected").text() + $("#city2 option:selected").text() + $("#district2 option:selected").text() + '可耐美';
console.log(city);
</script>
</body>
</html>