index.less 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. page {
  2. background: #f6f6f6;
  3. padding-bottom: 148rpx;
  4. }
  5. .location{
  6. display: flex;
  7. justify-content: space-between;
  8. align-items: center;
  9. padding: 20rpx 25rpx 0rpx 25rpx;
  10. background-color: #ffffff;
  11. .l_left {
  12. font-size: 24rpx;
  13. }
  14. .l_right{
  15. color:#636363;
  16. font-size: 24rpx;
  17. span{
  18. color: #229293;
  19. font-weight: bold;
  20. }
  21. }
  22. }
  23. .search {
  24. position: sticky;
  25. top: 0px;
  26. left: 0;
  27. z-index: 9;
  28. }
  29. .swiper {
  30. margin: 30rpx;
  31. height: 400rpx;
  32. .slide-image {
  33. width: 100%;
  34. height: 98%;
  35. margin-bottom: 20rpx;
  36. border-radius: 30rpx;
  37. }
  38. }
  39. .navBar {
  40. display: flex;
  41. justify-content: space-around;
  42. height: 150rpx;
  43. position: relative;
  44. background: #fff;
  45. margin: 30rpx;
  46. border-radius: 30rpx;
  47. .navItem {
  48. // display: flex;
  49. align-items: center;
  50. justify-content: center;
  51. margin-top: 30rpx;
  52. border-bottom: 4rpx solid transparent;
  53. .navItemTitle {
  54. font-size: 30rpx;
  55. }
  56. .navItemIcon {
  57. width: 60rpx;
  58. image {
  59. width: 50rpx;
  60. height: 50rpx;
  61. margin-left: 6rpx;
  62. // transform: translate(-25rpx -25rpx 0);
  63. }
  64. }
  65. }
  66. .active {
  67. color: #333;
  68. font-weight: bold;
  69. border-bottom: 4rpx solid #399899;
  70. }
  71. }
  72. .nav_content{
  73. flex: 1;
  74. }
  75. .kind {
  76. width: 687rpx;
  77. // height: 150rpx;
  78. position: relative;
  79. left: 15rpx;
  80. // top: 30rpx;
  81. display: flex;
  82. .item {
  83. width: 219rpx;
  84. height: 150rpx;
  85. margin-left: 17rpx;
  86. image {
  87. width: 219rpx;
  88. height: 150rpx;
  89. border-radius: 6px;
  90. }
  91. }
  92. .item2 {
  93. width: 219rpx;
  94. height: 150rpx;
  95. margin-left: 15rpx;
  96. image {
  97. width: 219rpx;
  98. height: 150rpx;
  99. border-radius: 6px;
  100. }
  101. }
  102. .item3 {
  103. width: 219rpx;
  104. height: 150rpx;
  105. margin-left: 15rpx;
  106. image {
  107. width: 219rpx;
  108. height: 150rpx;
  109. border-radius: 6px;
  110. }
  111. }
  112. .head-text{
  113. width: 219rpx;
  114. height: 50rpx;
  115. position: relative;
  116. z-index: 99;
  117. background-color: #439f9b;
  118. // opacity:0.6;
  119. background-color:rgba(63,156,152,0.9);
  120. line-height: 50rpx;
  121. text-align: center;
  122. font-weight: 550;
  123. font-size: 25rpx;
  124. color: white;
  125. // left:58rpx;
  126. bottom: 55rpx;
  127. border-radius: 10px;
  128. }
  129. }
  130. .box {
  131. display: flex;
  132. flex-wrap: wrap;
  133. justify-content: space-between;
  134. padding: 30rpx;
  135. border-radius: 18rpx;
  136. .recommended-box {
  137. background: #ffffff;
  138. border-radius: 18rpx;
  139. padding-bottom: 20rpx;
  140. margin-top: 0rpx;
  141. width: 687rpx;
  142. display: flex;
  143. justify-content: space-between;
  144. align-items: center;
  145. .recommended-image {
  146. width: 180rpx;
  147. height: 180rpx;
  148. border-radius: 30rpx;
  149. }
  150. .recommended__box{
  151. flex: 1;
  152. display: flex;
  153. flex-direction: column;
  154. .price {
  155. color: #fb7306;
  156. font-size: 30rpx;
  157. margin: 10rpx 0 0 15rpx;
  158. }
  159. .recommended-name {
  160. font-size: 30rpx;
  161. font-weight: bold;
  162. color: #222222;
  163. line-height: 36rpx;
  164. margin: 10rpx 0 0 20rpx;
  165. height: 50rpx;
  166. // border: 1px solid red;
  167. overflow: hidden; //一定要写
  168. text-overflow: ellipsis; //超出省略号
  169. display: -webkit-box; //一定要写
  170. -webkit-line-clamp: 2; //控制行数
  171. -webkit-box-orient: vertical; //一定要写
  172. }
  173. .recommended-score {
  174. display: flex;
  175. margin: 0 20rpx;
  176. .score {
  177. font-size: 25rpx;
  178. // font-weight: bold;
  179. // color: #F01740;
  180. line-height: 36rpx;
  181. margin-right: 20rpx;
  182. margin-top: 5rpx;
  183. margin-left: 10rpx;
  184. }
  185. .sale {
  186. font-size: 25rpx;
  187. font-weight: 400;
  188. color: #666666;
  189. line-height: 36rpx;
  190. }
  191. .recommended-address {
  192. font-size: 25rpx;
  193. font-family: Source Han Sans CN;
  194. // font-weight: 300;
  195. color: #666666;
  196. line-height: 30rpx;
  197. margin: 10rpx 0 0 0rpx;
  198. // height: 60rpx;
  199. overflow: hidden; //一定要写
  200. text-overflow: ellipsis; //超出省略号
  201. display: -webkit-box; //一定要写
  202. -webkit-line-clamp: 2; //控制行数
  203. -webkit-box-orient: vertical; //一定要写
  204. }
  205. }
  206. .recommended-distance {
  207. font-size: 24rpx;
  208. color: #666666;
  209. margin: 6rpx 0 0 0rpx;
  210. }
  211. }
  212. .button_1 {
  213. width: 60rpx;
  214. height: 60rpx;
  215. display: flex;
  216. justify-content: center;
  217. align-items: center;
  218. margin-right: 10rpx;
  219. border-radius: 50%;
  220. background-color: #229293;
  221. font-size: 26rpx;
  222. font-weight: bold;
  223. color: white;
  224. // line-height: 70rpx;
  225. }
  226. }
  227. }