goodsDetail.scss 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  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. .nav-wrap {
  61. display: flex;
  62. align-items: center;
  63. width: 100%;
  64. border-bottom: 1rpx solid rgba(189, 189, 189, 1);
  65. }
  66. .nav-wrap view {
  67. flex: 1;
  68. padding: 44rpx 0 24rpx;
  69. line-height: 40rpx;
  70. font-size: 28rpx;
  71. color: rgba(51, 51, 51, 1);
  72. text-align: center;
  73. }
  74. .nav-wrap view.active {
  75. position: relative;
  76. left: 0;
  77. top: 0;
  78. color: rgba(145, 179, 121, 1);
  79. }
  80. .nav-wrap view.active:after {
  81. position: absolute;
  82. left: 50%;
  83. bottom: 0;
  84. content: '';
  85. width: 162rpx;
  86. height: 8rpx;
  87. border-radius: 40rpx 40rpx 0 0;
  88. background: rgba(145, 179, 121, 1);
  89. transform: translateX(-50%);
  90. }
  91. .business-info {
  92. display: flex;
  93. flex-direction: column;
  94. padding: 44rpx 0 276rpx 46rpx;
  95. .introduce {
  96. width: 636rpx;
  97. line-height: 40rpx;
  98. font-size: 26rpx;
  99. color: rgba(153, 153, 153, 1);
  100. word-break: break-all;
  101. word-wrap: break-word;
  102. }
  103. .subtitle {
  104. margin-top: 36rpx;
  105. font-size: 28rpx;
  106. line-height: 36rpx;
  107. color: rgba(51, 51, 51, 1);
  108. }
  109. .date {
  110. margin-top: 26rpx;
  111. font-size: 28rpx;
  112. line-height: 36rpx;
  113. color: rgba(153, 153, 153, 1);
  114. }
  115. }
  116. .goods-scroll {
  117. width: 100%;
  118. height: 136px;
  119. white-space: nowrap;
  120. font-size: 0;
  121. margin-top: 22px;
  122. .item {
  123. display: inline-block;
  124. padding-left: 20rpx;
  125. &:nth-of-type(1) {
  126. padding-left: 0;
  127. }
  128. & > view {
  129. display: flex;
  130. align-items: center;
  131. width: 412rpx;
  132. border-radius: 20rpx;
  133. background: rgba(255, 255, 255, 1);
  134. box-shadow: 0rpx 6rpx 10rpx 4rpx rgba(0, 0, 0, 0.07);
  135. overflow: hidden;
  136. }
  137. }
  138. .photo {
  139. width: 168rpx;
  140. height: 126rpx;
  141. image {
  142. display: block;
  143. width: 100%;
  144. height: 100%;
  145. overflow: hidden;
  146. background: pink;
  147. }
  148. }
  149. .info {
  150. display: flex;
  151. flex-direction: column;
  152. width: calc(100% - 168rpx);
  153. padding-left: 18rpx;
  154. }
  155. .name {
  156. width: 100%;
  157. font-size: 26rpx;
  158. font-weight: 700;
  159. line-height: 36rpx;
  160. color: rgba(51, 51, 51, 1);
  161. white-space: nowrap;
  162. overflow: hidden;
  163. text-overflow: ellipsis;
  164. }
  165. .unit-price {
  166. display: flex;
  167. align-items: center;
  168. margin-top: 2rpx;
  169. }
  170. .price {
  171. font-size: 22rpx;
  172. line-height: 42rpx;
  173. font-weight: 700;
  174. color: rgba(255, 76, 44, 1);
  175. }
  176. .unit {
  177. margin-left: 10rpx;
  178. font-size: 16rpx;
  179. line-height: 26rpx;
  180. color: rgba(153, 153, 153, 1);
  181. }
  182. }
  183. .fixed-bottom {
  184. position: fixed;
  185. left: 0;
  186. right: 0;
  187. bottom: 46rpx;
  188. z-index: 99;
  189. &:after {
  190. display: block;
  191. content: '';
  192. width: 100%;
  193. padding-bottom: constant(safe-area-inset-bottom);
  194. padding-bottom: env(safe-area-inset-bottom);
  195. }
  196. & > view {
  197. display: flex;
  198. justify-content: flex-end;
  199. align-items: center;
  200. padding: 0 30rpx;
  201. }
  202. button {
  203. width: 328rpx;
  204. height: 98rpx;
  205. border-radius: 88rpx;
  206. box-shadow: 0 6rpx 10rpx 4rpx rgba(0, 0, 0, 0.07);
  207. font-size: 32rpx;
  208. font-weight: 500;
  209. &:nth-of-type(2) {
  210. margin-left: 17rpx;
  211. }
  212. }
  213. button[type='primary'] {
  214. background-color: rgba(145, 179, 121, 1);
  215. }
  216. }