index.wxss 615 B

1234567891011121314151617181920212223242526272829303132333435
  1. .cart {
  2. position: fixed;
  3. left: 30rpx;
  4. bottom: 30rpx;
  5. width: 120rpx;
  6. height: 120rpx;
  7. border-radius: 50%;
  8. display: flex;
  9. flex-direction: column;
  10. justify-content: center;
  11. align-items: center;
  12. line-height: 1;
  13. font-size: 24rpx;
  14. background: linear-gradient(45deg, #fdd225 0%, #feb600 100%);
  15. color: #000;
  16. }
  17. .cart .img {
  18. width: 54rpx;
  19. height: 54rpx;
  20. }
  21. .cart .num {
  22. color: #fff;
  23. background-color: #ff5041;
  24. position: absolute;
  25. top: -15rpx;
  26. right: -15rpx;
  27. min-width: 54rpx;
  28. height: 54rpx;
  29. line-height: 54rpx;
  30. border-radius: 54rpx;
  31. text-align: center;
  32. font-size: 26rpx;
  33. }