商品列表.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Title</title>
  6. <link rel="stylesheet" href="../../layui/css/layui.css">
  7. <link rel="stylesheet" href="../../c_style/css.css">
  8. <link rel="stylesheet" href="../../c_style/shop.css">
  9. </head>
  10. <body>
  11. <div>
  12. <div class="shop-container">
  13. <div class="shop-container-search-box">
  14. <div class="shop-container-search">
  15. <input class="shop-container-search-input"
  16. placeholder="请输入商品名称、规格型号、出厂编码查询" type="text">
  17. <div class="shop-container-search-btn">搜索</div>
  18. <div class="shop-container-shopping-cart"><i class="icon-shopcar"></i>购物车(20)</div>
  19. </div>
  20. </div>
  21. <div class="shop-container-filter-box">
  22. <div class="shop-container-filter-box-wrapper">
  23. <div class="shop-container-filter-item dotted-line">
  24. <div class="shop-container-filter-item-title">车型</div>
  25. <div class="shop-container-filter-item-container">
  26. <div class="shop-container-filter-item-car-type">东风日产奇骏20102.5 无级 XV 至尊版( 20112011 )
  27. <a class="clear-btn">×</a>
  28. </div>
  29. <div class="shop-container-filter-item-btn btn-1">选择车型</div>
  30. <div class="shop-container-filter-item-btn btn-2">VIN 图片识别</div>
  31. <div class="shop-container-filter-item-btn btn-3">VIN 查询</div>
  32. </div>
  33. </div>
  34. <div class="shop-container-filter-item">
  35. <div class="shop-container-filter-item-title">品类</div>
  36. <div id="brand-filter" class="shop-container-filter-item-container put-container">
  37. <span class="shop-container-filter-item-brand">不限</span>
  38. <span class="shop-container-filter-item-brand checked">滤清器类</span>
  39. <span class="shop-container-filter-item-brand">滤清器类</span>
  40. <span class="shop-container-filter-item-brand">滤清器类</span>
  41. <span class="shop-container-filter-item-brand">滤清器类</span>
  42. <span class="shop-container-filter-item-brand">滤清器类</span>
  43. <span class="shop-container-filter-item-brand">滤清器类</span>
  44. <span class="shop-container-filter-item-brand">滤清器类</span>
  45. <span class="shop-container-filter-item-brand">滤清器类</span>
  46. <span class="shop-container-filter-item-brand">滤清器类</span>
  47. <span class="shop-container-filter-item-brand">滤清器类</span>
  48. <span class="shop-container-filter-item-brand">滤清器类</span>
  49. <span class="shop-container-filter-item-brand">滤清器类</span>
  50. <span class="shop-container-filter-item-brand">滤清器类</span>
  51. <span class="shop-container-filter-item-brand">滤清器类</span>
  52. <span class="shop-container-filter-item-brand">滤清器类</span>
  53. <span class="shop-container-filter-item-brand">滤清器类</span>
  54. <span class="shop-container-filter-item-brand">滤清器类</span>
  55. </div>
  56. <div id="brand-show" class="shop-container-filter-item-more">展开∨</div>
  57. <div id="brand-hide" class="shop-container-filter-item-more" style="display: none">收起∧</div>
  58. </div>
  59. <div class="shop-container-filter-item dotted-line">
  60. <div class="shop-container-filter-item-title">子品类</div>
  61. <div id="brand-children-filter" class="shop-container-filter-item-container put-container">
  62. <span class="shop-container-filter-item-brand">不限</span>
  63. <span class="shop-container-filter-item-brand checked">滤清器类</span>
  64. <span class="shop-container-filter-item-brand">滤清器类</span>
  65. <span class="shop-container-filter-item-brand">滤清器类</span>
  66. <span class="shop-container-filter-item-brand">滤清器类</span>
  67. <span class="shop-container-filter-item-brand">滤清器类</span>
  68. <span class="shop-container-filter-item-brand">滤清器类</span>
  69. <span class="shop-container-filter-item-brand">滤清器类</span>
  70. <span class="shop-container-filter-item-brand">滤清器类</span>
  71. </div>
  72. <div id="brand-children-show" class="shop-container-filter-item-more">展开∨</div>
  73. <div id="brand-children-hide" class="shop-container-filter-item-more" style="display: none">收起∧</div>
  74. </div>
  75. <div class="shop-container-filter-item">
  76. <div class="shop-container-filter-item-title">品牌</div>
  77. <div class="shop-container-filter-item-container">
  78. <span class="shop-container-filter-item-brand checked">不限</span>
  79. <span class="shop-container-filter-item-brand">马牌</span>
  80. </div>
  81. </div>
  82. </div>
  83. <div class="shop-container-filter-box-wrapper">
  84. <div class="shop-container-filter-item">
  85. <div class="shop-container-filter-item-title">配件列表</div>
  86. <div class="shop-container-filter-item-container">
  87. <div class="shop-container-filter-item-container-top-filter filtered">库存 ↑↓ </div>
  88. <div class="shop-container-filter-item-container-top-filter">价格 ↑↓</div>
  89. <div class="shop-container-filter-item-container-top-filter-2"><input type="checkbox" name="favorite" value="1" />仅显示有货</div>
  90. </div>
  91. </div>
  92. </div>
  93. </div>
  94. <div class="shop-container-table-box">
  95. <table>
  96. <colgroup>
  97. <col width="8%">
  98. <col width="15%">
  99. <col width="15%">
  100. <col width="10%">
  101. <col width="10%">
  102. <col width="10%">
  103. <col width="10%">
  104. <col width="8%">
  105. <col width="8%">
  106. </colgroup>
  107. <thead>
  108. <tr>
  109. <th>图片</th>
  110. <th>品牌/名称/供应商编码</th>
  111. <th>规格型号/出厂编码</th>
  112. <th>包装规格</th>
  113. <th>价格</th>
  114. <th>商品品质/产地</th>
  115. <th>适配车型</th>
  116. <th>替换件</th>
  117. <th>数量</th>
  118. <th>操作</th>
  119. </tr>
  120. </thead>
  121. <tbody>
  122. <tr>
  123. <td>
  124. <img
  125. src="https://upload.jianshu.io/users/upload_avatars/14368237/e85f3cbe-9fc7-46e1-b43e-eaa734694690.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/90/h/90/format/webp"
  126. alt="">
  127. </td>
  128. <td>
  129. <div class="td-containe">
  130. <p>品牌/名称</p>
  131. <span>2218-18MMX25M</span>
  132. </div>
  133. </td>
  134. <td>
  135. <div class="td-containe">
  136. <span>2218-18MMX25M</span>
  137. <span>2218-18MMX25M</span>
  138. </div>
  139. </td>
  140. <td>
  141. <span>包装规格</span>
  142. </td>
  143. <td>
  144. <span><span class="rmb-title">¥400.00</span>(单位)</span>
  145. </td>
  146. <td>
  147. <span>原厂</span>
  148. <span>北京</span>
  149. </td>
  150. <td>
  151. <div class="td-containe">
  152. <span>适配车型适配车型,多了换行展示多了很长很长很长适配车型适配车型,多了换行展示多了很长很长很长</span>
  153. </div>
  154. </td>
  155. <td>
  156. <span class="color-blue">32</span>
  157. </td>
  158. <td>
  159. <div class="count-input">
  160. <div class="count-input-btn count-input-btn-add">+</div>
  161. <input type="text" value="1">
  162. <div class="count-input-btn count-input-btn-sub">-</div>
  163. </div>
  164. </td>
  165. <td>
  166. <i class="icon-shopcar"></i>
  167. </td>
  168. </tr>
  169. <tr>
  170. <td>
  171. <img src="https://upload.jianshu.io/users/upload_avatars/14368237/e85f3cbe-9fc7-46e1-b43e-eaa734694690.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/90/h/90/format/webp" alt="">
  172. </td>
  173. <td>
  174. <div class="td-containe">
  175. <p>品牌/名称</p>
  176. <span>2218-18MMX25M</span>
  177. </div>
  178. </td>
  179. <td>
  180. <div class="td-containe">
  181. <span>2218-18MMX25M</span>
  182. <span>2218-18MMX25M</span>
  183. </div>
  184. </td>
  185. <td>
  186. <span>包装规格</span>
  187. </td>
  188. <td>
  189. <span><span class="rmb-title">¥400.00</span>(单位)</span>
  190. </td>
  191. <td>
  192. <span>原厂</span>
  193. <span>北京</span>
  194. </td>
  195. <td>
  196. <div class="td-containe">
  197. <span>适配车型适配车型,多了换行展示多了很长很长很长适配车型适配车型,多了换行展示多了很长很长很长</span>
  198. </div>
  199. </td>
  200. <td>
  201. <span class="color-blue">32</span>
  202. </td>
  203. <td>
  204. <div class="count-input">
  205. <div class="count-input-btn count-input-btn-add">+</div>
  206. <input type="text" value="1">
  207. <div class="count-input-btn count-input-btn-sub">-</div>
  208. </div>
  209. </td>
  210. <td>
  211. <i class="icon-shopcar"></i>
  212. </td>
  213. </tr>
  214. </tbody>
  215. </table>
  216. </div>
  217. </div>
  218. </div>
  219. </body>
  220. <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
  221. <script src="../../layui/layui.all.js"></script>
  222. <script type="text/javascript">
  223. $(function () {
  224. $('.count-input-btn-add').on('click',function (e) {
  225. if($(e.target).parent().hasClass('count-input-disabled')) return
  226. $(e.target).parent().children('input').attr('value',~~$(e.target).parent().children('input').attr('value')+1)
  227. })
  228. $('.count-input-btn-sub').on('click',function (e) {
  229. if($(e.target).parent().hasClass('count-input-disabled')) return
  230. $(e.target).parent().children('input').attr('value',~~$(e.target).parent().children('input').attr('value')-1>0?~~$(e.target).parent().children('input').attr('value')-1:1)
  231. })
  232. $('#brand-show').on('click',function (e) {
  233. $('#brand-hide').show()
  234. $('#brand-show').hide()
  235. $('#brand-filter').removeClass('put-container')
  236. })
  237. $('#brand-hide').on('click',function (e) {
  238. $('#brand-hide').hide()
  239. $('#brand-show').show()
  240. $('#brand-filter').addClass('put-container')
  241. })
  242. $('#brand-children-show').on('click',function (e) {
  243. $('#brand-children-hide').show()
  244. $('#brand-children-show').hide()
  245. $('#brand-children-filter').removeClass('put-container')
  246. })
  247. $('#brand-children-hide').on('click',function (e) {
  248. $('#brand-children-hide').hide()
  249. $('#brand-children-show').show()
  250. $('#brand-children-filter').addClass('put-container')
  251. })
  252. })
  253. </script>
  254. </html>