购物车.html 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  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-table-box">
  14. <table>
  15. <colgroup>
  16. <col width="7%">
  17. <col width="8%">
  18. <col width="13%">
  19. <col width="11%">
  20. <col width="7%">
  21. <col width="9%">
  22. <col width="13%">
  23. <col width="5%">
  24. <col width="8%">
  25. <col width="5%">
  26. <col width="5%">
  27. </colgroup>
  28. <thead>
  29. <tr>
  30. <th>
  31. <div class="th-center">
  32. <input type="checkbox" name="favorite" value="1"/>全选
  33. </div>
  34. </th>
  35. <th>图片</th>
  36. <th>品牌/名称/供应商编码</th>
  37. <th>规格型号/出厂编码</th>
  38. <th>包装规格</th>
  39. <th>商品品质/产地</th>
  40. <th>适配车型</th>
  41. <th class="table-items-center">替换件</th>
  42. <th class="table-items-center">单价</th>
  43. <th class="table-items-center">数量</th>
  44. <th class="table-items-center">小计</th>
  45. <th>操作</th>
  46. </tr>
  47. </thead>
  48. <tbody>
  49. <tr>
  50. <td>
  51. <input class="ml10" type="checkbox" name="favorite" value="1"/>
  52. </td>
  53. <td>
  54. <img
  55. 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"
  56. alt="">
  57. </td>
  58. <td>
  59. <div class="td-containe">
  60. <p>品牌/名称</p>
  61. <span>2218-18MMX25M</span>
  62. </div>
  63. </td>
  64. <td>
  65. <div class="td-containe">
  66. <span>2218-18MMX25M</span>
  67. <span>2218-18MMX25M</span>
  68. </div>
  69. </td>
  70. <td>
  71. <span>包装规格</span>
  72. </td>
  73. <td>
  74. <span>原厂</span>
  75. <span>北京</span>
  76. </td>
  77. <td>
  78. <div class="td-containe">
  79. <span>适配车型适配车型,多了换行展示多了很长很长很长适配车型适配车型,多了换行展示多了很长很长很长</span>
  80. </div>
  81. </td>
  82. <td>
  83. <span class="color-blue table-items-center">32</span>
  84. </td>
  85. <td>
  86. <span class="table-items-center"><span class="rmb-title-2">¥400.00</span>(单位)</span>
  87. </td>
  88. <td>
  89. <div class="count-input">
  90. <div class="count-input-btn count-input-btn-add">+</div>
  91. <input type="text" value="1">
  92. <div class="count-input-btn count-input-btn-sub">-</div>
  93. </div>
  94. </td>
  95. <td>
  96. <span class="table-items-center"><span class="rmb-title">¥4000.00</span></span>
  97. </td>
  98. <td>
  99. <a href="javascript:;">删除</a>
  100. </td>
  101. </tr>
  102. <tr>
  103. <td>
  104. <input class="ml10" type="checkbox" name="favorite" value="1"/>
  105. </td>
  106. <td>
  107. <img
  108. 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"
  109. alt="">
  110. </td>
  111. <td>
  112. <div class="td-containe">
  113. <p>品牌/名称</p>
  114. <span>2218-18MMX25M</span>
  115. </div>
  116. </td>
  117. <td>
  118. <div class="td-containe">
  119. <span>2218-18MMX25M</span>
  120. <span>2218-18MMX25M</span>
  121. </div>
  122. </td>
  123. <td>
  124. <span>包装规格</span>
  125. </td>
  126. <td>
  127. <span>原厂</span>
  128. <span>北京</span>
  129. </td>
  130. <td>
  131. <div class="td-containe">
  132. <span>适配车型适配车型,多了换行展示多了很长很长很长适配车型适配车型,多了换行展示多了很长很长很长</span>
  133. </div>
  134. </td>
  135. <td>
  136. <span class="color-blue">32</span>
  137. </td>
  138. <td>
  139. <span class="table-items-center"><span class="rmb-title-2">¥400.00</span>(单位)</span>
  140. </td>
  141. <td>
  142. <div class="count-input">
  143. <div class="count-input-btn count-input-btn-add">+</div>
  144. <input type="text" value="1">
  145. <div class="count-input-btn count-input-btn-sub">-</div>
  146. </div>
  147. </td>
  148. <td>
  149. <span><span class="rmb-title">¥4000.00</span></span>
  150. </td>
  151. <td>
  152. <a href="javascript:;">删除</a>
  153. </td>
  154. </tr>
  155. <tr class="table-interval">
  156. <td colspan="12">失效商品</td>
  157. </tr>
  158. <tr class="disabled-tr">
  159. <td>
  160. <div class="disabled-tag">失效</div>
  161. </td>
  162. <td>
  163. <img
  164. 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"
  165. alt="">
  166. </td>
  167. <td>
  168. <div class="td-containe">
  169. <p>品牌/名称</p>
  170. <span>2218-18MMX25M</span>
  171. </div>
  172. </td>
  173. <td>
  174. <div class="td-containe">
  175. <span>2218-18MMX25M</span>
  176. <span>2218-18MMX25M</span>
  177. </div>
  178. </td>
  179. <td>
  180. <span>包装规格</span>
  181. </td>
  182. <td>
  183. <span>原厂</span>
  184. <span>北京</span>
  185. </td>
  186. <td>
  187. <div class="td-containe">
  188. <span>适配车型适配车型,多了换行展示多了很长很长很长适配车型适配车型,多了换行展示多了很长很长很长</span>
  189. </div>
  190. </td>
  191. <td>
  192. <span>32</span>
  193. </td>
  194. <td>
  195. <span><span class="rmb-title-2">¥400.00</span>(单位)</span>
  196. </td>
  197. <td>
  198. <div class="count-input count-input-disabled">
  199. <div class="count-input-btn count-input-btn-add ">+</div>
  200. <input type="text" value="1">
  201. <div class="count-input-btn count-input-btn-sub">-</div>
  202. </div>
  203. </td>
  204. <td>
  205. <span><span class="rmb-title">¥4000.00</span></span>
  206. </td>
  207. <td>
  208. <a href="javascript:;">删除</a>
  209. </td>
  210. </tr>
  211. </tbody>
  212. </table>
  213. <div class="table-operation">
  214. <input type="checkbox" name="favorite" value="1"/><span class="ml10">全选</span>
  215. <a class="ml10" href="javascript:;">删除</a>
  216. <a class="ml10" href="javascript:;">清空失效宝贝</a>
  217. <div class="right-oper">
  218. <span class="ml10">共选商品 <span class="color-orange">3</span>种,总数量<span class="color-orange">3</span></span>
  219. <span class="ml10">合计金额 <b class="color-orange">¥111111</b></span>
  220. <div class="buy-btn ml10">立即购买</div>
  221. </div>
  222. </div>
  223. </div>
  224. </div>
  225. </div>
  226. </body>
  227. <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
  228. <script type="text/javascript">
  229. $(function () {
  230. $('.count-input-btn-add').on('click',function (e) {
  231. if($(e.target).parent().hasClass('count-input-disabled')) return
  232. $(e.target).parent().children('input').attr('value',~~$(e.target).parent().children('input').attr('value')+1)
  233. })
  234. $('.count-input-btn-sub').on('click',function (e) {
  235. if($(e.target).parent().hasClass('count-input-disabled')) return
  236. $(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)
  237. })
  238. })
  239. </script>