search.htm 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>{ms:global.name/}</title>
  6. <link type="text/css" rel="stylesheet" href="{ms:global.host/}/{ms:global.style/}/css/product-list.css">
  7. <link rel="stylesheet" href="{ms:global.host/}/{ms:global.style/}/css/jointly.css">
  8. <script type="text/javascript" src="{ms:global.host/}/static/plugins/vue/2.6.9/vue.min.js"></script>
  9. <script src="{ms:global.host/}/static/plugins/element-ui/2.12.0/index.js"></script>
  10. <link rel="stylesheet" href="{ms:global.host/}/static/plugins/element-ui/2.12.0/index.css">
  11. <script src="{ms:global.host/}/{ms:global.style/}/js/jquery-1.9.0.js" type="text/javascript"></script>
  12. </head>
  13. <body>
  14. <#include "head.html">
  15. <!--主要内容-->
  16. <div class="main">
  17. <!--位置导航-->
  18. <div class="present">
  19. <span>您搜索的关键字:</span>
  20. <span><a href="{ms:global.host/}${field.typelink}"> {ms:search.content_title/} </a> </span>
  21. </div>
  22. <!--产品系列-->
  23. <div class="main-container">
  24. <div class="info">
  25. <ul>
  26. <li class="product">产品信息</li>
  27. <li class="commodity">
  28. <span class="info_icon"><span></span></span>
  29. <a class="set" href="{ms:global.url/}/chanpinxinxi/bianxieshixilie/index.html">便携式系列</a>
  30. </li>
  31. <li class="childlife commodity"><span></span></li>
  32. <li class="commodity">
  33. <span class="info_icon"><span></span></span>
  34. <a class="set" href="{ms:global.url/}/chanpinxinxi/diancifaxilie/index.html">电磁阀系列</a>
  35. </li>
  36. <li class="childlife commodity"><span></span></li>
  37. <li class="commodity">
  38. <span class="info_icon"><span></span></span>
  39. <a class="set" href="{ms:global.url/}/chanpinxinxi/gongyexilie/index.html">工业系列</a>
  40. </li>
  41. <li class="childlife commodity"><span></span></li>
  42. <li class="commodity">
  43. <span class="info_icon"><span></span></span>
  44. <a class="set" href="{ms:global.url/}/chanpinxinxi/minyongxiliejiqitachanpin/index.html">民用系列及其它产品</a>
  45. </li>
  46. <li class="childlife commodity"><span></span></li>
  47. </ul>
  48. </div>
  49. <!--产品图片-->
  50. <div class="pic">
  51. <ul>
  52. {ms:arclist size=9 ispaging=true }
  53. <li>
  54. <a href='{ms:global.url/}/${field.link}' target="_self">
  55. <img src="{ms:global.host/}/{@ms:file field.litpic/}"/>
  56. <div>
  57. ${field.title}
  58. </div>
  59. </a>
  60. </li>
  61. {/ms:arclist}
  62. <el-pagination
  63. background
  64. @current-change="handleCurrentChange"
  65. :page-size="pageSize"
  66. :current-page.sync="pageCur"
  67. layout="prev, pager, next, jumper"
  68. :total="contentCount">
  69. </el-pagination>
  70. </ul>
  71. </div>
  72. <ul class="fanye">
  73. <li class="home-page"><a href="{ms:page.index/}">首页</a></li>
  74. <li><a href="{ms:page.pre/}">上一页</a></li>
  75. <li><a href="{ms:page.next/}">下一页</a></li>
  76. <li class="last"><a href="{ms:page.last/}">最末页</a></li>
  77. </ul>
  78. </div>
  79. <div class="qq">
  80. <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&amp;uin=2029444895&amp;site=qq&amp;menu=yes" ><img data-type="img1" src="{ms:global.host/}/{ms:global.style/}/images/qq.png" class="img_qq"/> </a>
  81. <img data-type="img2" src="{ms:global.host/}/{ms:global.style/}/images/pic.png" class="img_tel"/>
  82. </div>
  83. <img style="position: fixed;right: 52px;top: 210px;display:none" class="img_one" style="width: 223px; height: 114px;" src="{ms:global.host/}/{ms:global.style/}/images/talk.png"/>
  84. <img style="position: fixed;right: 52px;top: 270px;display:none" class="img_two" style="width: 223px; height: 114px;" src="{ms:global.host/}/{ms:global.style/}/images/tel.png"/>
  85. </div>
  86. <#include "foot.html">
  87. </body>
  88. </html>
  89. <script>
  90. $(function(){
  91. if ($(".pic >ul > li" ).length <=0){
  92. $(".pic").html("<span style='font-size:20px;color:#ccc;width:100%;tex'>对不起,没有找到你所要的商品</span>");
  93. }
  94. })
  95. $(".qq >a").hover(
  96. function(){
  97. $(".img_one").css("display","block");
  98. },
  99. function(){
  100. $(".img_one").css("display","none");
  101. }
  102. );
  103. $(".qq > .img_tel").hover(
  104. function(){
  105. $(".img_two").css("display","block");
  106. },
  107. function(){
  108. $(".img_two").css("display","none");
  109. }
  110. );
  111. var app = new Vue({
  112. el: '#app',
  113. data: {
  114. //当前页数
  115. pageCur: ${(page.cur)!1},
  116. //每页文章条数
  117. pageSize: ${(page.size)!20},
  118. //页数总数
  119. pageTotal: ${(page.total)!0},
  120. //内容总数
  121. contentCount: ${(page.rcount)!0},
  122. keyword: "{ms:search.content_title/}"
  123. },
  124. methods: {
  125. handleCurrentChange:function(val) {
  126. var form = document.createElement("form");
  127. form.setAttribute("method", "post");
  128. var input = document.createElement('input');
  129. input.setAttribute('type', 'hidden');
  130. input.setAttribute('name', 'size');
  131. input.setAttribute('value', this.pageSize);
  132. form.append(input);
  133. input = document.createElement('input');
  134. input.setAttribute('type', 'hidden');
  135. input.setAttribute('name', 'pageNo');
  136. input.setAttribute('value', val);
  137. form.append(input);
  138. input = document.createElement('input');
  139. input.setAttribute('type', 'hidden');
  140. input.setAttribute('name', 'content_title');
  141. input.setAttribute('value', this.keyword);
  142. form.append(input);
  143. input = document.createElement('input');
  144. input.setAttribute('type', 'hidden');
  145. input.setAttribute('name', 'categoryIds');
  146. input.setAttribute('value', this.categoryIds);
  147. form.append(input);
  148. form.setAttribute("action",location.pathname);
  149. document.body.appendChild(form);
  150. form.submit();
  151. form.remove();
  152. },
  153. }
  154. })
  155. </script>