basket.wxss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606
  1. /* pages/basket/basket.wxss */
  2. page {
  3. height: 100%;
  4. background: #f4f4f4;
  5. }
  6. .my-tabbar .tabbar{
  7. box-shadow: none!important;
  8. border-radius: 0!important;
  9. }
  10. .container {
  11. padding-bottom: 386rpx;
  12. height: auto;
  13. }
  14. .prod-list {
  15. /* margin-bottom: 120rpx; */
  16. }
  17. .shop-item {
  18. margin-top: 20rpx;
  19. background: #fff;
  20. margin: 20rpx 24rpx 0;
  21. border-radius: 16rpx 16rpx 16rpx 16rpx;
  22. }
  23. /* 店铺 */
  24. .choose-btn {
  25. display: inline-block;
  26. }
  27. .shop-item .head-shop {
  28. padding: 20rpx;
  29. display: flex;
  30. align-items: center;
  31. }
  32. .shop-item .head-shop image {
  33. width: 100%;
  34. height: 100%;
  35. display: block;
  36. }
  37. .shop-item .head-shop .shop-box {
  38. flex: 1;
  39. display: flex;
  40. align-items: center;
  41. margin-left: 8rpx;
  42. }
  43. .shop-item .head-shop .shop-icon {
  44. width: 32rpx;
  45. height: 32rpx;
  46. margin-right: 10rpx;
  47. }
  48. .shop-item .head-shop .shop-name {
  49. font-weight: bold;
  50. font-size: 28rpx;
  51. color: #222222;
  52. display: -webkit-box;
  53. -webkit-box-orient: vertical;
  54. -webkit-line-clamp: 1;
  55. overflow: hidden;
  56. text-overflow: ellipsis;
  57. }
  58. .shop-item .prod-block .discount-tips {
  59. border-top: 2rpx solid #eee;
  60. padding: 20rpx 16rpx;
  61. height: 40rpx;
  62. line-height: 40rpx;
  63. }
  64. .shop-item .prod-block .discount-tips .text-block {
  65. padding: 4rpx 6rpx;
  66. border-radius: 4rpx;
  67. font-size: 20rpx;
  68. background: #e43130;
  69. color: #fff;
  70. position: relative;
  71. }
  72. .shop-item .prod-block .discount-tips .text-block::before{
  73. position: absolute;
  74. left: 14rpx;
  75. bottom: -16rpx;
  76. content: "";
  77. display: block;
  78. width: 0;
  79. height: 0;
  80. border: 8rpx solid transparent;
  81. border-top: 8rpx solid #e43130;
  82. }
  83. .shop-item .prod-block .discount-tips .text-list {
  84. font-size: 24rpx;
  85. margin-left: 10rpx;
  86. font-weight: 600;
  87. }
  88. .shop-item .prod-block .discount-tips .text-list.reduce-amount {
  89. font-weight: normal;
  90. color: #e43130;
  91. padding-left: 20rpx;
  92. }
  93. .shop-item .prod-block .goods-item {
  94. position: relative;
  95. }
  96. .shop-item .prod-block .goods-item .disable{
  97. position: absolute;
  98. top: 0;
  99. left: 0;
  100. width: 100%;
  101. height: 100%;
  102. background: rgba(255,255,255,0.6);
  103. border-radius: 16rpx 16rpx 16rpx 16rpx;
  104. z-index: 4;
  105. }
  106. .shop-item .prod-block.discount .goods-item::after{
  107. position: absolute;
  108. left: 36rpx;
  109. top: 0;
  110. bottom: 0;
  111. width: 2rpx;
  112. height: auto;
  113. content: "";
  114. border-left: 2rpx dashed #eee;
  115. z-index: 0;
  116. }
  117. .shop-item .prod-block .item {
  118. display: flex;
  119. align-items: center;
  120. padding: 20rpx;
  121. border-top: 2rpx solid #f2f2f2;
  122. z-index: 2;
  123. }
  124. .shop-item .prod-block .item .btn {
  125. z-index: 3;
  126. }
  127. .shop-item .prod-block .item .prodinfo {
  128. position: relative;
  129. color: #999;
  130. flex: 1;
  131. display: flex;
  132. margin-left: 10rpx;
  133. }
  134. .shop-item .prod-block .item .prodinfo .pic-box{
  135. position: relative;
  136. }
  137. .shop-item .prod-block .item .prodinfo .pic{
  138. width: 200rpx;
  139. height: 200rpx;
  140. background: #F6F6F6;
  141. border-radius: 16rpx;
  142. flex-shrink: 0;
  143. margin: 20rpx 0;
  144. }
  145. .shop-item .prod-block .item .prodinfo .sell-out{
  146. position: absolute;
  147. top: 0;
  148. left: 0;
  149. width: 200rpx;
  150. height: 240rpx;
  151. background: rgba(255,255,255,0.6);
  152. border-radius: 16rpx 16rpx 16rpx 16rpx;
  153. display: flex;
  154. justify-content: center;
  155. align-items: center;
  156. }
  157. .shop-item .prod-block .item .prodinfo .sell-out-text{
  158. width: 112rpx;
  159. height: 36rpx;
  160. line-height: 36rpx;
  161. text-align: center;
  162. background: rgba(0,0,0,0.6);
  163. border-radius: 18rpx 18rpx 18rpx 18rpx;
  164. font-size: 24rpx;
  165. color: #FFFFFF
  166. }
  167. .shop-item .prod-block .item .prodinfo .opt {
  168. margin-left: 20rpx;
  169. flex: 1;
  170. }
  171. .shop-item .prod-block .item .prodinfo .opt .prod-name {
  172. font-weight: bold;
  173. font-size: 32rpx;
  174. color: #222222;
  175. /* max-height: 72rpx; */
  176. line-height: 46rpx;
  177. display: -webkit-box;
  178. word-break: break-all;
  179. overflow: hidden;
  180. text-overflow: ellipsis;
  181. -webkit-line-clamp: 2;
  182. -webkit-box-orient: vertical;
  183. }
  184. .shop-item .prod-block .item .prodinfo .opt .prod-center-row {
  185. display: flex;
  186. align-items: center;
  187. margin-top: 10rpx;
  188. height: 36rpx;
  189. line-height: 36rpx;
  190. }
  191. .shop-item .prod-block .item .prodinfo .opt .prod-center-row .prod-discount {
  192. padding: 0 16rpx;
  193. background: #fdf1f2;
  194. margin-right: 20rpx;
  195. display: flex;
  196. align-items: center;
  197. border-radius: 20rpx;
  198. }
  199. .shop-item .prod-block .item .prodinfo .opt .prod-center-row .prod-discount .discount-name {
  200. color: #e43130;
  201. font-size: 22rpx;
  202. display: -webkit-box;
  203. -webkit-box-orient: vertical;
  204. -webkit-line-clamp: 1;
  205. overflow: hidden;
  206. text-overflow: ellipsis;
  207. }
  208. .shop-item .prod-block .item .prodinfo .opt .prod-center-row .prod-discount .down-arrow {
  209. width: 10rpx;
  210. height: 10rpx;
  211. border-bottom: 2rpx solid #e43130;
  212. border-right: 2rpx solid #e43130;
  213. transform: rotate(45deg);
  214. margin-left: 10rpx;
  215. margin-bottom: 6rpx;
  216. }
  217. .shop-item .prod-block .item .prodinfo .opt .prod-center-row .prod-info-text {
  218. color: #666;
  219. background: #f3f3f3;
  220. padding: 0 16rpx;
  221. border-radius: 20rpx;
  222. font-size: 22rpx;
  223. position: relative;
  224. font-family: arial;
  225. display: -webkit-box;
  226. -webkit-box-orient: vertical;
  227. -webkit-line-clamp: 1;
  228. overflow: hidden;
  229. text-overflow: ellipsis;
  230. }
  231. .shop-item .prod-block .item .prodinfo .opt .prod-center-row .prod-info-text.empty-n {
  232. display: none;
  233. }
  234. .shop-item .prod-block .item .prodinfo .opt .del-box{
  235. display: flex;
  236. align-items: center;
  237. justify-content: space-between;
  238. height: 56rpx;
  239. margin-top: 20rpx;
  240. }
  241. .shop-item .prod-block .item .prodinfo .opt .del-box .del-label{
  242. font-size: 28rpx;
  243. color: #222222;
  244. }
  245. .shop-item .prod-block .item .prodinfo .opt .del-box .del-btn{
  246. width: 128rpx;
  247. height: 44rpx;
  248. line-height: 44rpx;
  249. text-align: center;
  250. background: #006CE8;
  251. border-radius: 22rpx 22rpx 22rpx 22rpx;
  252. font-size: 24rpx;
  253. color: #FFFFFF;
  254. position: relative;
  255. z-index: 5;
  256. }
  257. .shop-item .prod-block .item .prodinfo .opt .price-count {
  258. display: flex;
  259. align-items: center;
  260. justify-content: space-between;
  261. height: 56rpx;
  262. margin-top: 20rpx;
  263. font-weight: bold;
  264. font-size: 36rpx;
  265. color: #FF4D3A;
  266. }
  267. /* 加减框 */
  268. /* .car-box .item .info .price-box .num-box{ */
  269. .num-box{
  270. display: flex;
  271. align-items: center;
  272. }
  273. /* .car-box .item .info .price-box .num-box .btn{ */
  274. .num-box .btn{
  275. font-size: 20rpx;
  276. width: 44rpx;
  277. height: 44rpx;
  278. text-align: center;
  279. }
  280. /* .car-box .item .info .price-box .num-box .num{ */
  281. .num-box .num{
  282. width: 80rpx;
  283. height: 44rpx;
  284. background: #FFFFFF;
  285. text-align: center;
  286. line-height: 40rpx;
  287. font-size: 24rpx ;
  288. color: #222222;
  289. border-bottom: 2rpx solid #F0F0F0;
  290. border-top: 2rpx solid #F0F0F0;
  291. box-sizing: border-box;
  292. }
  293. .shop-item .prod-block .item .prodinfo .opt .num-box:not(.disabled) .btn:not(.disabled):active {
  294. opacity: 0.6;
  295. }
  296. /*checkbox 选项框大小 */
  297. checkbox .wx-checkbox-input {
  298. border-radius: 50%;
  299. width: 32rpx;
  300. height: 32rpx;
  301. }
  302. /*checkbox选中后样式 */
  303. checkbox .wx-checkbox-input.wx-checkbox-input-checked {
  304. /* background: #e43130;
  305. border-color: #e43130; */
  306. background: #006CE8;
  307. border-color: #006CE8;
  308. }
  309. /*checkbox选中后图标样式 */
  310. checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
  311. text-align: center;
  312. font-size: 20rpx;
  313. color: #fff;
  314. background: transparent;
  315. transform: translate(-50%, -50%) scale(1);
  316. -webkit-transform: translate(-50%, -50%) scale(1);
  317. }
  318. /** 底部按钮 */
  319. .cart-footer {
  320. position: fixed;
  321. bottom: 166rpx;
  322. left: 0;
  323. width: 100%;
  324. display: flex;
  325. align-items: center;
  326. height: 120rpx;
  327. z-index: 999;
  328. background: #fff;
  329. box-shadow: -6rpx 0 6rpx rgba(0, 0, 0, 0.1);
  330. }
  331. .cart-footer .icon{
  332. width: 100rpx;
  333. height: 100rpx;
  334. margin-left: 20rpx;
  335. }
  336. .cart-footer .all {
  337. font-size: 28rpx;
  338. margin-left: 20rpx;
  339. }
  340. .cart-footer .all label {
  341. display: flex;
  342. align-items: center;
  343. }
  344. .cart-footer .del {
  345. color: #FF4D3A;
  346. font-size: 24rpx;
  347. margin-left: 12rpx;
  348. }
  349. .cart-footer .total {
  350. flex: 1;
  351. display: flex;
  352. align-items: center;
  353. justify-content: flex-end;
  354. margin-left: 40rpx;
  355. }
  356. .cart-footer .total .total-con .finally .blod {
  357. font-weight: bold;
  358. font-size: 22rpx;
  359. color: #222222;
  360. }
  361. .cart-footer .total .total-con .finally .price {
  362. font-size: 30rpx;
  363. }
  364. .cart-footer .total .total-msg {
  365. font-size: 22rpx;
  366. text-align: right;
  367. }
  368. .cart-footer .total .arrow-icon {
  369. width: 40rpx;
  370. height: 20rpx;
  371. margin-left: 10rpx;
  372. }
  373. .cart-footer .total .arrow-icon image {
  374. display: block;
  375. width: 100%;
  376. height: 100%;
  377. }
  378. .cart-footer .settle {
  379. height: 80rpx;
  380. line-height: 80rpx;
  381. /* padding: 0 50rpx; */
  382. width: 160rpx;
  383. text-align: center;
  384. background: #006CE8;
  385. color: #fff;
  386. border-radius: 40rpx;
  387. margin-right: 20rpx;
  388. font-size: 28rpx;
  389. }
  390. /** end 底部按钮 */
  391. /* 满减活动弹框 */
  392. /*模态框*/
  393. .modals {
  394. position: fixed;
  395. z-index: 999;
  396. top: 0;
  397. left: 0;
  398. right: 0;
  399. bottom: 0;
  400. }
  401. .pri-modal {
  402. position: fixed;
  403. z-index: 99;
  404. top: 0;
  405. left: 0;
  406. right: 0;
  407. bottom: 0;
  408. }
  409. .modals-cancel {
  410. position: absolute;
  411. z-index: 1000;
  412. top: 0;
  413. left: 0;
  414. right: 0;
  415. bottom: 0;
  416. background-color: rgba(0, 0, 0, 0.5);
  417. }
  418. .bottom-dialog-body {
  419. position: absolute;
  420. z-index: 10001;
  421. bottom: 0;
  422. left: 0;
  423. right: 0;
  424. height: 500rpx;
  425. background-color: #fff;
  426. }
  427. .bottom-dialog-box {
  428. position: absolute;
  429. z-index: 10001;
  430. bottom: 90rpx;
  431. left: 0;
  432. right: 0;
  433. height: 500rpx;
  434. background-color: #fff;
  435. }
  436. .radius {
  437. border-radius: 20rpx 20rpx 0 0;
  438. }
  439. /*动画前初始位置*/
  440. .bottom-pos {
  441. -webkit-transform: translateY(100%);
  442. transform: translateY(100%);
  443. }
  444. .radio-group {
  445. display: block;
  446. width: 100%;
  447. height: 350rpx;
  448. overflow-y:auto;
  449. }
  450. .discount-title {
  451. font-size: 30rpx;
  452. margin-bottom: 20rpx;
  453. padding:26rpx;
  454. background: #f1f1f1;
  455. text-align: center;
  456. }
  457. radio {
  458. transform: scale(0.8);
  459. }
  460. radio .wx-radio-input{
  461. text-align: left;
  462. }
  463. .discount-radio label{
  464. display: inline-block;
  465. height:60rpx;
  466. line-height: 60rpx;
  467. }
  468. .discount-radio{
  469. font-size: 28rpx;
  470. height:60rpx;
  471. line-height: 60rpx;
  472. padding:0 20rpx
  473. }
  474. /* 购物车为空 */
  475. .empty {
  476. margin-top: 100rpx;
  477. text-align: cneter;
  478. }
  479. .empty-icon {
  480. display: block;
  481. width: 110rpx;
  482. height: 110rpx;
  483. margin: 0 auto;
  484. margin-bottom: 20rpx;
  485. }
  486. .empty-icon > image {
  487. width: 100%;
  488. height: 100%;
  489. }
  490. .empty-text {
  491. font-size: 24rpx;
  492. color: #222222;
  493. line-height: 2em;
  494. text-align: center;
  495. }
  496. .empty .btn{
  497. width: 120rpx;
  498. height: 48rpx;
  499. line-height: 48rpx;
  500. text-align: center;
  501. background: #FFFFFF;
  502. border-radius: 28rpx 28rpx 28rpx 28rpx;
  503. border: 1rpx solid #006CE8;
  504. font-weight: bold;
  505. font-size: 24rpx;
  506. color: #006CE8;
  507. margin: 28rpx auto;
  508. }
  509. /* 金额明细 */
  510. .price-detail {
  511. max-height: 220rpx;
  512. overflow-y: scroll;
  513. padding: 10rpx 20rpx;
  514. }
  515. .price-detail-item {
  516. display: flex;
  517. align-items: center;
  518. justify-content: space-between;
  519. height: 3em;
  520. font-size: 28rpx;
  521. border-bottom: 1px solid #f2f2f2;
  522. }
  523. .price-detail-item:last-child {
  524. border: 0;
  525. }
  526. .det-num {
  527. color: #e43130;
  528. }