recommend.wxss 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. .recommend {
  2. padding: 0 20rpx;
  3. box-sizing: border-box;
  4. margin-top: 20rpx;
  5. }
  6. .recommend-top {
  7. width: 100%;
  8. height: 180rpx;
  9. background-color: #fff;
  10. border-radius: 14rpx;
  11. margin-bottom: 20rpx;
  12. display: flex;
  13. }
  14. .recommend-img {
  15. width: 240rpx;
  16. height: 180rpx;
  17. flex-shrink: 0;
  18. }
  19. .recommend-img image {
  20. width: 100%;
  21. height: 180rpx;
  22. border-top-left-radius: 14rpx;
  23. border-bottom-left-radius: 14rpx;
  24. display: block;
  25. }
  26. .rightDet {
  27. padding-left: 18rpx;
  28. box-sizing: border-box;
  29. display: inline-block;
  30. width: 100%;
  31. padding-right: 4rpx;
  32. position: relative;
  33. height: 100%;
  34. }
  35. .rightDet .top-tit {
  36. /* height: 70rpx; */
  37. color: #333;
  38. font-size: 26rpx;
  39. margin-top: 20rpx;
  40. display: -webkit-box;
  41. -webkit-box-orient: vertical;
  42. -webkit-line-clamp: 2;
  43. overflow: hidden;
  44. }
  45. .top-sub {
  46. display: flex;
  47. align-items: center;
  48. justify-content: space-between;
  49. position: absolute;
  50. left: 0;
  51. bottom: 20rpx;
  52. width: 100%;
  53. padding: 0 16rpx;
  54. box-sizing: border-box;
  55. }
  56. .total {
  57. font-size: 24rpx;
  58. color: #949494
  59. }
  60. .recommendPrice {
  61. color: var(--subtitleColor);
  62. font-size: 28rpx;
  63. }
  64. .load-more {
  65. display: flex;
  66. width: 70%;
  67. white-space: nowrap;
  68. margin: 0 auto;
  69. height: auto;
  70. overflow: hidden;
  71. line-height: 1;
  72. justify-content: center;
  73. align-items: center;
  74. padding: 10px 0;
  75. font-size: 28rpx;
  76. color: var(--subtitleColor);
  77. }
  78. .load-more .left {
  79. width: 270rpx;
  80. height: 1px;
  81. margin-right: 20rpx;
  82. background: -webkit-linear-gradient(right, var(--subtitleColor), #fff)
  83. }
  84. .load-more .right {
  85. width: 270rpx;
  86. height: 1px;
  87. background: -webkit-linear-gradient(left, var(--subtitleColor), #fff);
  88. margin-left: 20rpx;
  89. }