index.less 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. page {
  2. padding-bottom: 120rpx;
  3. background: #f6f6f6;
  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. .swiper {
  24. margin: 30rpx;
  25. height: 600rpx;
  26. .slide-image {
  27. width: 100%;
  28. height: 98%;
  29. margin-bottom: 20rpx;
  30. border-radius: 30rpx;
  31. }
  32. }
  33. .navBar {
  34. display: flex;
  35. justify-content: space-around;
  36. height: 100rpx;
  37. position: relative;
  38. background: #fff;
  39. margin: 30rpx;
  40. border-radius: 30rpx;
  41. .navItem {
  42. display: flex;
  43. align-items: center;
  44. justify-content: center;
  45. border-bottom: 4rpx solid transparent;
  46. .navItemTitle {
  47. font-size: 28rpx;
  48. }
  49. .navItemIcon {
  50. width: 30rpx;
  51. image {
  52. width: 25rpx;
  53. height: 25rpx;
  54. transform: translate(-25rpx -25rpx 0);
  55. }
  56. }
  57. }
  58. .active {
  59. color: #333;
  60. font-weight: bold;
  61. border-bottom: 4rpx solid #399899;
  62. }
  63. }
  64. .nav_content{
  65. flex: 1;
  66. }
  67. .sidebar {
  68. display: flex;
  69. flex-direction: row;
  70. background: #fff;
  71. margin: 30rpx;
  72. border-radius: 30rpx;
  73. // font-family: "Microsoft YaHei";
  74. .left{
  75. width: 32%;
  76. // background-color: #f4f4f4;
  77. .sidebarItem {
  78. padding: 20rpx;
  79. .sidebarItemTime {
  80. font-size: 22rpx;
  81. }
  82. .sidebarItemText {
  83. font-size: 28rpx;
  84. }
  85. }
  86. .active {
  87. color: #fff;
  88. font-weight: bold;
  89. background-color: #399899;
  90. border-radius: 0 50rpx 50rpx 0;
  91. }
  92. }
  93. .sidebar_content{
  94. width:68%;
  95. margin: 0;
  96. // margin-left: 30rpx;
  97. }
  98. }
  99. .title {
  100. display: flex;
  101. justify-content: space-between;
  102. padding-right: 30rpx;
  103. .recommended-box {
  104. display: flex;
  105. margin: 0rpx 0 0 30rpx;
  106. .recommended {
  107. font-size: 36rpx;
  108. font-weight: 500;
  109. color: #222222;
  110. line-height: 36rpx;
  111. margin-left: 10rpx;
  112. }
  113. .recommended-icon {
  114. width: 6rpx;
  115. height: 36rpx;
  116. background: #49aaa6;
  117. border-radius: 3rpx;
  118. }
  119. }
  120. }
  121. .village {
  122. .homestay {
  123. background: #ffffff;
  124. margin: 0 30rpx;
  125. border-radius: 20rpx;
  126. position: relative;
  127. .homestay-image {
  128. width: 420rpx;
  129. height: 205rpx;
  130. border-radius: 30rpx;
  131. }
  132. .homestay-images {
  133. position: absolute;
  134. top: 0;
  135. width: 420rpx;
  136. height: 205rpx;
  137. border-radius: 30rpx;
  138. }
  139. .title1 {
  140. .title_left{
  141. display: flex;
  142. .homestay-name {
  143. font-size: 30rpx;
  144. font-family: Source Han Sans CN;
  145. font-weight: 400;
  146. color: #222222;
  147. margin: 10rpx;
  148. overflow: hidden; //一定要写
  149. text-overflow: ellipsis; //超出省略号
  150. display: -webkit-box; //一定要写
  151. -webkit-line-clamp: 2; //控制行数
  152. -webkit-box-orient: vertical; //一定要写
  153. .price {
  154. font-size: 32rpx;
  155. display: inline-block;
  156. // margin-top: -8rpx;
  157. // margin-left: -20rpx;
  158. width: 120rpx;
  159. }
  160. }
  161. }
  162. .homestay-address {
  163. font-size: 24rpx;
  164. font-family: Source Han Sans CN;
  165. font-weight: 300;
  166. color: #666666;
  167. line-height: 36rpx;
  168. margin: 8rpx;
  169. padding-bottom: 10rpx;
  170. text-overflow: ellipsis; //超出省略号
  171. }
  172. }
  173. }
  174. .button {
  175. width: 40rpx;
  176. height: 40rpx;
  177. transform: translate(190rpx, -65rpx);
  178. text-align: center;
  179. line-height: 40rpx;
  180. // margin-right: 10rpx;
  181. border-radius: 50%;
  182. background-color: #229293;
  183. font-size: 18rpx;
  184. font-weight: bold;
  185. padding: 0;
  186. color: white;
  187. // line-height: 70rpx;
  188. }
  189. }
  190. .kong {
  191. display: flex;
  192. justify-content: space-between;
  193. flex-wrap: wrap;
  194. padding: 0 30rpx;
  195. margin-bottom: 30rpx;
  196. // .kong-box {
  197. // .kong-icon {
  198. // width: 120rpx;
  199. // height: 120rpx;
  200. // border-radius: 30rpx;
  201. // }
  202. // .kong-name {
  203. // margin-top: 10rpx;
  204. // text-align: center;
  205. // }
  206. // }
  207. // .kong-image {
  208. // width: 330rpx;
  209. // height: 200rpx;
  210. // margin-top: 30rpx;
  211. // background-repeat: no-repeat;
  212. // background-position: center top;
  213. // background-size: 100% 100%;
  214. // color: #ffffff;
  215. // font-weight: 900;
  216. // text-align: center;
  217. // padding-top: 80rpx;
  218. // }
  219. .homestay {
  220. background: #ffffff;
  221. margin-top: 30rpx;
  222. width: 330rpx;
  223. border-radius: 20rpx;
  224. .homestay-image {
  225. width: 100%;
  226. height: 300rpx;
  227. border-radius: 30rpx 30rpx 0 0;
  228. }
  229. .homestay-name {
  230. font-size: 30rpx;
  231. font-family: Source Han Sans CN;
  232. font-weight: 400;
  233. color: #222222;
  234. margin: 10rpx;
  235. overflow: hidden; //一定要写
  236. text-overflow: ellipsis; //超出省略号
  237. display: -webkit-box; //一定要写
  238. -webkit-line-clamp: 2; //控制行数
  239. -webkit-box-orient: vertical; //一定要写
  240. }
  241. .homestay-price {
  242. display: flex;
  243. color: red;
  244. font-size: 24rpx;
  245. margin: 20rpx 10rpx 0 10rpx;
  246. .price {
  247. font-size: 32rpx;
  248. margin-top: -8rpx;
  249. }
  250. }
  251. .homestay-address {
  252. font-size: 20rpx;
  253. font-family: Source Han Sans CN;
  254. font-weight: 300;
  255. color: #666666;
  256. line-height: 36rpx;
  257. margin: 10rpx;
  258. }
  259. }
  260. }