storesinfo.html
2.54 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>门店详细</title>
<script type="text/javascript" src="__STATIC__/js/jquery.js"></script>
<script type="text/javascript" src="__STATIC__/js/layer.js" ></script>
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
<meta name="format-detection" content="telephone=no"/>
<meta name="format-detection" content="email=no"/>
<meta name="format-detection" content="address=no;">
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="default"/>
</head>
<style type="text/css">
*{
margin:0px;
padding:0px;
}
body, button, input, select, textarea {
font: 12px/16px 'Microsoft Yahei',Arial;
}
a{text-decoration:none;}
#info {
margin-top: 10px;
}
#container{
min-width:600px;
min-height:767px;
}
.gobutton{ width:160px; height:28px;line-height: 28px; border:#e0e0e0 solid 1px; text-align: center; color:red;font-weight: bold}
</style>
<body onload="init()">
<div id="container" ></div>
</body>
</html>
<script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp"></script>
<script>
var init = function() {
var center = new qq.maps.LatLng({$infolist.lat},{$infolist.lon});
var map = new qq.maps.Map(document.getElementById('container'),{
center: center,
zoom: 18
});
//添加定时器
var marker=new qq.maps.Marker({
position:center,
animation:qq.maps.MarkerAnimation.DROP,
map:map
});
//marker.setAnimation(qq.maps.Animation.DROP);
var infoWin = new qq.maps.InfoWindow({
map: map
});
infoWin.open();
//tips 自定义内容
infoWin.setContent('<div style="width:220px;padding-top:10px;line-height:24px;">'+
'<span style="font-weight: bold; color:blue; font-size: 14px;">{$infolist.pickup_name}</span><br>'+
'{$infolist.pickup_phone}<br>'+
'{$infolist.pickup_contact}<br>'+
'{$infolist.province}{$infolist.city}{$infolist.district}{$infolist.pickup_address}' +
'<br><a href="http://map.qq.com/m/index/nav/type=drive&cond=3&sword=&spointx=&spointy=&eword={$infolist.province}{$infolist.city}{$infolist.district}{$infolist.pickup_address}&epointx={$infolist.lon}&epointy={$infolist.lat}&startId=&destId=&canclebutton="><div class="gobutton">导航到这里</div> </a>'+
'</div>');
infoWin.setPosition(center);
}
</script>