goodsDetail.scss 3.5 KB

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