index.less 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. .container {
  2. width: 100%;
  3. display: flex;
  4. flex-direction: column;
  5. align-content: center;
  6. align-items: center;
  7. .topView {
  8. position: sticky;
  9. top: 0;
  10. z-index: 999;
  11. width: 100%;
  12. }
  13. .banner {
  14. height: 210px;
  15. width: 100%;
  16. .swiper-item, image {
  17. width: 100%;
  18. }
  19. }
  20. .attribute-info {
  21. border-top: 10px solid #f0f0f0;
  22. }
  23. .attribute-info, .seller-info {
  24. width: 100%;
  25. display: flex;
  26. flex-direction: column;
  27. align-content: center;
  28. align-items: center;
  29. margin-bottom: 10px;
  30. .title {
  31. padding: 10px 5px;
  32. width: 100%;
  33. color: #333;
  34. font-size: 20px;
  35. }
  36. .attribute-info__item, .content__item{
  37. width: 100%;
  38. padding-left: 15px;
  39. height: 44px;
  40. border-bottom: 1px solid #f0f0f0;
  41. display: flex;
  42. flex-direction: row;
  43. justify-content: start;
  44. align-items: center;
  45. align-content: center;
  46. .title {
  47. font-size: 14px;
  48. width: 80px;
  49. color: #666;
  50. }
  51. .value {
  52. font-size: 14px;
  53. color: #333;
  54. }
  55. }
  56. .content {
  57. width: 95%;
  58. background-color: #f0f0f0;
  59. border-radius: 10px;
  60. padding: 10px 0px;
  61. &__item {
  62. height: 30px;
  63. padding-left: 5px;
  64. }
  65. .title {
  66. font-size: 14px;
  67. width: 50px;
  68. color: #666;
  69. }
  70. .value {
  71. font-size: 14px;
  72. color: #333;
  73. }
  74. }
  75. }
  76. .price-info {
  77. width: 100%;
  78. display: flex;
  79. flex-direction: column;
  80. align-content: center;
  81. align-items: center;
  82. padding: 10px 0px;
  83. border-bottom: 5px solid #f0f0f0;
  84. .content__item {
  85. display: flex;
  86. flex-direction: row;
  87. justify-content: start;
  88. align-items: center;
  89. align-content: center;
  90. width: 95%;
  91. height: 30px;
  92. text {
  93. color: #333;
  94. padding: 5px 0px;
  95. }
  96. &__price {
  97. font-size: 18px;
  98. }
  99. &__rate {
  100. font-size: 14px;
  101. margin-left: 15px;
  102. }
  103. &__name {
  104. font-size: 20px;
  105. padding: 5px 0px;
  106. }
  107. &__weight, &__gprice, &__market-price {
  108. font-size: 14px;
  109. }
  110. &__weight, &__gprice {
  111. width: 50%;
  112. }
  113. }
  114. }
  115. .button-view {
  116. border-radius: 10px;
  117. width: 95%;
  118. padding-top: 15px;
  119. display: flex;
  120. flex-direction: row;
  121. align-content: center;
  122. align-items: center;
  123. justify-content: space-between;
  124. van-button {
  125. width: 90%;
  126. }
  127. }
  128. }