index.less 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. page {
  2. background: #f6f6f6;
  3. }
  4. .box {
  5. display: flex;
  6. flex-wrap: wrap;
  7. justify-content: space-between;
  8. padding: 30rpx;
  9. border-radius: 18rpx;
  10. // background: #ffffff;
  11. .recommended-box {
  12. width: 336rpx;
  13. background: #ffffff;
  14. border-radius: 18rpx;
  15. padding-bottom: 20rpx;
  16. margin-top: 30rpx;
  17. .price {
  18. color: red;
  19. font-size: 30rpx;
  20. margin: 20rpx 0 0 20rpx;
  21. }
  22. .recommended-image {
  23. width: 336rpx;
  24. height: 240rpx;
  25. border-radius: 18rpx;
  26. }
  27. .recommended-name {
  28. font-size: 30rpx;
  29. font-weight: 500;
  30. color: #222222;
  31. line-height: 36rpx;
  32. margin: 10rpx 0 0 20rpx;
  33. height: 80rpx;
  34. overflow: hidden; //一定要写
  35. text-overflow: ellipsis; //超出省略号
  36. display: -webkit-box; //一定要写
  37. -webkit-line-clamp: 2; //控制行数
  38. -webkit-box-orient: vertical; //一定要写
  39. }
  40. .recommended-score {
  41. display: flex;
  42. margin: 0 20rpx;
  43. .price {
  44. color: red;
  45. font-size: 30rpx;
  46. margin: 0rpx 0 0 20rpx;
  47. }
  48. .score {
  49. font-size: 30rpx;
  50. font-weight: bold;
  51. color: #F01740;
  52. line-height: 36rpx;
  53. margin-right: 20rpx;
  54. }
  55. .sale {
  56. font-size: 30rpx;
  57. font-weight: 400;
  58. color: #666666;
  59. line-height: 36rpx;
  60. }
  61. .recommended-address {
  62. font-size: 24rpx;
  63. font-family: Source Han Sans CN;
  64. font-weight: 300;
  65. color: #666666;
  66. line-height: 36rpx;
  67. margin: 20rpx 0 0 0rpx;
  68. }
  69. }
  70. .recommended-distance {
  71. font-size: 24rpx;
  72. color: #666666;
  73. margin: 20rpx 0 0 20rpx;
  74. }
  75. }
  76. }