goodsDetail.scss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. .page-section {
  2. width: 100%;
  3. swiper {
  4. width: 100%;
  5. height: 562rpx;
  6. overflow: hidden;
  7. }
  8. .swiper-item {
  9. height: 100%;
  10. }
  11. .swiper-item image {
  12. display: block;
  13. width: 100%;
  14. height: 100%;
  15. }
  16. }
  17. .main-information {
  18. display: flex;
  19. flex-direction: column;
  20. width: 658rpx;
  21. padding: 32rpx 0 0 0;
  22. margin: 0 auto;
  23. .tag-list {
  24. display: flex;
  25. flex-flow: row wrap;
  26. align-items: center;
  27. text {
  28. min-width: 64rpx;
  29. height: 34rpx;
  30. border-radius: 10rpx;
  31. background: rgba(76, 173, 115, 0.2);
  32. line-height: 34rpx;
  33. font-size: 20rpx;
  34. color: rgba(76, 173, 115, 1);
  35. text-align: center;
  36. }
  37. }
  38. .name {
  39. margin-top: 30rpx;
  40. font-size: 48rpx;
  41. color: rgba(51, 51, 51, 1)
  42. }
  43. .unit-price {
  44. display: flex;
  45. align-items: center;
  46. margin-top: 30rpx;
  47. }
  48. .price {
  49. font-size: 36rpx;
  50. line-height: 42rpx;
  51. color: rgba(255, 76, 44, 1);
  52. }
  53. .unit {
  54. margin-left: 28rpx;
  55. font-size: 28rpx;
  56. color: rgba(153, 153, 153, 1);
  57. }
  58. }
  59. .goods-info {
  60. display: flex;
  61. flex-direction: column;
  62. padding: 44rpx 0 0 46rpx;
  63. .introduce {
  64. width: 636rpx;
  65. line-height: 40rpx;
  66. font-size: 26rpx;
  67. color: rgba(153, 153, 153, 1);
  68. word-break: break-all;
  69. word-wrap: break-word;
  70. }
  71. .subtitle {
  72. margin-top: 36rpx;
  73. font-size: 28rpx;
  74. line-height: 36rpx;
  75. color: rgba(51, 51, 51, 1);
  76. }
  77. .date {
  78. margin-top: 26rpx;
  79. font-size: 28rpx;
  80. line-height: 36rpx;
  81. color: rgba(153, 153, 153, 1);
  82. }
  83. }
  84. .goods-scroll {
  85. width: 100%;
  86. height: 136px;
  87. white-space: nowrap;
  88. font-size: 0;
  89. margin-top: 22px;
  90. .item {
  91. display: inline-block;
  92. padding-left: 20rpx;
  93. &:nth-of-type(1) {
  94. padding-left: 0;
  95. }
  96. & > view {
  97. display: flex;
  98. align-items: center;
  99. width: 412rpx;
  100. border-radius: 20rpx;
  101. background: rgba(255, 255, 255, 1);
  102. box-shadow: 0rpx 6rpx 10rpx 4rpx rgba(0, 0, 0, 0.07);
  103. overflow: hidden;
  104. }
  105. }
  106. .photo {
  107. width: 168rpx;
  108. height: 126rpx;
  109. image {
  110. display: block;
  111. width: 100%;
  112. height: 100%;
  113. overflow: hidden;
  114. }
  115. }
  116. .info {
  117. display: flex;
  118. flex-direction: column;
  119. width: calc(100% - 168rpx);
  120. padding-left: 18rpx;
  121. }
  122. .name {
  123. width: 100%;
  124. font-size: 26rpx;
  125. font-weight: 700;
  126. line-height: 36rpx;
  127. color: rgba(51, 51, 51, 1);
  128. white-space: nowrap;
  129. overflow: hidden;
  130. text-overflow: ellipsis;
  131. }
  132. .unit-price {
  133. display: flex;
  134. align-items: center;
  135. margin-top: 2rpx;
  136. }
  137. .price {
  138. font-size: 22rpx;
  139. line-height: 42rpx;
  140. font-weight: 700;
  141. color: rgba(255, 76, 44, 1);
  142. }
  143. .unit {
  144. margin-left: 10rpx;
  145. font-size: 16rpx;
  146. line-height: 26rpx;
  147. color: rgba(153, 153, 153, 1);
  148. }
  149. }
  150. .fixed-bottom {
  151. position: fixed;
  152. left: 0;
  153. right: 0;
  154. bottom: 46rpx;
  155. z-index: 99;
  156. &:after {
  157. display: block;
  158. content: '';
  159. width: 100%;
  160. padding-bottom: constant(safe-area-inset-bottom);
  161. padding-bottom: env(safe-area-inset-bottom);
  162. }
  163. & > view {
  164. display: flex;
  165. justify-content: flex-end;
  166. align-items: center;
  167. padding: 0 30rpx;
  168. }
  169. button {
  170. width: 328rpx;
  171. height: 98rpx;
  172. border-radius: 88rpx;
  173. box-shadow: 0 6rpx 10rpx 4rpx rgba(0, 0, 0, 0.07);
  174. font-size: 32rpx;
  175. font-weight: 500;
  176. &:nth-of-type(2) {
  177. margin-left: 17rpx;
  178. }
  179. }
  180. button[type='primary'] {
  181. background-color: rgba(145, 179, 121, 1);
  182. }
  183. }
  184. .banner-box {
  185. .banner {
  186. display: block;
  187. width: 100%;
  188. }
  189. }