media.scss 1.9 KB

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