shopCart.wxss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638
  1. @import "/lionfish_comshop/resource/css/vip.wxss";
  2. .empty {
  3. background: #fff;
  4. padding: 50rpx 0 80rpx;
  5. margin-bottom: 50rpx;
  6. display: flex;
  7. align-items: center;
  8. justify-content: center;
  9. flex-direction: column;
  10. }
  11. .empty.pos-a {
  12. width: 100%;
  13. height: 100%;
  14. position: fixed;
  15. left: 0;
  16. top: 0;
  17. padding: 0;
  18. }
  19. .empty image {
  20. width: 218rpx;
  21. height: 218rpx;
  22. margin-bottom: 30rpx;
  23. }
  24. .empty .h1 {
  25. color: #666;
  26. font-size: 30rpx;
  27. line-height: 30rpx;
  28. margin-bottom: 60rpx;
  29. }
  30. .empty .btn {
  31. width: 310rpx;
  32. height: 96rpx;
  33. border-radius: 20rpx;
  34. background: linear-gradient(to right, #ff5041, #ff695c);
  35. line-height: 96rpx;
  36. text-align: center;
  37. color: #fff;
  38. font-size: 30rpx;
  39. font-weight: bold;
  40. }
  41. .checkbox {
  42. width: 50rpx;
  43. height: 50rpx;
  44. display: flex;
  45. justify-content: center;
  46. }
  47. .checkbox .checkbox-checked {
  48. font-size: 42rpx;
  49. }
  50. .shop-cart-content {
  51. padding: 30rpx 20rpx 130rpx;
  52. }
  53. .pt80 {
  54. padding-top: 114rpx;
  55. }
  56. .pb100 {
  57. padding-bottom: 140rpx;
  58. }
  59. .shop-cart-content .card-group {
  60. margin-bottom: 20rpx;
  61. }
  62. .shop-cart-content .card-group .card-header {
  63. display: flex;
  64. justify-content: space-between;
  65. align-items: flex-start;
  66. padding: 28rpx 20rpx;
  67. border-bottom: 2rpx solid #efefef;
  68. }
  69. .shop-cart-content .card-group .card-header .cart-header-left {
  70. display: flex;
  71. align-items: flex-start;
  72. }
  73. .shop-cart-content .card-group .card-header .tag {
  74. font-size: 20rpx;
  75. line-height: 28rpx;
  76. padding: 0 8rpx;
  77. background: #ff5344;
  78. color: #fff;
  79. border-radius: 28rpx;
  80. white-space: nowrap;
  81. margin-right: 10rpx;
  82. font-weight: 500;
  83. }
  84. .shop-cart-content .card-group .card-header .active-msg {
  85. font-size: 26rpx;
  86. line-height: 32rpx;
  87. color: #666;
  88. /* width: 460rpx; */
  89. margin-top: -1rpx;
  90. }
  91. .shop-cart-content .card-group .card-header .i-link {
  92. display: flex;
  93. align-items: center;
  94. flex: 1;
  95. font-size: 26rpx;
  96. line-height: 26rpx;
  97. margin-top: 4rpx;
  98. color: #ff5344;
  99. font-weight: 500;
  100. white-space: nowrap;
  101. }
  102. .shop-cart-content .card-group .card-header .i-link .iconfont {
  103. font-size: 18rpx;
  104. margin-left: 6rpx;
  105. }
  106. .fixed-bar {
  107. position: fixed;
  108. left: 0;
  109. right: 0;
  110. bottom: 98rpx;
  111. background: #fff;
  112. z-index: 100;
  113. }
  114. .cart-bar {
  115. width: 100%;
  116. height: 96rpx;
  117. display: flex;
  118. align-items: center;
  119. justify-content: space-between;
  120. padding-left: 20rpx;
  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 span.line-through {
  154. text-decoration-color: #ff5344;
  155. }
  156. .fixed-bar .fixed-bar-center .total-detail {
  157. margin-top: 12rpx;
  158. color: #666;
  159. font-size: 22rpx;
  160. line-height: 22rpx;
  161. }
  162. .fixed-bar .fixed-bar-center .total-detail span:last-child {
  163. margin-left: 20rpx;
  164. }
  165. .fixed-bar .fixed-bar-btn {
  166. width: 260rpx;
  167. height: 96rpx;
  168. text-align: center;
  169. line-height: 96rpx;
  170. color: #fff;
  171. font-size: 30rpx;
  172. background: #ff5344;
  173. border-radius: 0;
  174. font-weight: bold;
  175. margin: 20rpx;
  176. }
  177. .fixed-bar button.fixed-bar-btn::after {
  178. border: none;
  179. }
  180. .fixed-bar button[disabled].fixed-bar-btn {
  181. background:#ececec;
  182. color:#666;
  183. font-size: 28rpx;
  184. }
  185. .i-card {
  186. width: 710rpx;
  187. border-radius: 20rpx;
  188. background: #fff;
  189. box-shadow: 0 0 40rpx 0 rgba(0, 0, 0, 0.05);
  190. display: flex;
  191. flex-direction: column;
  192. overflow: hidden;
  193. }
  194. /**car item begin***/
  195. .checkbox .checkbox-disabled {
  196. width: 48rpx;
  197. height: 48rpx;
  198. margin-top: 2rpx;
  199. }
  200. .swiper-out-button-content {
  201. height: 100%;
  202. width: 140rpx;
  203. border-bottom: 1rpx solid #efefef;
  204. }
  205. .swiper-out-button-content:last-child {
  206. border: none;
  207. }
  208. .swiper-out-button-content .delete-btn {
  209. padding: 0;
  210. margin: 0;
  211. height: 100%;
  212. background: #ff5344;
  213. display: flex;
  214. align-items: center;
  215. justify-content: center;
  216. color: #fff;
  217. font-size: 28rpx;
  218. }
  219. .cart-item {
  220. display: flex;
  221. align-items: center;
  222. flex-wrap: wrap;
  223. padding: 40rpx 0;
  224. border-bottom: 1rpx solid #efefef;
  225. }
  226. .cart-item .cart-item-checkbox {
  227. width: 90rpx;
  228. height: 100%;
  229. display: flex;
  230. align-items: center;
  231. justify-content: center;
  232. }
  233. .cart-item-img {
  234. width: 180rpx;
  235. height: 180rpx;
  236. margin-right: 30rpx;
  237. position: relative;
  238. }
  239. .cart-item-img .i-class {
  240. width: 180rpx;
  241. height: 180rpx;
  242. }
  243. .cart-item-img .tip {
  244. width: 180rpx;
  245. height: 34rpx;
  246. color: #fff;
  247. font-size: 22rpx;
  248. line-height: 34rpx;
  249. text-align: center;
  250. position: absolute;
  251. bottom: 0;
  252. left: 0;
  253. background: rgba(0, 0, 0, 0.5);
  254. z-index: 100;
  255. }
  256. .cart-item-content {
  257. width: 380rpx;
  258. height: 180rpx;
  259. display: flex;
  260. flex-direction: column;
  261. justify-content: space-between;
  262. }
  263. .cart-item-content .title {
  264. font-size: 26rpx;
  265. color: #444;
  266. line-height: 33rpx;
  267. margin-bottom: 10rpx;
  268. font-weight: bold;
  269. display: -webkit-box;
  270. -webkit-box-orient: vertical;
  271. -webkit-line-clamp: 2;
  272. overflow: hidden;
  273. text-overflow: initial;
  274. white-space: normal;
  275. }
  276. .cart-item-content .title .tag {
  277. font-size: 18rpx;
  278. padding: 2rpx 4rpx;
  279. line-height: 1;
  280. background: #ff5344;
  281. color: #fff;
  282. border-radius: 5rpx;
  283. white-space: nowrap;
  284. margin-right: 5rpx;
  285. }
  286. .cart-item-content .cart-item-content-bottom {
  287. display: flex;
  288. align-items: center;
  289. justify-content: space-between;
  290. position: relative;
  291. }
  292. .cart-item-content .cart-item-content-bottom .input-class {
  293. position: absolute;
  294. right: 0;
  295. bottom: 0;
  296. }
  297. .cart-item-content .spec {
  298. font-size: 22rpx;
  299. color: #aaa;
  300. line-height: 22rpx;
  301. margin-bottom: 10rpx;
  302. }
  303. .cart-item-content .sale-price {
  304. color: #ff5344;
  305. font-size: 20rpx;
  306. line-height: 20rpx;
  307. }
  308. .cart-item-content .sale-price span {
  309. font-size: 36rpx;
  310. line-height: 36rpx;
  311. margin-left: 4rpx;
  312. font-weight: bold;
  313. }
  314. .cart-item-content .delete-icon {
  315. position: absolute;
  316. right: 0;
  317. top: -10rpx;
  318. display: flex;
  319. align-items: center;
  320. font-size: 24rpx;
  321. line-height: 24rpx;
  322. color: #ff695c;
  323. padding: 20rpx;
  324. }
  325. .cart-item-content .delete-icon image {
  326. width: 18rpx;
  327. height: 18rpx;
  328. margin-right: 12rpx;
  329. }
  330. /**car item end**/
  331. .fixed-bar.isIpx {
  332. padding-bottom: calc(constant(safe-area-inset-bottom) + 45rpx);
  333. padding-bottom: calc(env(safe-area-inset-bottom) + 45rpx);
  334. }
  335. /* 满减 */
  336. .cart-item .piece-reduce {
  337. width: 650rpx;
  338. display: flex;
  339. align-items: flex-start;
  340. padding: 20rpx;
  341. box-sizing: border-box;
  342. background: #f9f9f9;
  343. border-radius: 64rpx;
  344. margin: 30rpx auto 0;
  345. font-size: 24rpx;
  346. line-height: 32rpx;
  347. color: #666;
  348. white-space: normal;
  349. }
  350. .cart-item .piece-reduce .tag-content {
  351. height: 32rpx;
  352. display: flex;
  353. align-items: center;
  354. }
  355. .cart-item .piece-reduce .tag {
  356. border-radius: 26rpx;
  357. height: 22rpx;
  358. padding: 0 8rpx;
  359. border: 1rpx solid #ffa49c;
  360. font-size: 20rpx;
  361. line-height: 22rpx;
  362. color: #ff5344;
  363. margin-right: 16rpx;
  364. white-space: nowrap;
  365. margin-top: 3rpx;
  366. font-weight: bold;
  367. }
  368. .diff-money {
  369. margin-right: 10rpx;
  370. color: #666;
  371. }
  372. .diff-money text {
  373. color: #ff5344;
  374. }
  375. .reduce-item+.normal-item {
  376. border-top: 30rpx solid #f6f6f6;
  377. }
  378. /* 20190306 */
  379. .fullreductionInfo {
  380. display: flex;
  381. justify-content: space-between;
  382. align-items: center;
  383. padding: 15rpx 20rpx;
  384. border-bottom: 2rpx solid #efefef;
  385. background-color: #fff;
  386. z-index: 100;
  387. }
  388. .fixed-bar .fullreductionInfo:first-child {
  389. box-shadow: 0 -2px 3px -1px #ccc;
  390. }
  391. .fullreductionInfo .fr-left {
  392. display: inline-block;
  393. margin-right: 20rpx;
  394. }
  395. .fullreductionInfo .fr-left .tag {
  396. font-size: 20rpx;
  397. line-height: 28rpx;
  398. padding: 0 8rpx;
  399. background: #ff5344;
  400. color: #fff;
  401. border-radius: 6rpx;
  402. white-space: nowrap;
  403. margin-right: 10rpx;
  404. font-weight: 500;
  405. }
  406. .fullreductionInfo .active-msg {
  407. font-size: 26rpx;
  408. /* line-height: 32rpx; */
  409. color: #666;
  410. /* margin-top: -1rpx; */
  411. }
  412. .fullreductionInfo .i-link {
  413. display: flex;
  414. align-items: center;
  415. flex: 1;
  416. font-size: 26rpx;
  417. /* line-height: 26rpx; */
  418. /* margin-top: 4rpx; */
  419. color: #ff5344;
  420. font-weight: 500;
  421. white-space: nowrap;
  422. }
  423. .fullreductionInfo .i-link .iconfont {
  424. font-size: 18rpx;
  425. margin-left: 6rpx;
  426. }
  427. .cart-item-img .tag {
  428. position: absolute;
  429. left: 0;
  430. bottom: 0;
  431. background:linear-gradient(to right, #ff5041, #ff994b);
  432. border-radius:0 14rpx 14rpx 0;
  433. padding:0 12rpx;
  434. height:30rpx;
  435. font-size:22rpx;
  436. line-height:30rpx;
  437. color:#fff;
  438. display:inline-block;
  439. align-items:center;
  440. justify-content:center;
  441. width:auto;
  442. max-width:180rpx;
  443. overflow:hidden;
  444. text-overflow:ellipsis;
  445. white-space:nowrap;
  446. }
  447. .cart-item-img .tag.pos-top {
  448. top: 0;
  449. bottom: initial;
  450. }
  451. /* 20190720 */
  452. .cart-tabs {
  453. display: flex;
  454. align-items: center;
  455. text-align: center;
  456. height: 88rpx;
  457. line-height: 88rpx;
  458. background: #fff;
  459. box-shadow: 0 0 3px 0px #ccc;
  460. position: fixed;
  461. top: 0;
  462. left: 0;
  463. right: 0;
  464. z-index: 105;
  465. }
  466. .cart-tabs.hasVip {
  467. top: 85rpx;
  468. }
  469. .cart-tabs-item {
  470. position: relative;
  471. flex: 1;
  472. }
  473. .cart-tabs-item.active {
  474. color: #ff5041;
  475. font-weight: bold;
  476. border-bottom: 2px solid #ff5041;
  477. }
  478. .h88 {
  479. height: 88rpx;
  480. }
  481. .h72 {
  482. height: 72rpx;
  483. }
  484. .vipprice {
  485. color: #964c00;
  486. font-size: 20rpx;
  487. padding: 2rpx 8rpx;
  488. border-radius: 6rpx;
  489. font-weight: bold;
  490. margin-left: 10rpx;
  491. background: linear-gradient(to right, #ffeea2, #ffe689);
  492. }
  493. .fixed-vip {
  494. position: fixed;
  495. top: 0;
  496. left: 0;
  497. right: 0;
  498. padding: 10rpx 20rpx 20rpx;
  499. background: #fff;
  500. z-index: 100;
  501. box-shadow: 0 0 3px 0px #ccc;
  502. }
  503. .fixed-vip.hasVip {
  504. box-shadow: none;
  505. padding-bottom: 0;
  506. }
  507. .fixed-vip .vip {
  508. margin-top: 0;
  509. }
  510. /* 失效处理 */
  511. .invalid-head {
  512. padding: 0 30rpx;
  513. line-height: 90rpx;
  514. color: #999;
  515. border-bottom: 1rpx solid #efefef;
  516. font-size: 26rpx;
  517. }
  518. .invalid-card-group {
  519. box-shadow: none!important;
  520. }
  521. .invalid-head .iconfont {
  522. font-size: 28rpx;
  523. }
  524. .invalid-card-group .cart-item-content .title {
  525. color: #b0b0b0;
  526. }
  527. .invalid-tip {
  528. background: #c6c6c6;
  529. font-size: 20rpx;
  530. padding: 4rpx 8rpx;
  531. color: #fff;
  532. line-height: 1;
  533. border-radius: 6rpx;
  534. }
  535. .scroll-full {
  536. position: relative;
  537. overflow-x: auto;
  538. overflow-y: hidden;
  539. white-space:nowrap;
  540. margin-right: 5rpx;
  541. line-height: 34rpx;
  542. }
  543. ::-webkit-scrollbar {
  544. width: 0;
  545. height: 0;
  546. color: transparent;
  547. }
  548. .theader {
  549. padding: 28rpx 20rpx;
  550. border-bottom: 2rpx solid #efefef;
  551. }