media.scss 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. .wrapper {
  2. width: 100%;
  3. padding-top: 20rpx;
  4. }
  5. .page-section {
  6. width: 100%;
  7. margin: 22rpx auto 40rpx;
  8. swiper {
  9. height: 360rpx;
  10. }
  11. .swiper-item {
  12. position: relative;
  13. left: 0;
  14. top: 0;
  15. width: 690rpx;
  16. height: 100%;
  17. margin: 0 auto;
  18. border-radius: 24rpx;
  19. overflow: hidden;
  20. }
  21. .photo {
  22. display: block;
  23. width: 100%;
  24. height: 100%;
  25. }
  26. .info {
  27. position: absolute;
  28. left: 0;
  29. bottom: 0;
  30. z-index: 1;
  31. display: flex;
  32. align-items: center;
  33. width: 100%;
  34. padding: 0 24rpx 8rpx;
  35. }
  36. .label-wrap,
  37. .value-wrap {
  38. display: flex;
  39. align-items: center;
  40. }
  41. .value-wrap {
  42. width: calc(100% - 120rpx);
  43. }
  44. .icon {
  45. width: 36rpx;
  46. height: 36rpx;
  47. }
  48. .label,
  49. .name {
  50. font-size: 28rpx;
  51. line-height: 46rpx;
  52. color: rgba(255, 255, 255, 1);
  53. }
  54. .name,
  55. .address {
  56. max-width: 50%;
  57. white-space: nowrap;
  58. overflow: hidden;
  59. text-overflow: ellipsis;
  60. }
  61. .address {
  62. padding-left: 6rpx;
  63. font-size: 20rpx;
  64. line-height: 46rpx;
  65. color: rgba(229, 229, 229, 1);
  66. }
  67. .swiper-dots {
  68. display: flex;
  69. align-items: center;
  70. justify-content: center;
  71. margin-top: 20rpx;
  72. & > view {
  73. width: 16rpx;
  74. height: 16rpx;
  75. margin-left: 16rpx;
  76. border-radius: 6rpx;
  77. background: rgba(145, 179, 121, 0.6);
  78. &:nth-of-type(1) {
  79. margin-left: 0;
  80. }
  81. &.active {
  82. background: rgba(145, 179, 121, 1);
  83. }
  84. }
  85. }
  86. }
  87. .main {
  88. display: flex;
  89. flex-flow: row wrap;
  90. width: 690rpx;
  91. padding: 30rpx 0 314rpx;
  92. margin: 0 auto;
  93. }
  94. .list {
  95. width: 336rpx;
  96. min-height: 314rpx;
  97. margin-left: 18rpx;
  98. margin-bottom: 20rpx;
  99. border-radius: 8rpx;
  100. background: rgba(255, 255, 255, 1);
  101. box-shadow: 0 4rpx 8rpx 0 rgba(0, 0, 0, 0.1);
  102. overflow: hidden;
  103. &:nth-of-type(2n + 1) {
  104. margin-left: 0;
  105. }
  106. }