basket.wxss 9.3 KB

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