Page_contact.html 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. <!--banner 开始-->
  2. <div class="page_banner_w">
  3. <div class="page_banner">
  4. <img src="img/contact_banner.jpg" class="bgimg"/>
  5. </div>
  6. <div class="page_banner_mask">
  7. <div class="p0 animateTop">沒有了诚信与信任,再合作就是多余</div>
  8. <div class="p2 animateTop">每一个梦想我们都会鼎力相助</div>
  9. <div class="form animateTop">
  10. <div class="input">
  11. <span>姓名</span>
  12. <input type="text" placeholder="请输入" id="input_name">
  13. </div>
  14. <div class="input">
  15. <span>电话</span>
  16. <input type="text" placeholder="请输入" id="input_mobile">
  17. </div>
  18. <div class="input">
  19. <span>邮箱</span>
  20. <input type="text" placeholder="请输入" id="input_email">
  21. </div>
  22. <div class="input">
  23. <span>地址</span>
  24. <input type="text" placeholder="请输入" id="input_address">
  25. </div>
  26. <div class="input">
  27. <span>留言</span>
  28. <textarea name="" placeholder="请输入" id="input_content"></textarea>
  29. </div>
  30. </div>
  31. <div class="btn animateTop"><a id="submitForm">提交</a></div>
  32. </div>
  33. </div>
  34. <script type="text/javascript">
  35. $(document).ready(function(){
  36. $("#submitForm").click(function(){
  37. var name = $("#input_name").val();
  38. var mobile = $("#input_mobile").val();
  39. var email = $("#input_email").val();
  40. var address = $("#input_address").val();
  41. var content = $("#input_content").val();
  42. $.post("https://admin.zfire.top/services/order/login/sendEmail", {
  43. name,
  44. mobile,
  45. email,
  46. address,
  47. content,
  48. },function(res){
  49. if(res.code === 1) {
  50. alert('提交成功,我们会尽快联系!');
  51. $("#input_name").val('');
  52. $("#input_mobile").val('');
  53. $("#input_email").val('');
  54. $("#input_address").val('');
  55. $("#input_content").val('');
  56. }else {
  57. alert(res.msg);
  58. }
  59. });
  60. });
  61. });
  62. </script>
  63. <!--banner 结束-->
  64. <!--联系我们 开始-->
  65. <div class="page_contact_w w100 bgGray pt15">
  66. <div class="page_contact mar1500 bgfff isAnimation" data-animation="slideInUp" data-timeout="100">
  67. <div class="page_contact_c">
  68. <div class="top">
  69. <ul class="clearfix">
  70. <li class="address">
  71. <div class="li_c">
  72. <div class="title">联系地址</div>
  73. <div class="add">{$address}</div>
  74. </div>
  75. </li>
  76. <li class="contact">
  77. <div class="li_c">
  78. <div class="title">咨询</div>
  79. <div class="tel">电话:{$call}</div>
  80. <div class="tel">邮箱:{$site_email}</div>
  81. </div>
  82. </li>
  83. <li class="kefu">
  84. <div class="li_c">
  85. <div class="title">在线客服</div>
  86. <div class="qq_w clearfix">
  87. <div class="qq fl">
  88. <div class="h">客服1</div>
  89. <div class="b"><a href="http://wpa.qq.com/msgrd?v=1&uin={$qq}&site=qq&menu=yes">QQ咨询</a></div>
  90. </div>
  91. <div class="qq fl">
  92. <div class="h">客服2</div>
  93. <div class="b"><a href="http://wpa.qq.com/msgrd?v=1&uin={$qq_}&site=qq&menu=yes">QQ咨询</a></div>
  94. </div>
  95. </div>
  96. </div>
  97. </li>
  98. <li class="weixin">
  99. <div class="li_c">
  100. <div class="weixin_w clearfix">
  101. <div class="code fl">
  102. <div class="h">官方微信</div>
  103. <div class="b"><img src="<YP:block pos="wechat_code" type="image" />" width="75"/></div>
  104. </div>
  105. <div class="code fl">
  106. <div class="h">手机网站</div>
  107. <div class="b"><img src="<YP:block pos="mobile_code" type="image" />" width="75"/></div>
  108. </div>
  109. </div>
  110. </div>
  111. </li>
  112. </ul>
  113. </div>
  114. <div id="allmap"> </div>
  115. <style type="text/css">
  116. #allmap {
  117. height: 622px;
  118. width: 100%;
  119. overflow: hidden;
  120. margin: 0 auto;
  121. }
  122. .BMapLib_SearchInfoWindow .BMapLib_sendToPhone {
  123. display: none;
  124. }
  125. .BMapLib_SearchInfoWindow .BMapLib_bubble_top {
  126. height: 50px !important;
  127. line-height: 50px !important;
  128. }
  129. .BMapLib_SearchInfoWindow .BMapLib_bubble_title {
  130. line-height: 50px !important;
  131. background-color: #f9f9f9 !important;
  132. overflow: hidden;
  133. height: 50px !important;
  134. padding: 0 15px !important;
  135. font-size: 16px !important;
  136. }
  137. .BMapLib_SearchInfoWindow .BMapLib_bubble_tools {
  138. height: 50px !important;
  139. }
  140. .BMapLib_SearchInfoWindow .BMapLib_bubble_close {
  141. height: 50px !important;
  142. }
  143. .BMapLib_SearchInfoWindow .BMapLib_bubble_content {
  144. padding: 10px !important;
  145. }
  146. .BMapLib_SearchInfoWindow .BMapLib_bubble_content div {
  147. font-size: 14px !important;
  148. line-height: 200% !important;
  149. }
  150. </style>
  151. <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=H1aHM7IKDb4FGhmsBdzQVRr9FPamK4LH"></script>
  152. <script type="text/javascript"src="http://api.map.baidu.com/library/SearchInfoWindow/1.5/src/SearchInfoWindow_min.js"></script>
  153. <script type="text/javascript">
  154. // 百度地图API功能
  155. window.onload = function() {
  156. var map = new BMap.Map('allmap');
  157. var poi = new BMap.Point(113.363317,23.141258);
  158. map.centerAndZoom(poi, 17);
  159. var content = '<div style="margin:0;line-height:20px;padding:2px;">' +'电话:{$call}<br/>邮箱:{$site_email}<br/>地址:{$address}' +'</div>';
  160. //创建检索信息窗口对象
  161. var searchInfoWindow = null;
  162. searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
  163. title: "{$company}", //标题
  164. width: 400, //宽度
  165. height: 105, //高度
  166. panel: "panel", //检索结果面板
  167. enableAutoPan: true, //自动平移
  168. searchTypes: [
  169. BMAPLIB_TAB_SEARCH, //周边检索
  170. BMAPLIB_TAB_TO_HERE, //到这里去
  171. BMAPLIB_TAB_FROM_HERE //从这里出发
  172. ]
  173. });
  174. //创建小狐狸
  175. var myIcon = new BMap.Icon("/Uploads/202209/63105ea487f0c.png", new BMap.Size(32, 32));
  176. var marker = new BMap.Marker(poi, {
  177. icon: myIcon
  178. }); // 创建标注
  179. searchInfoWindow.open(marker);
  180. //创建marker对象
  181. marker.addEventListener("click", function(e) {
  182. searchInfoWindow.open(marker);
  183. })
  184. map.addOverlay(marker); //在地图中添加marker
  185. }
  186. </script>
  187. </div>
  188. </div>
  189. </div>
  190. <!--联系我们 结束-->