run.htm 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  6. <meta name="viewport" content="width=device-width,initial-scale=1.0">
  7. <title>关于我们</title>
  8. <meta name="description" content="关于我们">
  9. <meta name="keywords" content="猫王收音机,猫王音响,RADIOOO,猫王音乐台,猫王1,猫王2,猫王3,猫王小王子">
  10. <link rel="shortcut icon" href="/static/css/favicon.ico">
  11. <!--{ if ($lang == 'en') {}-->
  12. <link rel="stylesheet" type="text/css" href="/static/css/headerComponent_en.css">
  13. <link rel="stylesheet" type="text/css" href="/static/css/footerComponent_en.css">
  14. <!--{}else{}-->
  15. <link rel="stylesheet" type="text/css" href="/static/css/headerComponent.css">
  16. <link rel="stylesheet" type="text/css" href="/static/css/footerComponent.css">
  17. <!--{}}-->
  18. <link rel="stylesheet" type="text/css" href="/static/css/commonPage.css">
  19. <script type="text/javascript" src="http://api.map.baidu.com/api?key=&v=1.1&services=true"></script>
  20. <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
  21. <script type="text/javascript" src="/static/js/module/TD.js"></script>
  22. <script>
  23. var _hmt = _hmt || [];
  24. (function() {
  25. var hm = document.createElement("script");
  26. hm.src = "https://hm.baidu.com/hm.js?ec21b876c66f6033f549fcd833ac3b7b";
  27. var s = document.getElementsByTagName("script")[0];
  28. s.parentNode.insertBefore(hm, s);
  29. })();
  30. </script>
  31. </head>
  32. <body>
  33. <!--{ echo $header; }-->
  34. <div class="m-common">
  35. <div class="scroll-bar">
  36. <div class="scroll-top">top</div>
  37. <div class="scroll-indicator"></div>
  38. </div>
  39. <div class="content-wrap">
  40. <div class="content-height">
  41. <div class="top-wrap" style="display:none;"></div>
  42. <div class="brand-logo">
  43. <img src="http://airsmart-web.oss-cn-shanghai.aliyuncs.com/upload/images/%E5%8E%86%E7%A8%8B/about_top.jpg" alt="">
  44. </div>
  45. <section class="content-section">
  46. <h2 class="content-title"><!--{ echo $aboutData['contact_title']; }--></h2>
  47. <div class="content-text">
  48. <!--{ echo $aboutData['contact']; }-->
  49. </div>
  50. <!--{ foreach($aboutData['position'] as $key => $row){ }-->
  51. <div class="map-wrap">
  52. <div class="map" id="map<!--{echo $key;}-->"></div>
  53. <h3 class="map-title"><!--{ echo $aboutData['position'][$key]['title'] }--></h3>
  54. </div>
  55. <!--{ }}-->
  56. </section>
  57. <section class="content-section">
  58. <h2 class="content-title"><!--{ echo $aboutData['business_title']; }--></h2>
  59. <div class="content-text">
  60. <!--{ echo $aboutData['business']; }-->
  61. </div>
  62. </section>
  63. <section class="content-section">
  64. <h2 class="content-title"><!--{ echo $aboutData['client_title']; }--></h2>
  65. <div class="content-text">
  66. <!--{ echo $aboutData['client']; }-->
  67. </div>
  68. </section>
  69. <br>
  70. </div>
  71. </div>
  72. </div>
  73. </body>
  74. <script type="text/javascript">
  75. //创建和初始化地图函数:
  76. function initMap(id, axisX, axisY){
  77. createMap(id, axisX, axisY);//创建地图
  78. setMapEvent();//设置地图事件
  79. addMapControl();//向地图添加控件
  80. }
  81. //创建地图函数:
  82. function createMap(id, axisX, axisY){
  83. var map = new BMap.Map(id);//在百度地图容器中创建一个地图
  84. var point = new BMap.Point(axisX, axisY);//定义一个中心点坐标
  85. map.centerAndZoom(point,17);//设定地图的中心点和坐标并将地图显示在地图容器中
  86. window.map = map;//将map变量存储在全局
  87. var marker = new BMap.Marker(point);
  88. map.addOverlay(marker);
  89. }
  90. //地图事件设置函数:
  91. function setMapEvent(){
  92. map.enableDragging();//启用地图拖拽事件,默认启用(可不写)
  93. map.enableScrollWheelZoom();//启用地图滚轮放大缩小
  94. map.enableDoubleClickZoom();//启用鼠标双击放大,默认启用(可不写)
  95. map.enableKeyboard();//启用键盘上下左右键移动地图
  96. }
  97. //地图控件添加函数:
  98. function addMapControl(){
  99. }
  100. <!--{ foreach($aboutData['position'] as $key => $row){ }-->
  101. initMap('map' + <!--{echo $key;}-->, <!--{ echo $aboutData['position'][$key]['long'] }-->, <!--{ echo $aboutData['position'][$key]['lat'] }-->);//创建和初始化地图
  102. <!--{ }}-->
  103. </script>
  104. <script type="text/javascript" src="/static/js/module/headerComponent.js"></script>
  105. <script type="text/javascript" src="/static/js/commonPageController.js"></script>
  106. </html>