File: /www/wwwroot/shenzhouhuazhang.com/wp-content/themes/sy/page-contact.php
<?php /*Template Name: 联系我们 */
get_header(); ?>
<div class="mainpage maincontact">
<div class="areaindex">
<div class="page1">
<div class="area">
<h3>神州华章(上海)文化发展有限公司</h3>
<div class="info">
<p><strong>地址:</strong>上海市浦东新区金湘路225弄11号1123室(禹洲金桥国际经济园三期二号楼),近金豫路、金港路</p>
<p><strong>邮箱:</strong>cimedia@126.com</p>
<p><strong>交通班线:</strong>地铁9号线(金桥站,3号出口)、浦东42路、573、790、上川线、1026、1032、991、630、蔡陆专线、金桥1路</p>
</div>
</div>
</div>
<div class="page2">
<div class="area">
<div class="info">
<p><strong>纸媒制作业务联系方式:</strong></p>
<p>电话:15000993491</p>
<p>QQ:2768790043</p>
<p>微信:ruovi6175</p>
<p class="wx"><img alt="" src="<?php bloginfo('template_url'); ?>/static/picture/wx_paper.jpg"></p>
</div>
<div class="info">
<p><strong>影像摄制业务联系方式:</strong></p>
<p>电话:18016321289</p>
<p>QQ:2187874483</p>
<p>微信:sy-video</p>
<p class="wx"><img alt="" src="<?php bloginfo('template_url'); ?>/static/picture/wx_video.jpg"></p>
</div>
<div class="info">
<p><strong>策划撰稿、综合业务联系方式:</strong></p>
<p>电话:13917050019</p>
<p>QQ:247497428</p>
<p>微信:ahchmh</p>
<p class="wx"><img alt="" src="<?php bloginfo('template_url'); ?>/static/picture/wx_plan.png"></p>
</div>
<div class="c_b"></div>
</div>
</div>
<div class="page3">
<div class="area" id="map">
</div>
</div>
</div>
</div>
<script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=RpBisO4KIbIQuEkqod69zQi6FBXYGSdF"></script>
<script src="<?php bloginfo('template_url') ?>/static/baidu.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
// initMap('map', 121.629937,31.248008, '上海市浦东新区峨山路91弄200号新鹏大厦二层');
var map = new BMap.Map("map"); // 创建Map实例
var point = new BMap.Point(121.629937,31.248008,''); // 创建点坐标
map.centerAndZoom(point, 15);
var marker = new BMap.Marker(point); // 创建标注
var geocoder = new BMap.Geocoder(); // 创建地理编码实例
map.addOverlay(marker); // 将标注添加到地图中
map.centerAndZoom(point, 19);
map.enableScrollWheelZoom(true); //开启鼠标滚轮缩放
map.addControl(new BMap.MapTypeControl({mapTypes:[BMAP_NORMAL_MAP, BMAP_HYBRID_MAP]})); // 添加地图类型控件
map.addControl(new BMap.NavigationControl({type: BMAP_NAVIGATION_CONTROL_LARGE})); // 添加平移缩放控件
var opts = {
width : 200, // 信息窗口宽度
height: '', // 信息窗口高度
title : '' , // 信息窗口标题
enableMessage: true, // 设置允许信息窗发送短息
message: ''
}
var option = {
Latitude: '31.248008',
Longitude: '121.629937',
ItemTitle: "<div style=width:168px>上海市浦东新区金湘路225弄11号1123室</div>",
MapType: "1",
ShowType: "1",
Sliding: "0",
Zoom: Number("18")
}
var ItemTitle = option.ItemTitle.replace(/\<br\>/ig, '');
var infoWindow = new BMap.InfoWindow(option.ItemTitle, opts); // 创建信息窗口对象
map.openInfoWindow(infoWindow, point); //开启信息窗口
if (option.ItemTitle == '') {
// 根据坐标得到地址描述
geocoder.getLocation(point, function(result){
if ( result.surroundingPois.length > 0) {
option.ItemTitle = result.surroundingPois[0].address;
infoWindow.setContent(option.ItemTitle);
}
});
}
marker.addEventListener("click", function(){
map.openInfoWindow(infoWindow, point); //开启信息窗口
});
</script>
<?php get_footer(); ?>