index.less 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557
  1. page {
  2. padding-bottom: 120rpx;
  3. background: #f8f8f8;
  4. .flexd {
  5. position: fixed;
  6. z-index: 999;
  7. width: 100%;
  8. .nav-background {
  9. background: #f39283;
  10. height: 40rpx;
  11. }
  12. .v-search {
  13. position: relative;
  14. top: -40rpx;
  15. // box-shadow: 0px 5rpx 10rpx rgba(0, 0, 0, 0.2);
  16. background-color: transparent;
  17. }
  18. }
  19. .rank {
  20. width: 687rpx;
  21. height: 346rpx;
  22. margin: 24rpx 32rpx;
  23. color: #ffffff;
  24. border-radius: 16rpx;
  25. background: url('https://file.ruixiuauto.com/cDBRXuM6Xh/20230809/v8ee31103601302.web 拷贝 (1)') no-repeat 50%;
  26. .item-title {
  27. display: flex;
  28. align-items: center;
  29. text-align: center;
  30. justify-content: center;
  31. margin: 24rpx 0 36rpx 0;
  32. .text {
  33. text-indent: 16rpx;
  34. }
  35. }
  36. .loading{
  37. display: flex;
  38. justify-content: center;
  39. }
  40. .content {
  41. padding: 0 32rpx;
  42. display: flex;
  43. flex-wrap: wrap;
  44. justify-content: space-between;
  45. align-items: center;
  46. .card {
  47. background-color: #f8f8f8;
  48. // display: flex;
  49. // flex-direction: column;
  50. // align-items: center;
  51. border-radius: 16rpx;
  52. height: 85rpx;
  53. width: 298rpx;
  54. padding: 8rpx;
  55. margin-bottom: 24rpx;
  56. display: flex;
  57. flex-direction: row;
  58. .left {
  59. position: relative;
  60. .ranking{
  61. // width: 32rpx;
  62. // height: 16rpx;
  63. padding: 3rpx 4rpx 3rpx 3rpx;
  64. background-color: #f39283;
  65. border-radius: 0 12rpx 12rpx 0;
  66. position: absolute;
  67. left: 0;
  68. top: 10rpx;
  69. font-size: 8rpx;
  70. font-family: MiSans;
  71. font-weight: bold;
  72. color: #F8F8F8;
  73. }
  74. image {
  75. border-radius: 16rpx;
  76. width: 66rpx;
  77. height: 66rpx;
  78. }
  79. }
  80. .right {
  81. height: 70rpx;
  82. text-indent: 8rpx;
  83. width: 200rpx;
  84. >view {
  85. padding: 0;
  86. }
  87. .h1 {
  88. font-size: 16rpx;
  89. font-weight: bold;
  90. color: #000;
  91. display: -webkit-box;
  92. -webkit-box-orient: vertical;
  93. -webkit-line-clamp: 1;
  94. overflow: hidden;
  95. }
  96. .h2 {
  97. font-size: 14rpx;
  98. color: #999999;
  99. display: flex;
  100. align-items: center;
  101. justify-content: space-between;
  102. .light {
  103. font-size: 16rpx;
  104. font-weight: bold;
  105. color: #fb7204;
  106. }
  107. }
  108. .h3 {
  109. overflow:hidden; //超出的文本隐藏
  110. text-overflow:ellipsis; //溢出用省略号显示
  111. white-space:nowrap; //溢出不换行
  112. font-size: 12rpx;
  113. color: #999999;
  114. }
  115. }
  116. }
  117. }
  118. }
  119. .play-around {
  120. display: flex;
  121. align-items: center;
  122. justify-content: space-between;
  123. margin: 32rpx;
  124. .play-left {
  125. font-weight: bold;
  126. }
  127. .play-right {
  128. font-size: 24rpx;
  129. color: #999999;
  130. display: flex;
  131. align-content: center;
  132. >view {
  133. padding-right: 12rpx;
  134. }
  135. }
  136. }
  137. .play-list {
  138. margin: 32rpx;
  139. display: flex;
  140. align-items: center;
  141. justify-content: space-between;
  142. flex-wrap: wrap;
  143. .play-item {
  144. width: 332rpx;
  145. height: 480rpx;
  146. background: #FFFFFF;
  147. box-shadow: 0px 5px 9px 0px rgba(14, 5, 9, 0.05);
  148. border-radius: 12rpx;
  149. margin-bottom: 24rpx;
  150. .item-img{
  151. position: relative;
  152. .item-ranking{
  153. position: absolute;
  154. top: 18rpx;
  155. left: 0;
  156. font-size: 24rpx;
  157. font-family: Source Han Sans CN;
  158. font-weight: bold;
  159. color: #FFFFFF;
  160. padding: 18rpx 24rpx;
  161. background-color: #f39283;
  162. border-radius: 0 32rpx 32rpx 0;
  163. }
  164. }
  165. .body {
  166. padding: 0 16rpx;
  167. height: 150rpx;
  168. display: flex;
  169. flex-direction: column;
  170. justify-content: space-around;
  171. .item-text {
  172. height: 62rpx;
  173. font-size: 24rpx;
  174. font-weight: 300;
  175. display: -webkit-box;
  176. -webkit-box-orient: vertical;
  177. -webkit-line-clamp: 2;
  178. overflow: hidden;
  179. }
  180. .label {
  181. display: flex;
  182. font-size: 15rpx;
  183. font-weight: 400;
  184. // margin: 16rpx 0;
  185. overflow:hidden; //超出的文本隐藏
  186. text-overflow:ellipsis; //溢出用省略号显示
  187. white-space:nowrap; //溢出不换行
  188. >view {
  189. background-color: #fdefed;
  190. border-radius: 12rpx;
  191. padding: 5rpx 16rpx;
  192. margin-right: 12rpx;
  193. overflow:hidden; //超出的文本隐藏
  194. text-overflow:ellipsis; //溢出用省略号显示
  195. white-space:nowrap; //溢出不换行
  196. }
  197. }
  198. .detail {
  199. display: flex;
  200. align-items: center;
  201. font-size: 18rpx;
  202. font-weight: 300;
  203. // padding-bottom: 20rpx;
  204. .d-light {
  205. font-weight: bold;
  206. font-size: 26rpx;
  207. margin-right: 26rpx;
  208. color: #FB8737;
  209. }
  210. }
  211. }
  212. }
  213. }
  214. }
  215. .location {
  216. display: flex;
  217. justify-content: space-between;
  218. align-items: center;
  219. padding: 20rpx 25rpx 0rpx 25rpx;
  220. background-color: #ffffff;
  221. .l_left {
  222. font-size: 24rpx;
  223. }
  224. .l_right {
  225. color: #636363;
  226. font-size: 24rpx;
  227. span {
  228. color: #229293;
  229. font-weight: bold;
  230. }
  231. }
  232. }
  233. .swiper {
  234. margin: 128rpx 32rpx 24rpx 32rpx;
  235. height: 329rpx;
  236. .slide-image {
  237. width: 100%;
  238. height: 98%;
  239. margin-bottom: 20rpx;
  240. border-radius: 12rpx;
  241. }
  242. }
  243. .navBar {
  244. display: flex;
  245. justify-content: space-between;
  246. align-items: center;
  247. position: relative;
  248. margin: 32rpx;
  249. .navItem {
  250. display: flex;
  251. flex-direction: column;
  252. align-items: center;
  253. border-bottom: 4rpx solid transparent;
  254. text-align: center;
  255. .navItemTitle {
  256. font-size: 28rpx;
  257. }
  258. .navItemIcon {
  259. image {
  260. width: 80rpx;
  261. height: 80rpx;
  262. }
  263. }
  264. }
  265. .active {
  266. color: #333;
  267. font-weight: bold;
  268. border-bottom: 4rpx solid #399899;
  269. }
  270. }
  271. .nav_content {
  272. flex: 1;
  273. }
  274. .sidebar {
  275. display: flex;
  276. flex-direction: row;
  277. background: #fff;
  278. margin: 30rpx;
  279. border-radius: 30rpx;
  280. // font-family: "Microsoft YaHei";
  281. .left {
  282. width: 32%;
  283. // background-color: #f4f4f4;
  284. .sidebarItem {
  285. padding: 20rpx;
  286. .sidebarItemTime {
  287. font-size: 22rpx;
  288. }
  289. .sidebarItemText {
  290. font-size: 28rpx;
  291. }
  292. }
  293. .active {
  294. color: #fff;
  295. font-weight: bold;
  296. background-color: #399899;
  297. border-radius: 0 50rpx 50rpx 0;
  298. }
  299. }
  300. .sidebar_content {
  301. width: 68%;
  302. margin: 0;
  303. // margin-left: 30rpx;
  304. }
  305. }
  306. .title {
  307. display: flex;
  308. justify-content: space-between;
  309. padding-right: 30rpx;
  310. .recommended-box {
  311. display: flex;
  312. margin: 0rpx 0 0 30rpx;
  313. .recommended {
  314. font-size: 36rpx;
  315. font-weight: 500;
  316. color: #222222;
  317. line-height: 36rpx;
  318. margin-left: 10rpx;
  319. }
  320. .recommended-icon {
  321. width: 6rpx;
  322. height: 36rpx;
  323. background: #49aaa6;
  324. border-radius: 3rpx;
  325. }
  326. }
  327. }
  328. .village {
  329. .homestay {
  330. background: #ffffff;
  331. margin: 0 30rpx;
  332. border-radius: 20rpx;
  333. position: relative;
  334. .homestay-image {
  335. width: 420rpx;
  336. height: 205rpx;
  337. border-radius: 30rpx;
  338. }
  339. .homestay-images {
  340. position: absolute;
  341. top: 0;
  342. width: 420rpx;
  343. height: 205rpx;
  344. border-radius: 30rpx;
  345. }
  346. .title1 {
  347. .title_left {
  348. display: flex;
  349. .homestay-name {
  350. font-size: 30rpx;
  351. font-family: Source Han Sans CN;
  352. font-weight: 400;
  353. color: #222222;
  354. margin: 10rpx;
  355. overflow: hidden; //一定要写
  356. text-overflow: ellipsis; //超出省略号
  357. display: -webkit-box; //一定要写
  358. -webkit-line-clamp: 2; //控制行数
  359. -webkit-box-orient: vertical; //一定要写
  360. .price {
  361. font-size: 32rpx;
  362. display: inline-block;
  363. // margin-top: -8rpx;
  364. // margin-left: -20rpx;
  365. width: 120rpx;
  366. }
  367. }
  368. }
  369. .homestay-address {
  370. font-size: 24rpx;
  371. font-family: Source Han Sans CN;
  372. font-weight: 300;
  373. color: #666666;
  374. line-height: 36rpx;
  375. margin: 8rpx;
  376. padding-bottom: 10rpx;
  377. text-overflow: ellipsis; //超出省略号
  378. }
  379. }
  380. }
  381. .button {
  382. width: 40rpx;
  383. height: 40rpx;
  384. transform: translate(190rpx, -65rpx);
  385. text-align: center;
  386. line-height: 40rpx;
  387. // margin-right: 10rpx;
  388. border-radius: 50%;
  389. background-color: #229293;
  390. font-size: 18rpx;
  391. font-weight: bold;
  392. padding: 0;
  393. color: white;
  394. // line-height: 70rpx;
  395. }
  396. }
  397. .kong {
  398. display: flex;
  399. justify-content: space-between;
  400. flex-wrap: wrap;
  401. padding: 0 30rpx;
  402. margin-bottom: 30rpx;
  403. // .kong-box {
  404. // .kong-icon {
  405. // width: 120rpx;
  406. // height: 120rpx;
  407. // border-radius: 30rpx;
  408. // }
  409. // .kong-name {
  410. // margin-top: 10rpx;
  411. // text-align: center;
  412. // }
  413. // }
  414. // .kong-image {
  415. // width: 330rpx;
  416. // height: 200rpx;
  417. // margin-top: 30rpx;
  418. // background-repeat: no-repeat;
  419. // background-position: center top;
  420. // background-size: 100% 100%;
  421. // color: #ffffff;
  422. // font-weight: 900;
  423. // text-align: center;
  424. // padding-top: 80rpx;
  425. // }
  426. .homestay {
  427. background: #ffffff;
  428. margin-top: 30rpx;
  429. width: 330rpx;
  430. border-radius: 20rpx;
  431. .homestay-image {
  432. width: 100%;
  433. height: 300rpx;
  434. border-radius: 30rpx 30rpx 0 0;
  435. }
  436. .homestay-name {
  437. font-size: 30rpx;
  438. font-family: Source Han Sans CN;
  439. font-weight: 400;
  440. color: #222222;
  441. margin: 10rpx;
  442. overflow: hidden; //一定要写
  443. text-overflow: ellipsis; //超出省略号
  444. display: -webkit-box; //一定要写
  445. -webkit-line-clamp: 2; //控制行数
  446. -webkit-box-orient: vertical; //一定要写
  447. }
  448. .homestay-price {
  449. display: flex;
  450. color: red;
  451. font-size: 24rpx;
  452. margin: 20rpx 10rpx 0 10rpx;
  453. .price {
  454. font-size: 32rpx;
  455. margin-top: -8rpx;
  456. }
  457. }
  458. .homestay-address {
  459. font-size: 20rpx;
  460. font-family: Source Han Sans CN;
  461. font-weight: 300;
  462. color: #666666;
  463. line-height: 36rpx;
  464. margin: 10rpx;
  465. }
  466. }
  467. }