shopCart.wxss 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515
  1. .empty {
  2. background: #fff;
  3. padding: 50rpx 0 80rpx;
  4. margin-bottom: 50rpx;
  5. display: flex;
  6. align-items: center;
  7. justify-content: center;
  8. flex-direction: column;
  9. }
  10. .empty.pos-a {
  11. width: 100%;
  12. height: 100%;
  13. position: fixed;
  14. left: 0;
  15. top: 0;
  16. padding: 0;
  17. }
  18. .empty image {
  19. width: 218rpx;
  20. height: 218rpx;
  21. margin-bottom: 30rpx;
  22. }
  23. .empty .h1 {
  24. color: #666;
  25. font-size: 30rpx;
  26. line-height: 30rpx;
  27. margin-bottom: 60rpx;
  28. }
  29. .empty .btn {
  30. width: 310rpx;
  31. height: 96rpx;
  32. border-radius: 20rpx;
  33. background: linear-gradient(to right, #ff5041, #ff695c);
  34. line-height: 96rpx;
  35. text-align: center;
  36. color: #fff;
  37. font-size: 30rpx;
  38. font-weight: bold;
  39. }
  40. .checkbox {
  41. width: 50rpx;
  42. height: 50rpx;
  43. display: flex;
  44. justify-content: center;
  45. }
  46. .checkbox .checkbox-checked {
  47. width: 48rpx;
  48. height: 48rpx;
  49. }
  50. .checkbox .checkbox-disabled {
  51. width: 48rpx;
  52. height: 48rpx;
  53. margin-top: 2rpx;
  54. }
  55. .shop-cart-content {
  56. padding: 30rpx 20rpx 116rpx;
  57. }
  58. .pt80 {
  59. padding-top: 114rpx;
  60. }
  61. .shop-cart-content .card-group {
  62. margin-bottom: 20rpx;
  63. }
  64. .shop-cart-content .card-group .card-header {
  65. display: flex;
  66. justify-content: space-between;
  67. align-items: flex-start;
  68. padding: 28rpx 20rpx;
  69. border-bottom: 2rpx solid #efefef;
  70. }
  71. .shop-cart-content .card-group .card-header .cart-header-left {
  72. display: flex;
  73. align-items: flex-start;
  74. }
  75. .shop-cart-content .card-group .card-header .tag {
  76. font-size: 20rpx;
  77. line-height: 28rpx;
  78. padding: 0 8rpx;
  79. background: #ff5344;
  80. color: #fff;
  81. border-radius: 28rpx;
  82. white-space: nowrap;
  83. margin-right: 10rpx;
  84. font-weight: 500;
  85. }
  86. .shop-cart-content .card-group .card-header .active-msg {
  87. font-size: 26rpx;
  88. line-height: 32rpx;
  89. color: #666;
  90. /* width: 460rpx; */
  91. margin-top: -1rpx;
  92. }
  93. .shop-cart-content .card-group .card-header .i-link {
  94. display: flex;
  95. align-items: center;
  96. flex: 1;
  97. font-size: 26rpx;
  98. line-height: 26rpx;
  99. margin-top: 4rpx;
  100. color: #ff5344;
  101. font-weight: 500;
  102. white-space: nowrap;
  103. }
  104. .shop-cart-content .card-group .card-header .i-link image {
  105. width: 10rpx;
  106. height: 16rpx;
  107. margin-left: 6rpx;
  108. }
  109. .fixed-bar {
  110. position: fixed;
  111. left: 0;
  112. bottom: 98rpx;
  113. background: #fff;
  114. width: 100%;
  115. height: 96rpx;
  116. display: flex;
  117. align-items: center;
  118. justify-content: space-between;
  119. padding-left: 20rpx;
  120. z-index: 100;
  121. }
  122. .fixed-bar .cart-item-checkbox {
  123. display: flex;
  124. font-size: 26rpx;
  125. align-items: center;
  126. color: #444;
  127. white-space: nowrap;
  128. }
  129. .fixed-bar .cart-item-checkbox checkbox-group {
  130. margin-right: 10rpx;
  131. }
  132. .fixed-bar .fixed-bar-center {
  133. display: flex;
  134. flex-direction: column;
  135. align-items: flex-end;
  136. justify-content: center;
  137. width: 560rpx;
  138. flex: 1;
  139. }
  140. .fixed-bar .fixed-bar-center .total {
  141. display: flex;
  142. text-align: right;
  143. color: #444;
  144. font-size: 28rpx;
  145. line-height: 30rpx;
  146. white-space: nowrap;
  147. }
  148. .fixed-bar .fixed-bar-center .total span {
  149. font-size: 30rpx;
  150. font-weight: bold;
  151. color: #ff5344;
  152. }
  153. .fixed-bar .fixed-bar-center .total-detail {
  154. margin-top: 12rpx;
  155. color: #666;
  156. font-size: 22rpx;
  157. line-height: 22rpx;
  158. }
  159. .fixed-bar .fixed-bar-center .total-detail span:last-child {
  160. margin-left: 20rpx;
  161. }
  162. .fixed-bar .fixed-bar-btn {
  163. width: 260rpx;
  164. height: 96rpx;
  165. text-align: center;
  166. line-height: 96rpx;
  167. color: #fff;
  168. font-size: 30rpx;
  169. background: #ff5344;
  170. border-radius: 0;
  171. font-weight: bold;
  172. margin: 20rpx;
  173. }
  174. .fixed-bar button.fixed-bar-btn::after {
  175. border: none;
  176. }
  177. .fixed-bar button[disabled].fixed-bar-btn {
  178. background:#ececec;
  179. color:#666;
  180. font-size: 28rpx;
  181. }
  182. .i-card {
  183. width: 710rpx;
  184. border-radius: 20rpx;
  185. background: #fff;
  186. box-shadow: 0 0 40rpx 0 rgba(0, 0, 0, 0.05);
  187. display: flex;
  188. flex-direction: column;
  189. overflow: hidden;
  190. }
  191. /**car item begin***/
  192. .checkbox {
  193. width: 50rpx;
  194. height: 50rpx;
  195. display: flex;
  196. justify-content: center;
  197. }
  198. .checkbox .checkbox-checked {
  199. width: 48rpx;
  200. height: 48rpx;
  201. }
  202. .checkbox .checkbox-disabled {
  203. width: 48rpx;
  204. height: 48rpx;
  205. margin-top: 2rpx;
  206. }
  207. .swiper-out-button-content {
  208. height: 100%;
  209. width: 140rpx;
  210. border-bottom: 1rpx solid #efefef;
  211. }
  212. .swiper-out-button-content:last-child {
  213. border: none;
  214. }
  215. .swiper-out-button-content .delete-btn {
  216. padding: 0;
  217. margin: 0;
  218. height: 100%;
  219. background: #ff5344;
  220. display: flex;
  221. align-items: center;
  222. justify-content: center;
  223. color: #fff;
  224. font-size: 28rpx;
  225. }
  226. .cart-item {
  227. display: flex;
  228. align-items: center;
  229. flex-wrap: wrap;
  230. padding: 40rpx 0;
  231. border-bottom: 1rpx solid #efefef;
  232. }
  233. .cart-item .cart-item-checkbox {
  234. width: 90rpx;
  235. height: 100%;
  236. display: flex;
  237. align-items: center;
  238. justify-content: center;
  239. }
  240. .cart-item-img {
  241. width: 180rpx;
  242. height: 180rpx;
  243. margin-right: 30rpx;
  244. position: relative;
  245. }
  246. .cart-item-img .i-class {
  247. width: 180rpx;
  248. height: 180rpx;
  249. }
  250. .cart-item-img .tip {
  251. width: 180rpx;
  252. height: 34rpx;
  253. color: #fff;
  254. font-size: 22rpx;
  255. line-height: 34rpx;
  256. text-align: center;
  257. position: absolute;
  258. bottom: 0;
  259. left: 0;
  260. background: rgba(0, 0, 0, 0.5);
  261. }
  262. .cart-item-content {
  263. width: 380rpx;
  264. height: 180rpx;
  265. display: flex;
  266. flex-direction: column;
  267. justify-content: space-between;
  268. }
  269. .cart-item-content .title {
  270. font-size: 26rpx;
  271. color: #444;
  272. line-height: 32rpx;
  273. margin-bottom: 10rpx;
  274. font-weight: bold;
  275. display: -webkit-box;
  276. -webkit-box-orient: vertical;
  277. -webkit-line-clamp: 2;
  278. overflow: hidden;
  279. text-overflow: initial;
  280. white-space: normal;
  281. }
  282. .cart-item-content .cart-item-content-bottom {
  283. display: flex;
  284. align-items: center;
  285. justify-content: space-between;
  286. position: relative;
  287. }
  288. .cart-item-content .cart-item-content-bottom .input-class {
  289. position: absolute;
  290. right: 0;
  291. bottom: 0;
  292. }
  293. .cart-item-content .spec {
  294. font-size: 22rpx;
  295. color: #aaa;
  296. line-height: 22rpx;
  297. margin-bottom: 10rpx;
  298. }
  299. .cart-item-content .sale-price {
  300. color: #ff5344;
  301. font-size: 20rpx;
  302. line-height: 20rpx;
  303. }
  304. .cart-item-content .sale-price span {
  305. font-size: 36rpx;
  306. line-height: 36rpx;
  307. margin-left: 4rpx;
  308. font-weight: bold;
  309. }
  310. .cart-item-content .delete-icon {
  311. position: absolute;
  312. right: 0;
  313. top: -10rpx;
  314. display: flex;
  315. align-items: center;
  316. font-size: 24rpx;
  317. line-height: 24rpx;
  318. color: #ff695c;
  319. padding: 20rpx;
  320. }
  321. .cart-item-content .delete-icon image {
  322. width: 18rpx;
  323. height: 18rpx;
  324. margin-right: 12rpx;
  325. }
  326. /**car item end**/
  327. .isIpx {
  328. bottom: 140rpx;
  329. }
  330. /* 满减 */
  331. .cart-item .piece-reduce {
  332. width: 650rpx;
  333. display: flex;
  334. align-items: flex-start;
  335. padding: 20rpx;
  336. box-sizing: border-box;
  337. background: #f9f9f9;
  338. border-radius: 64rpx;
  339. margin: 30rpx auto 0;
  340. font-size: 24rpx;
  341. line-height: 32rpx;
  342. color: #666;
  343. white-space: normal;
  344. }
  345. .cart-item .piece-reduce .tag-content {
  346. height: 32rpx;
  347. display: flex;
  348. align-items: center;
  349. }
  350. .cart-item .piece-reduce .tag {
  351. border-radius: 26rpx;
  352. height: 22rpx;
  353. padding: 0 8rpx;
  354. border: 1rpx solid #ffa49c;
  355. font-size: 20rpx;
  356. line-height: 22rpx;
  357. color: #ff5344;
  358. margin-right: 16rpx;
  359. white-space: nowrap;
  360. margin-top: 3rpx;
  361. font-weight: bold;
  362. }
  363. .diff-money {
  364. margin-right: 10rpx;
  365. color: #666;
  366. }
  367. .diff-money text {
  368. color: #ff5344;
  369. }
  370. .reduce-item+.normal-item {
  371. border-top: 30rpx solid #f6f6f6;
  372. }
  373. /* 20190306 */
  374. .fullreductionInfo {
  375. position:fixed;
  376. left:0;
  377. top: 0;
  378. right: 0;
  379. display: flex;
  380. justify-content: space-between;
  381. align-items: flex-start;
  382. padding: 28rpx 20rpx;
  383. border-bottom: 2rpx solid #efefef;
  384. background-color: #fff;
  385. z-index: 100;
  386. }
  387. .fullreductionInfo .fr-left {
  388. display: flex;
  389. align-items: flex-start;
  390. }
  391. .fullreductionInfo .fr-left .tag {
  392. font-size: 20rpx;
  393. line-height: 28rpx;
  394. padding: 0 8rpx;
  395. background: #ff5344;
  396. color: #fff;
  397. border-radius: 6rpx;
  398. white-space: nowrap;
  399. margin-right: 10rpx;
  400. font-weight: 500;
  401. }
  402. .fullreductionInfo .fr-left .active-msg {
  403. font-size: 26rpx;
  404. line-height: 32rpx;
  405. color: #666;
  406. margin-top: -1rpx;
  407. }
  408. .fullreductionInfo .i-link {
  409. display: flex;
  410. align-items: center;
  411. flex: 1;
  412. font-size: 26rpx;
  413. line-height: 26rpx;
  414. margin-top: 4rpx;
  415. color: #ff5344;
  416. font-weight: 500;
  417. white-space: nowrap;
  418. }
  419. .fullreductionInfo .i-link image {
  420. width: 10rpx;
  421. height: 16rpx;
  422. margin-left: 6rpx;
  423. }
  424. .cart-item-img .tag {
  425. position: absolute;
  426. left: 0;
  427. bottom: 0;
  428. background:linear-gradient(to right, #ff5041, #ff994b);
  429. border-radius:0 14rpx 14rpx 0;
  430. padding:0 12rpx;
  431. height:30rpx;
  432. font-size:22rpx;
  433. line-height:30rpx;
  434. color:#fff;
  435. display:inline-block;
  436. align-items:center;
  437. justify-content:center;
  438. width:auto;
  439. max-width:180rpx;
  440. overflow:hidden;
  441. text-overflow:ellipsis;
  442. white-space:nowrap;
  443. }
  444. .cart-item-img .tag.pos-top {
  445. top: 0;
  446. bottom: initial;
  447. }