index.wxss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. /**index.wxss**/
  2. page{
  3. background: #F4F6F8;
  4. }
  5. .container {
  6. position: relative;
  7. display: flex;
  8. flex-direction: column;
  9. align-items: center;
  10. justify-content: space-between;
  11. box-sizing: border-box;
  12. background: #fff;
  13. margin-bottom: 16rpx;
  14. }
  15. ec-canvas {
  16. width: 100%;
  17. height: 50vh;
  18. }
  19. .title{
  20. border-left: 4px solid #FF5151;
  21. color: #FF5151;
  22. font-size: 32rpx;
  23. font-weight: 500;
  24. padding-left: 20rpx;
  25. padding-right: 40rpx;
  26. margin-bottom: 20rpx;
  27. position: relative;
  28. }
  29. .part{
  30. background: #fff;
  31. padding: 30rpx 0;
  32. margin-bottom: 16rpx;
  33. }
  34. .title image{
  35. position: absolute;
  36. right: 0;
  37. top: -15rpx;
  38. width: 240rpx;
  39. height: 75rpx;
  40. }
  41. .rank{
  42. position: absolute;
  43. top: -15rpx;
  44. right: 0rpx;
  45. color: #FF5151;
  46. padding-right: 24rpx;
  47. }
  48. .rank text{
  49. font-size: 44rpx;
  50. margin-right: 10rpx;
  51. color: #FF5151;
  52. position: relative;
  53. top: 6rpx;
  54. display: inline-block;
  55. width: 70rpx;
  56. text-align: center;
  57. }
  58. .part1{
  59. padding: 30rpx;
  60. margin-bottom: 1px;
  61. }
  62. .item{
  63. margin-bottom: 20rpx;
  64. font-weight: 500;
  65. }
  66. .item text{
  67. font-weight: 400;
  68. margin-right: 20rpx;
  69. }
  70. .item .tag{
  71. display: inline-block;
  72. color: #FFF;
  73. font-size: 20rpx;
  74. background: #333;
  75. border-radius: 4rpx;
  76. padding: 0 3px;
  77. }
  78. .item .red{
  79. background: #FF5151;
  80. }
  81. .item .blue{
  82. background: #4587FF;
  83. }
  84. .item .border{
  85. background: #fff;
  86. border: 1px solid #333;
  87. color: #333;
  88. }
  89. .list{
  90. display: inline-block;
  91. width: 85%;
  92. vertical-align: top;
  93. }
  94. .list view{
  95. display: inline-block;
  96. padding: 16rpx;
  97. background: #F4F6F8;
  98. border-radius: 8rpx;
  99. margin-bottom: 10rpx;
  100. margin-right: 10rpx;
  101. }
  102. .list text{
  103. display: block;
  104. color: #999;
  105. }
  106. /*首页跑马灯效果*/
  107. @keyframes around {
  108. from {
  109. margin-left: 90%;
  110. }
  111. to {
  112. /* var接受传入的变量 */
  113. margin-left: var(--marqueeWidth--);
  114. }
  115. }
  116. .zd{
  117. width: 80px;
  118. height: 100%;
  119. position: absolute;
  120. left: 0;
  121. top: 0;
  122. background: #fff;
  123. }
  124. .marquee_container{
  125. width: 100%;
  126. background: #fff;
  127. margin-top: 12px;
  128. box-shadow:0px 4px 12px 0px rgba(0,0,0,0.08);
  129. border-radius:4px;
  130. padding: 10px 12px;
  131. position: relative;
  132. overflow: hidden;
  133. }
  134. .marquee_container:hover{
  135. /* 不起作用 */
  136. animation-play-state: paused;
  137. }
  138. .marquee_text{
  139. color:#333;
  140. font-size: 28rpx;
  141. display: flex;
  142. white-space: nowrap;
  143. animation-name: around;
  144. animation-duration: 10s; /*过渡时间*/
  145. animation-iteration-count: infinite;
  146. animation-timing-function:linear;
  147. }
  148. .marquee_text navigator{
  149. margin-right: 20px;
  150. }
  151. .marquee_container image{
  152. width: 53px;
  153. max-height: 30px;
  154. position: absolute;
  155. left: 10px;
  156. top: 15px;
  157. }