cart.scss 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. .cart {
  2. margin: 20px auto;
  3. width: $width;
  4. nav {
  5. overflow: hidden;
  6. padding: 10px;
  7. background: #fff;
  8. margin-bottom: 10px;
  9. li {
  10. float: left;
  11. &:nth-child(1) {
  12. width: 3%;
  13. }
  14. &:nth-child(2) {
  15. width: 55%;
  16. }
  17. &:nth-child(3) {
  18. width: 10%;
  19. }
  20. &:nth-child(4) {
  21. width: 15%;
  22. }
  23. &:nth-child(5) {
  24. width: 10%;
  25. }
  26. &:nth-child(6) {
  27. width: 7%;
  28. }
  29. }
  30. }
  31. .list {
  32. .item {
  33. margin-bottom: 20px;
  34. .head {
  35. padding: 10px;
  36. background: #fff;
  37. border-bottom: 1px solid #eeeeee;
  38. a {
  39. margin: 0 10px 0 20px;
  40. }
  41. }
  42. ul {
  43. overflow: hidden;
  44. padding: 10px;
  45. background: #fff;
  46. li {
  47. float: left;
  48. line-height: 60px;
  49. &:nth-child(1) {
  50. width: 3%;
  51. margin-left: 20px;
  52. }
  53. &:nth-child(2) {
  54. width: 53.3%;
  55. line-height: inherit;
  56. .img-wrap {
  57. width: 60px;
  58. height: 60px;
  59. float: left;
  60. margin-right: 10px;
  61. cursor: pointer;
  62. }
  63. .info-wrap {
  64. margin-left: 70px;
  65. cursor: pointer;
  66. h5 {
  67. font-weight: normal;
  68. font-size: $ns-font-size-base;
  69. display: -webkit-box;
  70. -webkit-box-orient: vertical;
  71. -webkit-line-clamp: 2;
  72. overflow: hidden;
  73. margin-right: 10px;
  74. &:hover {
  75. color: $base-color;
  76. }
  77. }
  78. span {
  79. font-size: $ns-font-size-sm;
  80. color: #9a9a9a;
  81. }
  82. }
  83. }
  84. &:nth-child(3) {
  85. width: 10%;
  86. }
  87. &:nth-child(4) {
  88. width: 15%;
  89. .el-input-number--mini {
  90. width: 100px;
  91. }
  92. }
  93. &:nth-child(5) {
  94. width: 10%;
  95. }
  96. &:nth-child(6) {
  97. width: 7%;
  98. }
  99. }
  100. }
  101. }
  102. }
  103. .lose-list {
  104. margin-bottom: 20px;
  105. .head {
  106. padding: 10px;
  107. background: #fff;
  108. border-bottom: 1px solid #eeeeee;
  109. span {
  110. margin: 0 5px;
  111. font-weight: bold;
  112. font-size: 16px;
  113. }
  114. }
  115. ul {
  116. overflow: hidden;
  117. padding: 10px;
  118. background: #f0f0f0;
  119. li {
  120. float: left;
  121. line-height: 60px;
  122. color: #9a9a9a;
  123. &:nth-child(1) {
  124. width: 3%;
  125. margin-left: 5px;
  126. margin-right: 15px;
  127. }
  128. &:nth-child(2) {
  129. width: 53.3%;
  130. line-height: inherit;
  131. .img-wrap {
  132. width: 60px;
  133. height: 60px;
  134. float: left;
  135. margin-right: 10px;
  136. }
  137. .info-wrap {
  138. margin-left: 70px;
  139. cursor: pointer;
  140. h5 {
  141. font-weight: normal;
  142. font-size: $ns-font-size-base;
  143. display: -webkit-box;
  144. -webkit-box-orient: vertical;
  145. -webkit-line-clamp: 2;
  146. overflow: hidden;
  147. margin-right: 10px;
  148. }
  149. span {
  150. font-size: $ns-font-size-sm;
  151. }
  152. }
  153. }
  154. &:nth-child(3) {
  155. width: 10%;
  156. }
  157. &:nth-child(4) {
  158. width: 15%;
  159. .el-input-number--mini {
  160. width: 100px;
  161. }
  162. }
  163. &:nth-child(5) {
  164. width: 10%;
  165. }
  166. &:nth-child(6) {
  167. width: 7%;
  168. }
  169. }
  170. }
  171. }
  172. footer {
  173. background-color: #fff;
  174. margin-bottom: 20px;
  175. padding: 10px;
  176. .operation {
  177. display: inline-block;
  178. vertical-align: middle;
  179. margin-left: 20px;
  180. li {
  181. float: left;
  182. margin-right: 30px;
  183. }
  184. }
  185. .sum-wrap {
  186. float: right;
  187. .selected-sum {
  188. display: inline-block;
  189. margin-right: 20px;
  190. .total-count {
  191. padding: 0 5px;
  192. font-size: 16px;
  193. color: $base-color;
  194. font-weight: bold;
  195. }
  196. }
  197. .price-wrap {
  198. display: inline-block;
  199. margin-right: 20px;
  200. span {
  201. font-size: $ns-font-size-sm;
  202. }
  203. strong {
  204. font-size: 18px;
  205. }
  206. }
  207. }
  208. }
  209. }
  210. .el-button--text {
  211. color: #333;
  212. &:hover {
  213. color: $base-color;
  214. }
  215. }
  216. .empty-wrap {
  217. padding: 50px 0 60px;
  218. display: flex;
  219. flex-direction: column;
  220. align-items: center;
  221. justify-content: center;
  222. box-sizing: border-box;
  223. img{
  224. width: 400px;
  225. height: 244px;
  226. }
  227. a{
  228. font-size: 14px;
  229. color: #4A4A4A;
  230. &:hover{
  231. color: $base-color;
  232. }
  233. }
  234. }