home.wxss 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559
  1. @import "../../lib/style/main.wxss";
  2. page {
  3. margin-bottom: 40rpx;
  4. background: transparent;
  5. padding-bottom: calc(100rpx + constant(safe-area-inset-bottom));
  6. padding-bottom: calc(100rpx + env(safe-area-inset-bottom));
  7. display: flex;
  8. flex-direction: column;
  9. min-height: 100.1vh;
  10. }
  11. .navigation {
  12. position: fixed;
  13. left: 0;
  14. right: 0;
  15. bottom: 0;
  16. border-top: var(--themebor);
  17. padding: 0.4em;
  18. font-size: 0.7em;
  19. padding-bottom: 0.4em;
  20. padding-bottom: calc(0.4em + constant(safe-area-inset-bottom));
  21. padding-bottom: calc(0.4em + env(safe-area-inset-bottom));
  22. }
  23. .navigation .nav {
  24. color: var(--colorp);
  25. }
  26. .navigation .nav.act {
  27. color: var(--themecolor);
  28. }
  29. .navigation image {
  30. margin-bottom: 0.4em;
  31. width: 36rpx;
  32. height: 36rpx;
  33. margin: 0 4rpx;
  34. }
  35. .home, .activities, .community {
  36. flex: 1;
  37. }
  38. .swiperContainer {
  39. border-radius: var(--themerad);
  40. margin: var(--sizenor);
  41. overflow: hidden;
  42. }
  43. .swiperContainer swiper {
  44. height: 360rpx;
  45. }
  46. .swiperContainer image {
  47. width: 100%;
  48. display: block;
  49. }
  50. .hotNews, .partners {
  51. padding: var(--sizenor);
  52. }
  53. .title, .article, .article .attr, .levelTitle {
  54. display: flex;
  55. display: -webkit-flex;
  56. }
  57. .title, .article .attr, .levelTitle {
  58. align-items: center;
  59. }
  60. .title {
  61. justify-content: space-between;
  62. }
  63. .title .bar {
  64. background-color: var(--themedanger);
  65. height: calc(2 * var(--sizenor));
  66. width: 12rpx;
  67. margin-right: 0.7em;
  68. }
  69. .article {
  70. padding: var(--sizenor) 0;
  71. border-bottom: var(--themebor);
  72. }
  73. .article .imgbox {
  74. width: 240rpx;
  75. height: 240rpx;
  76. overflow: hidden;
  77. margin-right: 0.5em;
  78. }
  79. .article .content {
  80. flex: 1;
  81. height: 240rpx;
  82. overflow: hidden;
  83. }
  84. .article .attr {
  85. color: var(--colorattr);
  86. font-size: var(--txtsub);
  87. }
  88. .article .attr image {
  89. height: 1em;
  90. width: 1em;
  91. margin-right: 0.2em;
  92. }
  93. .article .content > view {
  94. margin-top: 0.5em;
  95. }
  96. .article .p {
  97. color: var(--colorp);
  98. text-overflow: ellipsis;
  99. font-size: var(--txtsub);
  100. }
  101. .partnersContainer {
  102. padding: var(--sizenor);
  103. }
  104. .partnersContainer .level {
  105. margin-top: 1em;
  106. }
  107. .partnersContainer .level:first-child {
  108. margin-top: 0;
  109. }
  110. .partnersContainer .levelTitle {
  111. color: #ccc;
  112. font-size: var(--txtsub);
  113. flex-direction: column;
  114. margin-bottom: var(--sizenor);
  115. }
  116. .level:first-child image {
  117. height: 100rpx;
  118. width: 300rpx;
  119. }
  120. .level image {
  121. height: 90rpx;
  122. width: 270rpx;
  123. }
  124. .searchContainer {
  125. padding: var(--sizenor);
  126. color: var(--colorp);
  127. font-size: var(--txtsub);
  128. }
  129. .search {
  130. padding: 0.5em 1em;
  131. border-radius: 40rpx;
  132. background-color: #efefef;
  133. height: 45rpx;
  134. box-sizing: content-box;
  135. }
  136. .search input {
  137. display: block;
  138. text-align: center;
  139. width: 100%;
  140. color: #333;
  141. }
  142. .activityContainer {
  143. padding: 0 var(--sizenor);
  144. }
  145. .activity {
  146. border-radius: var(--themerad);
  147. margin: 0.5em 0 1.2em 0;
  148. overflow: hidden;
  149. height: 360rpx;
  150. position: relative;
  151. }
  152. .activity image {
  153. width: 100%;
  154. height: 100%;
  155. }
  156. .activity .skiing {
  157. position: absolute;
  158. left: 0;
  159. right: 0;
  160. bottom: 0;
  161. padding: var(--sizesmr) var(--sizenor);
  162. color: #fff;
  163. background-color: rgba(0, 0, 0, 0.4);
  164. }
  165. .removeTag {
  166. position: absolute;
  167. top: 20rpx;
  168. left: 20rpx;
  169. font-size: 1.4em;
  170. width: 1.4em;
  171. height: 1.4em;
  172. }
  173. .tag {
  174. color: #fff;
  175. position: absolute;
  176. top: 19rpx;
  177. right: -38rpx;
  178. font-size: 0.76em;
  179. padding: 2rpx 40rpx;
  180. transform: rotate(45deg);
  181. -ms-transform: rotate(45deg);
  182. -moz-transform: rotate(45deg);
  183. -webkit-transform: rotate(45deg);
  184. -o-transform: rotate(45deg);
  185. }
  186. .tag.ready {
  187. background-color: #51b84b;
  188. }
  189. .tag.signing, .removeTag {
  190. background-color: #f64f5f;
  191. }
  192. .tag.finished {
  193. background-color: var(--darkgray);
  194. }
  195. .addTidings image {
  196. height: 88rpx;
  197. width: 88rpx;
  198. margin-top: -32rpx;
  199. }
  200. .mine {
  201. /* di */
  202. }
  203. .mineNav {
  204. background-color: #fff;
  205. }
  206. .mineNav > view.selected {
  207. border-bottom: 4rpx solid var(--theme);
  208. color: var(--theme);
  209. }
  210. .mineNav > view {
  211. margin-left: 32rpx;
  212. padding-bottom: 12rpx;
  213. margin-bottom: 8rpx;
  214. }
  215. .mineNav > view:first-child {
  216. margin-left: 0;
  217. }
  218. .myComment .comment {
  219. padding-bottom: 32rpx;
  220. }
  221. .comment image {
  222. width: 60rpx;
  223. height: 60rpx;
  224. }
  225. .myComment > .comment, .myAct {
  226. margin-bottom: 10rpx;
  227. }
  228. .myComment .nickname {
  229. color: #002063;
  230. }
  231. .myAct > view:last-child {
  232. margin-top: 12rpx;
  233. }
  234. .community {
  235. width: 100%;
  236. }
  237. .cover {
  238. position: fixed;
  239. top: 0;
  240. left: 0;
  241. right: 0;
  242. bottom: 0;
  243. z-index: 999;
  244. }
  245. .cover .navigation {
  246. border: none;
  247. }
  248. .cover .nav {
  249. opacity: 0;
  250. }
  251. .bfc {
  252. overflow: hidden;
  253. margin: 0 0.75em;
  254. }
  255. .bfc > view {
  256. float: left;
  257. width: 49.99999999999%;
  258. padding: 0.25em;
  259. overflow: hidden;
  260. height: calc(402rpx + 5.54em);
  261. }
  262. .imgtxt .img {
  263. overflow: hidden;
  264. position: relative;
  265. height: 400rpx;
  266. border-top-left-radius: 14rpx;
  267. border-top-right-radius: 14rpx;
  268. border: 1rpx solid #ececec;
  269. border-bottom: none;
  270. }
  271. .imgtxt .img .videoPlay {
  272. position: absolute;
  273. height: 100rpx;
  274. width: 100rpx;
  275. top: 50%;
  276. left: 50%;
  277. margin-top: -50rpx;
  278. margin-left: -50rpx;
  279. }
  280. .imgtxt .img.bordered {
  281. border-top-left-radius: 14rpx;
  282. border-top-right-radius: 14rpx;
  283. border: 1rpx solid #ececec;
  284. border-bottom: none;
  285. }
  286. .imgtxt image {
  287. border-top-left-radius: 14rpx;
  288. border-top-right-radius: 14rpx;
  289. width: 100%;
  290. height: 100%;
  291. }
  292. .imgtxt .text {
  293. padding: 0.5em;
  294. font-size: 0.88em;
  295. border-bottom-left-radius: 14rpx;
  296. border-bottom-right-radius: 14rpx;
  297. border: 1rpx solid #ececec;
  298. border-top: none;
  299. }
  300. .imgtxt .text .textcontent {
  301. height: 2.64em;
  302. overflow: hidden;
  303. }
  304. .imgtxt .more {
  305. margin-top: 0.5em;
  306. }
  307. .imgtxt .avatar .circle, .imgtxt .favor image {
  308. margin-right: 0.4em;
  309. }
  310. .imgtxt .avatar .circle {
  311. height: 1.4em;
  312. width: 1.4em;
  313. }
  314. .imgtxt .favorite {
  315. height: 1em;
  316. width: 1em;
  317. }
  318. .nav-list {
  319. position: fixed;
  320. bottom: 0;
  321. height: 160rpx;
  322. width: 100%;
  323. z-index: 10;
  324. background: transparent;
  325. }
  326. .nav-select {
  327. display: flex;
  328. position: relative;
  329. z-index: 10;
  330. background: transparent;
  331. }
  332. .nav-select .home,.nav-select .activity,.nav-select .community,.nav-select .me {
  333. flex: 1;
  334. margin-top: 75rpx;
  335. display: flex;
  336. align-items: center;
  337. flex-direction: column;
  338. background: transparent;
  339. }
  340. .nav-list image {
  341. width: 40rpx;
  342. height: 40rpx;
  343. }
  344. .nav-list .bg {
  345. width: 100%;
  346. position: absolute;
  347. z-index: 0;
  348. background: transparent;
  349. }
  350. .nav-list .release {
  351. flex: 1;
  352. display: flex;
  353. justify-content: center;
  354. }
  355. .nav-list .release image{
  356. width: 150rpx;
  357. position: relative;
  358. }
  359. .home-nav-list {
  360. height: 244rpx;
  361. position: relative;
  362. margin-top: -36rpx;
  363. }
  364. .home-nav-list > image{
  365. width: 100%;
  366. height: 100%;
  367. position: absolute;
  368. z-index: 0;
  369. }
  370. .home-nav-select {
  371. display: flex;
  372. position: relative;
  373. z-index: 9;
  374. height: 90%;
  375. width: 80%;
  376. margin: auto;
  377. font-size: 24rpx;
  378. font-weight: bold;
  379. color: #2E3149;
  380. }
  381. .home-nav-select > view{
  382. flex: 1;
  383. display: flex;
  384. justify-content: center;
  385. align-items: center;
  386. flex-direction: column;
  387. }
  388. .home-nav-select image{
  389. width: 120rpx;
  390. }
  391. .news-list .hot-title {
  392. display: flex;
  393. justify-content: space-between;
  394. margin-bottom: 30rpx;
  395. }
  396. .news-list .hot-title .title{
  397. width: 128rpx;
  398. height: 44rpx;
  399. font-size: 32rpx;
  400. font-weight: bold;
  401. color: #000000;
  402. line-height: 44rpx;
  403. margin-left: 48rpx;
  404. }
  405. .news-list .hot-title .more {
  406. height: 34rpx;
  407. color: #868AA8;
  408. display: flex;
  409. font-size: 24rpx;
  410. align-items: center;
  411. }
  412. .news-list .hot-title .more > image {
  413. width: 28rpx;
  414. margin: 0 34rpx 0 10rpx;
  415. position: relative;
  416. }
  417. .news-list .news-list-content .news-list-item{
  418. position: relative;
  419. margin-top: -30rpx;
  420. }
  421. .news-list .news-list-content .news-list-item >image{
  422. width: 100%;
  423. position: absolute;
  424. z-index: 0;
  425. }
  426. .news-list .news-list-content .news-list-item .content {
  427. padding: 56rpx 60rpx 68rpx 50rpx;
  428. box-sizing: border-box;
  429. display: flex;
  430. position: relative;
  431. z-index: 9;
  432. }
  433. .news-list .news-list-content .news-list-item .content .left{
  434. width: 292rpx;
  435. height: 174rpx;
  436. margin-right: 34rpx;
  437. position: relative;
  438. z-index: 0;
  439. }
  440. .news-list .news-list-content .news-list-item .content .right .title {
  441. width: 312rpx;
  442. height: 44rpx;
  443. font-size: 32rpx;
  444. font-weight: bold;
  445. color: #262626;
  446. line-height: 44rpx;
  447. margin-bottom: 14rpx;
  448. }
  449. .news-list .news-list-content .news-list-item .content .right .introduce {
  450. width: 288rpx;
  451. height: 68rpx;
  452. font-size: 24rpx;
  453. font-weight: bold;
  454. color: #868AA8;
  455. line-height: 34rpx;
  456. margin-bottom: 12rpx;
  457. text-overflow: -o-ellipsis-lastline;
  458. overflow: hidden;
  459. text-overflow: ellipsis;
  460. display: -webkit-box;
  461. -webkit-line-clamp: 2;
  462. line-clamp: 2;
  463. -webkit-box-orient: vertical;
  464. }
  465. .news-list .news-list-content .news-list-item .content .right .bottom {
  466. display: flex;
  467. justify-content: space-between;
  468. }
  469. .news-list .news-list-content .news-list-item .content .right .bottom .tagR {
  470. background: #83CEBE;
  471. padding: 0 20rpx;
  472. border-radius: 17rpx;
  473. line-height: 34rpx;
  474. font-size: 24rpx;
  475. color: #FFFFFF;
  476. height: 34rpx;
  477. }
  478. .news-list .news-list-content .news-list-item .content .right .bottom .time {
  479. font-size: 24rpx;
  480. font-weight: 400;
  481. color: #868AA8;
  482. line-height: 34rpx;
  483. }
  484. .z-i {
  485. position: relative;
  486. display: block;
  487. z-index: 99999;
  488. }