basket.wxss 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535
  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. .shop-item .prod-block .item .prodinfo .opt .m-numSelector {
  208. display: flex;
  209. box-sizing: border-box;
  210. border: 2rpx solid #eee;
  211. border-radius: 4rpx;
  212. }
  213. .shop-item .prod-block .item .prodinfo .opt .m-numSelector .minus,
  214. .shop-item .prod-block .item .prodinfo .opt .m-numSelector .plus {
  215. height: 56rpx;
  216. width: 56rpx;
  217. box-sizing: border-box;
  218. position: relative;
  219. }
  220. .shop-item .prod-block .item .prodinfo .opt .m-numSelector input {
  221. width: 56rpx;
  222. height: 56rpx;
  223. text-align: center;
  224. color: #333;
  225. border-left: 2rpx solid #eee;
  226. border-right: 2rpx solid #eee;
  227. font-size: 24rpx;
  228. font-family: arial;
  229. }
  230. .shop-item .prod-block .item .prodinfo .opt .m-numSelector .minus::before,
  231. .shop-item .prod-block .item .prodinfo .opt .m-numSelector .plus::before,
  232. .shop-item .prod-block .item .prodinfo .opt .m-numSelector .plus::after {
  233. position: absolute;
  234. top: 0;
  235. left: 0;
  236. right: 0;
  237. bottom: 0;
  238. margin: auto;
  239. content: ' ';
  240. width: 22rpx;
  241. height: 2rpx;
  242. background-color: #7f7f7f;
  243. }
  244. .shop-item .prod-block .item .prodinfo .opt .m-numSelector .plus::after {
  245. transform: rotate(90deg);
  246. }
  247. .shop-item .prod-block .item .prodinfo .opt .m-numSelector:not(.disabled) .minus:not(.disabled):active,
  248. .shop-item .prod-block .item .prodinfo .opt .m-numSelector:not(.disabled) .plus:not(.disabled):active {
  249. opacity: 0.6;
  250. }
  251. /*checkbox 选项框大小 */
  252. checkbox .wx-checkbox-input {
  253. border-radius: 50%;
  254. width: 32rpx;
  255. height: 32rpx;
  256. }
  257. /*checkbox选中后样式 */
  258. checkbox .wx-checkbox-input.wx-checkbox-input-checked {
  259. /* background: #e43130;
  260. border-color: #e43130; */
  261. background: #04358D;
  262. border-color: #04358D;
  263. }
  264. /*checkbox选中后图标样式 */
  265. checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
  266. text-align: center;
  267. font-size: 20rpx;
  268. color: #fff;
  269. background: transparent;
  270. transform: translate(-50%, -50%) scale(1);
  271. -webkit-transform: translate(-50%, -50%) scale(1);
  272. }
  273. /** 底部按钮 */
  274. .cart-footer {
  275. position: fixed;
  276. bottom: 0;
  277. left: 0;
  278. width: 100%;
  279. display: flex;
  280. align-items: center;
  281. height: 90rpx;
  282. z-index: 999;
  283. background: #fff;
  284. box-shadow: -6rpx 0 6rpx rgba(0, 0, 0, 0.1);
  285. }
  286. .cart-footer .all {
  287. font-size: 28rpx;
  288. margin-left: 20rpx;
  289. }
  290. .cart-footer .all label {
  291. display: flex;
  292. align-items: center;
  293. }
  294. .cart-footer .del {
  295. color: #e43130;
  296. font-size: 24rpx;
  297. margin-left: 20rpx;
  298. }
  299. .cart-footer .total {
  300. flex: 1;
  301. display: flex;
  302. align-items: center;
  303. margin-left: 40rpx;
  304. }
  305. .cart-footer .total .total-con .finally .blod {
  306. font-weight: bold;
  307. font-size: 28rpx;
  308. }
  309. .cart-footer .total .total-con .finally .price {
  310. font-size: 30rpx;
  311. }
  312. .cart-footer .total .total-msg {
  313. font-size: 22rpx;
  314. text-align: right;
  315. }
  316. .cart-footer .total .arrow-icon {
  317. width: 40rpx;
  318. height: 20rpx;
  319. margin-left: 10rpx;
  320. }
  321. .cart-footer .total .arrow-icon image {
  322. display: block;
  323. width: 100%;
  324. height: 100%;
  325. }
  326. .cart-footer .settle {
  327. height: 70rpx;
  328. line-height: 70rpx;
  329. /* padding: 0 50rpx; */
  330. width: 220rpx;
  331. text-align: center;
  332. background: #04358D;
  333. color: #fff;
  334. border-radius: 70rpx;
  335. margin-right: 20rpx;
  336. font-size: 28rpx;
  337. }
  338. /** end 底部按钮 */
  339. /* 满减活动弹框 */
  340. /*模态框*/
  341. .modals {
  342. position: fixed;
  343. z-index: 999;
  344. top: 0;
  345. left: 0;
  346. right: 0;
  347. bottom: 0;
  348. }
  349. .pri-modal {
  350. position: fixed;
  351. z-index: 99;
  352. top: 0;
  353. left: 0;
  354. right: 0;
  355. bottom: 0;
  356. }
  357. .modals-cancel {
  358. position: absolute;
  359. z-index: 1000;
  360. top: 0;
  361. left: 0;
  362. right: 0;
  363. bottom: 0;
  364. background-color: rgba(0, 0, 0, 0.5);
  365. }
  366. .bottom-dialog-body {
  367. position: absolute;
  368. z-index: 10001;
  369. bottom: 0;
  370. left: 0;
  371. right: 0;
  372. height: 500rpx;
  373. background-color: #fff;
  374. }
  375. .bottom-dialog-box {
  376. position: absolute;
  377. z-index: 10001;
  378. bottom: 90rpx;
  379. left: 0;
  380. right: 0;
  381. height: 500rpx;
  382. background-color: #fff;
  383. }
  384. .radius {
  385. border-radius: 20rpx 20rpx 0 0;
  386. }
  387. /*动画前初始位置*/
  388. .bottom-pos {
  389. -webkit-transform: translateY(100%);
  390. transform: translateY(100%);
  391. }
  392. .radio-group {
  393. display: block;
  394. width: 100%;
  395. height: 350rpx;
  396. overflow-y:auto;
  397. }
  398. .discount-title {
  399. font-size: 30rpx;
  400. margin-bottom: 20rpx;
  401. padding:26rpx;
  402. background: #f1f1f1;
  403. text-align: center;
  404. }
  405. radio {
  406. transform: scale(0.8);
  407. }
  408. radio .wx-radio-input{
  409. text-align: left;
  410. }
  411. .discount-radio label{
  412. display: inline-block;
  413. height:60rpx;
  414. line-height: 60rpx;
  415. }
  416. .discount-radio{
  417. font-size: 28rpx;
  418. height:60rpx;
  419. line-height: 60rpx;
  420. padding:0 20rpx
  421. }
  422. /* 购物车为空 */
  423. .empty {
  424. margin-top: 100rpx;
  425. text-align: cneter;
  426. }
  427. .empty-icon {
  428. display: block;
  429. width: 100rpx;
  430. height: 100rpx;
  431. margin: 0 auto;
  432. margin-bottom: 20rpx;
  433. }
  434. .empty-icon > image {
  435. width: 100%;
  436. height: 100%;
  437. }
  438. .empty-text {
  439. font-size: 28rpx;
  440. text-align: center;
  441. color: #999;
  442. line-height: 2em;
  443. }
  444. /* 金额明细 */
  445. .price-detail {
  446. max-height: 220rpx;
  447. overflow-y: scroll;
  448. padding: 10rpx 20rpx;
  449. }
  450. .price-detail-item {
  451. display: flex;
  452. align-items: center;
  453. justify-content: space-between;
  454. height: 3em;
  455. font-size: 28rpx;
  456. border-bottom: 1px solid #f2f2f2;
  457. }
  458. .price-detail-item:last-child {
  459. border: 0;
  460. }
  461. .det-num {
  462. color: #e43130;
  463. }