product-detail.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  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. banner
  65. ============================-->
  66. <section id="innerBanner">
  67. <div class="inner-content">
  68. <h2><span>{{.detail.Title}}</span></h2>
  69. <div>
  70. </div>
  71. </div>
  72. </section>
  73. <main id="main">
  74. <!--==========================
  75. 服务&产品
  76. ============================-->
  77. <!-- <section id="services">-->
  78. <!-- <div class="container">-->
  79. <!-- <div class="section-header">-->
  80. <!-- <h2>产品详情</h2>-->
  81. <!-- </div>-->
  82. <!-- 暂时隐藏技术参数介绍-->
  83. <!-- <div class="btn-group" role="group" aria-label="Basic outlined example">-->
  84. <!-- <button type="button" class="btn btn-outline-primary" id="introduction"-->
  85. <!-- onclick="location.href = '/product/{{.detail.ID}}'">产品介绍-->
  86. <!-- </button>-->
  87. <!-- <button type="button" class="btn btn-outline-primary" id="parameters"-->
  88. <!-- onclick="location.href = '/product/{{.detail.ID}}/parameters'">技术参数-->
  89. <!-- </button>-->
  90. <!-- <button type="button" class="btn btn-outline-primary" id="instructions"-->
  91. <!-- onclick="location.href = '/product/{{.detail.ID}}/instructions'">操作说明-->
  92. <!-- </button>-->
  93. <!-- <button type="button" class="btn btn-outline-primary" id="software"-->
  94. <!-- onclick="location.href = '/product/{{.detail.ID}}/software'">配套软件-->
  95. <!-- </button>-->
  96. <!-- <button type="button" class="btn btn-outline-primary" id="accessories"-->
  97. <!-- onclick="location.href = '/product/{{.detail.ID}}/accessories'">可选配件-->
  98. <!-- </button>-->
  99. <!-- </div>-->
  100. <!-- <div class="row" style="margin-top: 10px; display: flex; align-items: center; justify-content: space-around;">-->
  101. <!-- <div class="div2 col-6" style="width: 45%; height: auto; border: 2px solid #eaeaea; box-shadow: 0 4px 6px rgba(0,0,0,0.1); padding: 20px; /* 增加内边距 */ display: flex; justify-content: center;">-->
  102. <!-- <img src="{{.detail.Url}}" class="img-fluid" alt="" style="max-width: 100%;">-->
  103. <!-- </div>-->
  104. <!-- <div id="t" class="div1 col-6" style="width: 45%; height: auto; border: 2px solid #eaeaea; box-shadow: 0 4px 6px rgba(0,0,0,0.1); padding: 20px; /* 增加内边距 */ display: flex; flex-direction: column;">-->
  105. <!-- &lt;!&ndash; 在这里添加你的内容 &ndash;&gt;-->
  106. <!-- </div>-->
  107. <!-- </div>-->
  108. <!-- <div id="t1" style="width: 100%; margin-top: 40px; /* 增加上边距 */ text-align: center;">-->
  109. <!-- &lt;!&ndash; 在这里添加你的内容 &ndash;&gt;-->
  110. <!-- </div>-->
  111. <!-- </div>-->
  112. <!-- </section>&lt;!&ndash; #services &ndash;&gt;-->
  113. <section id="services">
  114. <div class="container-fluid">
  115. <div style="text-align: center;">
  116. <p>
  117. <img src="{{.detail.Detail}}" alt="img" data-href=""
  118. style="max-width: 100%; height: auto; display: block; margin: 0 auto;" />
  119. </p>
  120. </div>
  121. </div>
  122. </section>
  123. <!--==========================
  124. Call To Action Section
  125. ============================-->
  126. <section id="call-to-action" class="wow fadeInUp">
  127. <div class="container">
  128. <div class="row">
  129. <div class="col-lg-9 text-center text-lg-left">
  130. <h3 class="cta-title">获取我们的服务</h3>
  131. <p class="cta-text">
  132. 欢迎随时与我们联系!无论您有关于产品的问题,需要技术支持,或是想要探讨合作机会,我们的团队都乐意为您提供帮助</p>
  133. </div>
  134. <div class="col-lg-3 cta-btn-container text-center">
  135. <a class="cta-btn align-middle" href="/contact">联系我们</a>
  136. </div>
  137. </div>
  138. </div>
  139. </section><!-- #call-to-action -->
  140. </main>
  141. <!--==========================
  142. 页脚
  143. ============================-->
  144. <footer id="footer">
  145. <div class="container">
  146. <div class="copyright">
  147. Copyright &copy; 2018.Company name All rights reserved.<a target="_blank"
  148. href="http://sc.chinaz.com/moban/">&#x7F51;&#x9875;&#x6A21;&#x677F;</a>
  149. </div>
  150. <div class="credits">
  151. </div>
  152. </div>
  153. </footer><!-- #footer -->
  154. <a href="#" class="back-to-top"><i class="fa fa-chevron-up"></i></a>
  155. <!-- JavaScript -->
  156. <script src="/static/lib/jquery/jquery.min.js"></script>
  157. <script src="/static/lib/jquery/jquery-migrate.min.js"></script>
  158. <script src="/static/lib/bootstrap/js/bootstrap.bundle.min.js"></script>
  159. <script src="/static/lib/easing/easing.min.js"></script>
  160. <script src="/static/lib/superfish/hoverIntent.js"></script>
  161. <script src="/static/lib/superfish/superfish.min.js"></script>
  162. <script src="/static/lib/wow/wow.min.js"></script>
  163. <script src="/static/lib/owlcarousel/owl.carousel.min.js"></script>
  164. <script src="/static/lib/magnific-popup/magnific-popup.min.js"></script>
  165. <script src="/static/lib/sticky/sticky.js"></script>
  166. <!--<script src="contact/jqBootstrapValidation.js"></script>-->
  167. <!--<script src="contact/contact_me.js"></script>-->
  168. <script src="/static/js/main.js"></script>
  169. <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"></script>
  170. <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.min.js"></script>
  171. <script src="/static/layui/layui.js"></script>
  172. <script>
  173. window.onload = function () {
  174. let s = '{{.detail.Detail}}';
  175. let s1 = '{{.detail.ProductIntroduction}}';
  176. let s2 = '';
  177. let isShow = document.querySelector('#isShow');
  178. let url = window.location.href;
  179. let prams = url.split('/')[5];
  180. let t1 = document.getElementById('t1');
  181. console.log(s1);
  182. switch (prams) {
  183. case 'parameters':
  184. s1 = '{{.detail.TechnicalParameters}}';
  185. isShow.style.display = 'none';
  186. break;
  187. case 'instructions':
  188. s1 = '{{.detail.Instructions}}';
  189. isShow.style.display = 'none';
  190. break;
  191. case 'software':
  192. s2 = '{{.detail.SupportingSoftware}}';
  193. isShow.style.display = 'none';
  194. // 在这里添加a标签到t1
  195. console.log(s2);
  196. if (t1) {
  197. // 确保t1存在
  198. let link = document.createElement('a');
  199. // 创建a标签
  200. link.href = s2; // 设置href
  201. link.textContent = '配套软件软件下载';
  202. console.log(link);// 设置链接文本
  203. t1.appendChild(link); // 添加到t1
  204. }
  205. console.log("After adding link, t1.innerHTML:", t1.innerHTML)
  206. break;
  207. case 'accessories':
  208. s1 = '{{.detail.OptionalAccessories}}';
  209. isShow.style.display = 'none';
  210. break;
  211. }
  212. let t = document.getElementById('t');
  213. t.innerHTML = s;
  214. if (s1) {
  215. t1.innerHTML = s1;
  216. }
  217. };
  218. </script>
  219. </body>
  220. </html>