product-detail.html 9.2 KB

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