basket.wxss 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548
  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.discount .goods-item::after{
  97. position: absolute;
  98. left: 36rpx;
  99. top: 0;
  100. bottom: 0;
  101. width: 2rpx;
  102. height: auto;
  103. content: "";
  104. border-left: 2rpx dashed #eee;
  105. z-index: 0;
  106. }
  107. .shop-item .prod-block .item {
  108. display: flex;
  109. align-items: center;
  110. padding: 20rpx;
  111. border-top: 2rpx solid #f2f2f2;
  112. z-index: 2;
  113. }
  114. .shop-item .prod-block .item .btn {
  115. z-index: 3;
  116. }
  117. .shop-item .prod-block .item .prodinfo {
  118. position: relative;
  119. color: #999;
  120. flex: 1;
  121. display: flex;
  122. margin-left: 10rpx;
  123. }
  124. .shop-item .prod-block .item .prodinfo .pic {
  125. text-align: center;
  126. width: 200rpx;
  127. height: 200rpx;
  128. line-height: 180rpx;
  129. font-size: 0;
  130. }
  131. .shop-item .prod-block .item .prodinfo .pic image {
  132. width: 100%;
  133. height: 100%;
  134. border-radius: 16rpx;
  135. }
  136. .shop-item .prod-block .item .prodinfo .opt {
  137. margin-left: 20rpx;
  138. flex: 1;
  139. }
  140. .shop-item .prod-block .item .prodinfo .opt .prod-name {
  141. font-weight: bold;
  142. font-size: 32rpx;
  143. color: #222222;
  144. /* max-height: 72rpx; */
  145. line-height: 46rpx;
  146. display: -webkit-box;
  147. word-break: break-all;
  148. overflow: hidden;
  149. text-overflow: ellipsis;
  150. -webkit-line-clamp: 2;
  151. -webkit-box-orient: vertical;
  152. }
  153. .shop-item .prod-block .item .prodinfo .opt .prod-center-row {
  154. display: flex;
  155. align-items: center;
  156. margin-top: 10rpx;
  157. height: 36rpx;
  158. line-height: 36rpx;
  159. }
  160. .shop-item .prod-block .item .prodinfo .opt .prod-center-row .prod-discount {
  161. padding: 0 16rpx;
  162. background: #fdf1f2;
  163. margin-right: 20rpx;
  164. display: flex;
  165. align-items: center;
  166. border-radius: 20rpx;
  167. }
  168. .shop-item .prod-block .item .prodinfo .opt .prod-center-row .prod-discount .discount-name {
  169. color: #e43130;
  170. font-size: 22rpx;
  171. display: -webkit-box;
  172. -webkit-box-orient: vertical;
  173. -webkit-line-clamp: 1;
  174. overflow: hidden;
  175. text-overflow: ellipsis;
  176. }
  177. .shop-item .prod-block .item .prodinfo .opt .prod-center-row .prod-discount .down-arrow {
  178. width: 10rpx;
  179. height: 10rpx;
  180. border-bottom: 2rpx solid #e43130;
  181. border-right: 2rpx solid #e43130;
  182. transform: rotate(45deg);
  183. margin-left: 10rpx;
  184. margin-bottom: 6rpx;
  185. }
  186. .shop-item .prod-block .item .prodinfo .opt .prod-center-row .prod-info-text {
  187. color: #666;
  188. background: #f3f3f3;
  189. padding: 0 16rpx;
  190. border-radius: 20rpx;
  191. font-size: 22rpx;
  192. position: relative;
  193. font-family: arial;
  194. display: -webkit-box;
  195. -webkit-box-orient: vertical;
  196. -webkit-line-clamp: 1;
  197. overflow: hidden;
  198. text-overflow: ellipsis;
  199. }
  200. .shop-item .prod-block .item .prodinfo .opt .prod-center-row .prod-info-text.empty-n {
  201. display: none;
  202. }
  203. .shop-item .prod-block .item .prodinfo .opt .price-count {
  204. display: flex;
  205. align-items: center;
  206. justify-content: space-between;
  207. height: 56rpx;
  208. margin-top: 20rpx;
  209. font-weight: bold;
  210. font-size: 36rpx;
  211. color: #FF4D3A;
  212. }
  213. /* 加减框 */
  214. /* .car-box .item .info .price-box .num-box{ */
  215. .num-box{
  216. display: flex;
  217. align-items: center;
  218. }
  219. /* .car-box .item .info .price-box .num-box .btn{ */
  220. .num-box .btn{
  221. font-size: 20rpx;
  222. width: 44rpx;
  223. height: 44rpx;
  224. text-align: center;
  225. }
  226. /* .car-box .item .info .price-box .num-box .num{ */
  227. .num-box .num{
  228. width: 80rpx;
  229. height: 44rpx;
  230. background: #FFFFFF;
  231. text-align: center;
  232. line-height: 40rpx;
  233. font-size: 24rpx ;
  234. color: #222222;
  235. border-bottom: 2rpx solid #F0F0F0;
  236. border-top: 2rpx solid #F0F0F0;
  237. box-sizing: border-box;
  238. }
  239. .shop-item .prod-block .item .prodinfo .opt .num-box:not(.disabled) .btn:not(.disabled):active {
  240. opacity: 0.6;
  241. }
  242. /*checkbox 选项框大小 */
  243. checkbox .wx-checkbox-input {
  244. border-radius: 50%;
  245. width: 32rpx;
  246. height: 32rpx;
  247. }
  248. /*checkbox选中后样式 */
  249. checkbox .wx-checkbox-input.wx-checkbox-input-checked {
  250. /* background: #e43130;
  251. border-color: #e43130; */
  252. background: #006CE8;
  253. border-color: #006CE8;
  254. }
  255. /*checkbox选中后图标样式 */
  256. checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
  257. text-align: center;
  258. font-size: 20rpx;
  259. color: #fff;
  260. background: transparent;
  261. transform: translate(-50%, -50%) scale(1);
  262. -webkit-transform: translate(-50%, -50%) scale(1);
  263. }
  264. /** 底部按钮 */
  265. .cart-footer {
  266. position: fixed;
  267. bottom: 166rpx;
  268. left: 0;
  269. width: 100%;
  270. display: flex;
  271. align-items: center;
  272. height: 120rpx;
  273. z-index: 999;
  274. background: #fff;
  275. box-shadow: -6rpx 0 6rpx rgba(0, 0, 0, 0.1);
  276. }
  277. .cart-footer .icon{
  278. width: 100rpx;
  279. height: 100rpx;
  280. margin-left: 20rpx;
  281. }
  282. .cart-footer .all {
  283. font-size: 28rpx;
  284. margin-left: 20rpx;
  285. }
  286. .cart-footer .all label {
  287. display: flex;
  288. align-items: center;
  289. }
  290. .cart-footer .del {
  291. color: #FF4D3A;
  292. font-size: 24rpx;
  293. margin-left: 12rpx;
  294. }
  295. .cart-footer .total {
  296. flex: 1;
  297. display: flex;
  298. align-items: center;
  299. justify-content: flex-end;
  300. margin-left: 40rpx;
  301. }
  302. .cart-footer .total .total-con .finally .blod {
  303. font-weight: bold;
  304. font-size: 22rpx;
  305. color: #222222;
  306. }
  307. .cart-footer .total .total-con .finally .price {
  308. font-size: 30rpx;
  309. }
  310. .cart-footer .total .total-msg {
  311. font-size: 22rpx;
  312. text-align: right;
  313. }
  314. .cart-footer .total .arrow-icon {
  315. width: 40rpx;
  316. height: 20rpx;
  317. margin-left: 10rpx;
  318. }
  319. .cart-footer .total .arrow-icon image {
  320. display: block;
  321. width: 100%;
  322. height: 100%;
  323. }
  324. .cart-footer .settle {
  325. height: 80rpx;
  326. line-height: 80rpx;
  327. /* padding: 0 50rpx; */
  328. width: 160rpx;
  329. text-align: center;
  330. background: #006CE8;
  331. color: #fff;
  332. border-radius: 40rpx;
  333. margin-right: 20rpx;
  334. font-size: 28rpx;
  335. }
  336. /** end 底部按钮 */
  337. /* 满减活动弹框 */
  338. /*模态框*/
  339. .modals {
  340. position: fixed;
  341. z-index: 999;
  342. top: 0;
  343. left: 0;
  344. right: 0;
  345. bottom: 0;
  346. }
  347. .pri-modal {
  348. position: fixed;
  349. z-index: 99;
  350. top: 0;
  351. left: 0;
  352. right: 0;
  353. bottom: 0;
  354. }
  355. .modals-cancel {
  356. position: absolute;
  357. z-index: 1000;
  358. top: 0;
  359. left: 0;
  360. right: 0;
  361. bottom: 0;
  362. background-color: rgba(0, 0, 0, 0.5);
  363. }
  364. .bottom-dialog-body {
  365. position: absolute;
  366. z-index: 10001;
  367. bottom: 0;
  368. left: 0;
  369. right: 0;
  370. height: 500rpx;
  371. background-color: #fff;
  372. }
  373. .bottom-dialog-box {
  374. position: absolute;
  375. z-index: 10001;
  376. bottom: 90rpx;
  377. left: 0;
  378. right: 0;
  379. height: 500rpx;
  380. background-color: #fff;
  381. }
  382. .radius {
  383. border-radius: 20rpx 20rpx 0 0;
  384. }
  385. /*动画前初始位置*/
  386. .bottom-pos {
  387. -webkit-transform: translateY(100%);
  388. transform: translateY(100%);
  389. }
  390. .radio-group {
  391. display: block;
  392. width: 100%;
  393. height: 350rpx;
  394. overflow-y:auto;
  395. }
  396. .discount-title {
  397. font-size: 30rpx;
  398. margin-bottom: 20rpx;
  399. padding:26rpx;
  400. background: #f1f1f1;
  401. text-align: center;
  402. }
  403. radio {
  404. transform: scale(0.8);
  405. }
  406. radio .wx-radio-input{
  407. text-align: left;
  408. }
  409. .discount-radio label{
  410. display: inline-block;
  411. height:60rpx;
  412. line-height: 60rpx;
  413. }
  414. .discount-radio{
  415. font-size: 28rpx;
  416. height:60rpx;
  417. line-height: 60rpx;
  418. padding:0 20rpx
  419. }
  420. /* 购物车为空 */
  421. .empty {
  422. margin-top: 100rpx;
  423. text-align: cneter;
  424. }
  425. .empty-icon {
  426. display: block;
  427. width: 110rpx;
  428. height: 110rpx;
  429. margin: 0 auto;
  430. margin-bottom: 20rpx;
  431. }
  432. .empty-icon > image {
  433. width: 100%;
  434. height: 100%;
  435. }
  436. .empty-text {
  437. font-size: 24rpx;
  438. color: #222222;
  439. line-height: 2em;
  440. text-align: center;
  441. }
  442. .empty .btn{
  443. width: 120rpx;
  444. height: 48rpx;
  445. line-height: 48rpx;
  446. text-align: center;
  447. background: #FFFFFF;
  448. border-radius: 28rpx 28rpx 28rpx 28rpx;
  449. border: 1rpx solid #006CE8;
  450. font-weight: bold;
  451. font-size: 24rpx;
  452. color: #006CE8;
  453. margin: 28rpx auto;
  454. }
  455. /* 金额明细 */
  456. .price-detail {
  457. max-height: 220rpx;
  458. overflow-y: scroll;
  459. padding: 10rpx 20rpx;
  460. }
  461. .price-detail-item {
  462. display: flex;
  463. align-items: center;
  464. justify-content: space-between;
  465. height: 3em;
  466. font-size: 28rpx;
  467. border-bottom: 1px solid #f2f2f2;
  468. }
  469. .price-detail-item:last-child {
  470. border: 0;
  471. }
  472. .det-num {
  473. color: #e43130;
  474. }