contact.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>宝智达冷链官网</title>
  6. <meta content="width=device-width, initial-scale=1.0" name="viewport">
  7. <meta content="" name="keywords">
  8. <meta content="" name="description">
  9. <meta content="Author" name="WebThemez">
  10. <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
  11. <!-- Favicons -->
  12. <link href="../static/img/favicon.png" rel="icon">
  13. <link href="../static/img/apple-touch-icon.png" rel="apple-touch-icon">
  14. <link href="/static/layui/css/layui.css" rel="stylesheet">
  15. <!--字体 -->
  16. <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,700,700i|Raleway:300,400,500,700,800|Montserrat:300,400,700"
  17. rel="stylesheet">
  18. <!-- Bootstrap CSS File -->
  19. <link href="../static/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
  20. <!-- Libraries CSS Files -->
  21. <link href="../static/lib/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  22. <link href="../static/lib/animate/animate.min.css" rel="stylesheet">
  23. <link href="../static/lib/ionicons/css/ionicons.min.css" rel="stylesheet">
  24. <link href="../static/lib/owlcarousel/assets/owl.carousel.min.css" rel="stylesheet">
  25. <link href="../static/lib/magnific-popup/magnific-popup.css" rel="stylesheet">
  26. <link href="../static/lib/ionicons/css/ionicons.min.css" rel="stylesheet">
  27. <!-- Main Stylesheet File -->
  28. <link href="../static/css/style.css" rel="stylesheet">
  29. </head>
  30. <body id="body">
  31. <header id="header">
  32. <div class="container">
  33. <div id="logo" class="pull-left">
  34. <img src="../static/img/favicon.png" alt="Logo" class="logo-image"/>
  35. <h1><a href="/" class="scrollto"><span></span>宝智达冷链</a></h1>
  36. </div>
  37. <nav id="nav-menu-container">
  38. <ul class="layui-nav layui-bg-gray">
  39. <li class="layui-nav-item"><a href="/">首页</a></li>
  40. <li class="layui-nav-item"><a href="/about">关于我们</a></li>
  41. <li class="layui-nav-item">
  42. <a href="/news?types=industry">新闻</a>
  43. <dl class="layui-nav-child">
  44. <dd><a href="/news?types=firm">公司新闻</a></dd>
  45. <dd><a href="/news?types=industry">行业新闻</a></dd>
  46. </dl>
  47. </li>
  48. <li class="layui-nav-item"><a href="/services/">服务介绍</a></li>
  49. <li class="layui-nav-item">
  50. <a href="/product?ptype={{.productFirst}}">产品介绍</a>
  51. <dl class="layui-nav-child">
  52. {{range .productType}}
  53. <dd><a href="/product?ptype={{.Name}}">{{.Name}}</a></dd>
  54. {{end}}
  55. </dl>
  56. </li>
  57. <li class="layui-nav-item"><a href="/recruit">全国代理招募</a></li>
  58. <li class="layui-nav-item"><a href="/contact">联系我们</a></li>
  59. </ul>
  60. </nav>
  61. </div>
  62. </header>
  63. <!--==========================
  64. Page Banner Section
  65. ============================-->
  66. <section id="innerBanner">
  67. <div class="inner-content">
  68. <h2><span>联系我们</span></h2>
  69. <div>
  70. </div>
  71. </div>
  72. </section><!-- #Page Banner -->
  73. <main id="main">
  74. <section id="contact" class="wow fadeInUp">
  75. <div class="container">
  76. <div class="section-header">
  77. <p>欢迎随时与我们联系!无论您有关于产品的问题,需要技术支持,或是想要探讨合作机会,我们的团队都乐意为您提供帮助。请通过以下方式联系我们:</p>
  78. </div>
  79. <div class="row contact-info">
  80. <div class="col-lg-5">
  81. <div class="contact-address">
  82. <i class="ion-ios-location-outline"></i>
  83. <h3>地址</h3>
  84. <address>贵州省贵阳市观山湖区金融城 MAXC 819宝智达科技</address>
  85. </div>
  86. <div class="contact-phone">
  87. <i class="ion-ios-telephone-outline"></i>
  88. <h3>电话</h3>
  89. <p><a href="tel:+ 400-600-0968">+ 400-600-0968</a></p>
  90. </div>
  91. <div class="contact-email">
  92. <i class="ion-ios-email-outline"></i>
  93. <h3>邮件</h3>
  94. <p><a href="mailto:380236930@qq.com">380236930@qq.com</a></p>
  95. </div>
  96. <div class="contact-email">
  97. <i class="ion-ios-chatbubble-outline"></i>
  98. <h3>公司公众号</h3>
  99. <p><a>宝智达冷链科技 (在微信搜索:宝智达冷链科技或扫描下方二维码即可关注公众号)</a></p>
  100. </div>
  101. <div class="contact-email">
  102. <i class="ion-ios-photos-outline"></i>
  103. <h3>公司微信小程序:</h3>
  104. <p><a>宝智达冷链科技(在微信搜索:宝智达冷链科技或扫描下方二维码即可进入冷链小程序 )</a></p>
  105. </div>
  106. </div>
  107. <div class="col-lg-7">
  108. <div class="container">
  109. <div class="form">
  110. <!-- Form itself -->
  111. <form class="layui-form layui-form-pane" action="/api/contact" method="post" id="contactForm" lay-filter="LAY-contactForm">
  112. <div class="layui-form-item">
  113. <label class="layui-form-label">您的名字</label>
  114. <div class="layui-input-block">
  115. <input type="text" name="name" lay-verify="required" placeholder="请输入您的名字" autocomplete="off" class="layui-input">
  116. </div>
  117. </div>
  118. <div class="layui-form-item">
  119. <label class="layui-form-label">联系方式</label>
  120. <div class="layui-input-block">
  121. <input type="text" name="phone" lay-verify="required|phone" placeholder="请输入联系方式" autocomplete="off" class="layui-input">
  122. </div>
  123. </div>
  124. <div class="layui-form-item">
  125. <label class="layui-form-label">信息</label>
  126. <div class="layui-input-block">
  127. <textarea name="message" lay-verify="required" style="height: 260px" placeholder="请输入信息" class="layui-textarea" maxlength="999"></textarea>
  128. </div>
  129. </div>
  130. <div class="layui-form-item">
  131. <div class="layui-input-block">
  132. <button class="layui-btn layui-btn-normal" lay-submit lay-filter="formSubmit">发送</button>
  133. <button type="reset" class="layui-btn layui-btn-primary">重置</button>
  134. </div>
  135. </div>
  136. </form>
  137. </div>
  138. </div>
  139. </div>
  140. <div class="col-lg-3 image-container">
  141. <img src="/image/wechat.png" alt="微信图标" class="fixed-size-image">
  142. <img src="/image/programs.png" alt="小程序图标" class="fixed-size-image">
  143. </div>
  144. </div>
  145. </div>
  146. </section><!-- #contact -->
  147. </main>
  148. <!--==========================
  149. Footer
  150. ============================-->
  151. <footer id="footer">
  152. <div class="container">
  153. <div class="copyright">
  154. Copyright &copy; 2018.Company name All rights reserved.<a target="_blank" href="http://sc.chinaz.com/moban/">&#x7F51;&#x9875;&#x6A21;&#x677F;</a>
  155. </div>
  156. <div class="credits">
  157. </div>
  158. </div>
  159. </footer><!-- #footer -->
  160. <a href="#" class="back-to-top"><i class="fa fa-chevron-up"></i></a>
  161. <!-- JavaScript -->
  162. <script src="../static/lib/jquery/jquery.min.js"></script>
  163. <script src="../static/lib/jquery/jquery-migrate.min.js"></script>
  164. <script src="../static/lib/bootstrap/js/bootstrap.bundle.min.js"></script>
  165. <script src="../static/lib/easing/easing.min.js"></script>
  166. <script src="../static/lib/superfish/hoverIntent.js"></script>
  167. <script src="../static/lib/superfish/superfish.min.js"></script>
  168. <script src="../static/lib/wow/wow.min.js"></script>
  169. <script src="../static/lib/owlcarousel/owl.carousel.min.js"></script>
  170. <script src="../static/lib/magnific-popup/magnific-popup.min.js"></script>
  171. <script src="../static/lib/sticky/sticky.js"></script>
  172. <script src="../static/js/main.js"></script>
  173. <script src="/static/layui/layui.js"></script>
  174. <script>
  175. layui.use(['form'], function () {
  176. var $ = layui.jquery;
  177. var form = layui.form;
  178. // 监听表单提交事件
  179. form.on('submit(formSubmit)', function (data) {
  180. event.preventDefault();
  181. // 获取表单数据
  182. var name = data.field.name;
  183. var phone = data.field.phone;
  184. var message = data.field.message;
  185. // 在这里可以添加验证逻辑,比如检查数据是否为空或格式是否正确
  186. if (!name || !phone || !message) {
  187. layer.alert('所有字段都为必填项');
  188. return false;
  189. }
  190. // 模拟异步提交
  191. $.ajax({
  192. url: "addcontact", // 你的API地址
  193. type: "POST",
  194. data: {
  195. name: name,
  196. phone: phone,
  197. message: message
  198. },
  199. success: function(response) {
  200. if (response.Code === 200) {
  201. layer.msg('提交成功', { icon: 1 });
  202. // 提交成功后的操作,例如清空表单
  203. form.reset("#contactForm");
  204. } else {
  205. layer.alert(response.message);
  206. }
  207. },
  208. error: function() {
  209. layer.alert('提交失败,请稍后重试');
  210. }
  211. });
  212. return false; // 阻止表单再次提交
  213. });
  214. });
  215. </script>
  216. </body>
  217. </html>