basket.wxss 8.9 KB

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