contact.html 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  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/1">服务介绍</a></li>
  49. <li class="layui-nav-item">
  50. <a href="/product?ptype=hardware">产品介绍</a>
  51. <dl class="layui-nav-child">
  52. <dd><a href="/product?ptype=software">软件</a></dd>
  53. <dd><a href="/product?ptype=hardware">硬件</a></dd>
  54. </dl>
  55. </li>
  56. <li class="layui-nav-item"><a href="/recruit">全国代理招募</a></li>
  57. <li class="layui-nav-item"><a href="/contact">联系我们</a></li>
  58. </ul>
  59. </nav>
  60. </div>
  61. </header>
  62. <!--==========================
  63. Page Banner Section
  64. ============================-->
  65. <section id="innerBanner">
  66. <div class="inner-content">
  67. <h2><span>联系我们</span></h2>
  68. <div>
  69. </div>
  70. </div>
  71. </section><!-- #Page Banner -->
  72. <main id="main">
  73. <section id="contact" class="wow fadeInUp">
  74. <div class="container">
  75. <div class="section-header">
  76. <p>欢迎随时与我们联系!无论您有关于产品的问题,需要技术支持,或是想要探讨合作机会,我们的团队都乐意为您提供帮助。请通过以下方式联系我们:</p>
  77. </div>
  78. <div class="row contact-info">
  79. <div class="col-lg-5">
  80. <div class="contact-address">
  81. <i class="ion-ios-location-outline"></i>
  82. <h3>地址</h3>
  83. <address>贵州省贵阳市观山湖区金融城 MAXC 819宝智达科技</address>
  84. </div>
  85. <div class="contact-phone">
  86. <i class="ion-ios-telephone-outline"></i>
  87. <h3>电话</h3>
  88. <p><a href="tel:+ 400-600-0968">+ 400-600-0968</a></p>
  89. </div>
  90. <div class="contact-email">
  91. <i class="ion-ios-email-outline"></i>
  92. <h3>邮件</h3>
  93. <p><a href="mailto:380236930@qq.com">380236930@qq.com</a></p>
  94. </div>
  95. <div class="contact-email">
  96. <i class="ion-ios-chatbubble-outline"></i>
  97. <h3>公司公众号</h3>
  98. <p><a>宝智达冷链科技 (在微信搜索:宝智达冷链科技或扫描下方二维码即可关注公众号)</a></p>
  99. </div>
  100. <div class="contact-email">
  101. <i class="ion-ios-photos-outline"></i>
  102. <h3>公司微信小程序:</h3>
  103. <p><a>宝智达冷链科技(在微信搜索:宝智达冷链科技或扫描下方二维码即可进入冷链小程序 )</a></p>
  104. </div>
  105. </div>
  106. <div class="col-lg-7">
  107. <div class="container">
  108. <div class="form">
  109. <!-- Form itself -->
  110. <form class="layui-form layui-form-pane" action="/api/contact" method="post" id="contactForm" lay-filter="LAY-contactForm">
  111. <div class="layui-form-item">
  112. <label class="layui-form-label">您的名字</label>
  113. <div class="layui-input-block">
  114. <input type="text" name="name" lay-verify="required" placeholder="请输入您的名字" autocomplete="off" class="layui-input">
  115. </div>
  116. </div>
  117. <div class="layui-form-item">
  118. <label class="layui-form-label">联系方式</label>
  119. <div class="layui-input-block">
  120. <input type="text" name="phone" lay-verify="required|phone" placeholder="请输入联系方式" autocomplete="off" class="layui-input">
  121. </div>
  122. </div>
  123. <div class="layui-form-item">
  124. <label class="layui-form-label">信息</label>
  125. <div class="layui-input-block">
  126. <textarea name="message" lay-verify="required" style="height: 260px" placeholder="请输入信息" class="layui-textarea" maxlength="999"></textarea>
  127. </div>
  128. </div>
  129. <div class="layui-form-item">
  130. <div class="layui-input-block">
  131. <button class="layui-btn layui-btn-normal" lay-submit lay-filter="formSubmit">发送</button>
  132. <button type="reset" class="layui-btn layui-btn-primary">重置</button>
  133. </div>
  134. </div>
  135. </form>
  136. </div>
  137. </div>
  138. </div>
  139. <div class="col-lg-3 image-container">
  140. <img src="/image/wechat.png" alt="微信图标" class="fixed-size-image">
  141. <img src="/image/programs.png" alt="小程序图标" class="fixed-size-image">
  142. </div>
  143. </div>
  144. </div>
  145. </section><!-- #contact -->
  146. </main>
  147. <!--==========================
  148. Footer
  149. ============================-->
  150. <footer id="footer">
  151. <div class="container">
  152. <div class="copyright">
  153. Copyright &copy; 2018.Company name All rights reserved.<a target="_blank" href="http://sc.chinaz.com/moban/">&#x7F51;&#x9875;&#x6A21;&#x677F;</a>
  154. </div>
  155. <div class="credits">
  156. </div>
  157. </div>
  158. </footer><!-- #footer -->
  159. <a href="#" class="back-to-top"><i class="fa fa-chevron-up"></i></a>
  160. <!-- JavaScript -->
  161. <script src="../static/lib/jquery/jquery.min.js"></script>
  162. <script src="../static/lib/jquery/jquery-migrate.min.js"></script>
  163. <script src="../static/lib/bootstrap/js/bootstrap.bundle.min.js"></script>
  164. <script src="../static/lib/easing/easing.min.js"></script>
  165. <script src="../static/lib/superfish/hoverIntent.js"></script>
  166. <script src="../static/lib/superfish/superfish.min.js"></script>
  167. <script src="../static/lib/wow/wow.min.js"></script>
  168. <script src="../static/lib/owlcarousel/owl.carousel.min.js"></script>
  169. <script src="../static/lib/magnific-popup/magnific-popup.min.js"></script>
  170. <script src="../static/lib/sticky/sticky.js"></script>
  171. <script src="../static/js/main.js"></script>
  172. <script src="/static/layui/layui.js"></script>
  173. <script>
  174. layui.use(['form'], function () {
  175. var $ = layui.jquery;
  176. var form = layui.form;
  177. // 监听表单提交事件
  178. form.on('submit(formSubmit)', function (data) {
  179. event.preventDefault();
  180. // 获取表单数据
  181. var name = data.field.name;
  182. var phone = data.field.phone;
  183. var message = data.field.message;
  184. // 在这里可以添加验证逻辑,比如检查数据是否为空或格式是否正确
  185. if (!name || !phone || !message) {
  186. layer.alert('所有字段都为必填项');
  187. return false;
  188. }
  189. // 模拟异步提交
  190. $.ajax({
  191. url: "addcontact", // 你的API地址
  192. type: "POST",
  193. data: {
  194. name: name,
  195. phone: phone,
  196. message: message
  197. },
  198. success: function(response) {
  199. if (response.Code === 200) {
  200. layer.msg('提交成功', { icon: 1 });
  201. // 提交成功后的操作,例如清空表单
  202. form.reset("#contactForm");
  203. } else {
  204. layer.alert(response.message);
  205. }
  206. },
  207. error: function() {
  208. layer.alert('提交失败,请稍后重试');
  209. }
  210. });
  211. return false; // 阻止表单再次提交
  212. });
  213. });
  214. </script>
  215. </body>
  216. </html>