index.wxss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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. height: 60rpx;
  58. }
  59. .part1{
  60. padding: 30rpx;
  61. margin-bottom: 1px;
  62. }
  63. .item{
  64. margin-bottom: 20rpx;
  65. font-weight: 500;
  66. }
  67. .item text{
  68. font-weight: 400;
  69. margin-right: 20rpx;
  70. }
  71. .item .tag{
  72. display: inline-block;
  73. color: #FFF;
  74. font-size: 20rpx;
  75. background: #333;
  76. border-radius: 4rpx;
  77. padding: 0 3px;
  78. }
  79. .item .red{
  80. background: #FF5151;
  81. }
  82. .item .blue{
  83. background: #4587FF;
  84. }
  85. .item .border{
  86. background: #fff;
  87. border: 1px solid #333;
  88. color: #333;
  89. }
  90. .list{
  91. display: inline-block;
  92. width: 85%;
  93. vertical-align: top;
  94. }
  95. .list view{
  96. display: inline-block;
  97. padding: 16rpx;
  98. background: #F4F6F8;
  99. border-radius: 8rpx;
  100. margin-bottom: 10rpx;
  101. margin-right: 10rpx;
  102. }
  103. .list text{
  104. display: block;
  105. color: #999;
  106. }
  107. /*首页跑马灯效果*/
  108. @keyframes around {
  109. from {
  110. margin-left: 90%;
  111. }
  112. to {
  113. /* var接受传入的变量 */
  114. margin-left: -100%;
  115. }
  116. }
  117. .zd{
  118. width: 80px;
  119. height: 100%;
  120. position: absolute;
  121. left: 0;
  122. top: 0;
  123. background: #fff;
  124. }
  125. .marquee_container{
  126. width: 100%;
  127. background: #fff;
  128. margin-top: 12px;
  129. box-shadow:0px 4px 12px 0px rgba(0,0,0,0.08);
  130. border-radius:4px;
  131. padding: 10px 12px;
  132. position: relative;
  133. overflow: hidden;
  134. }
  135. .marquee_container:hover{
  136. /* 不起作用 */
  137. animation-play-state: paused;
  138. }
  139. .marquee_text{
  140. color:#333;
  141. font-size: 28rpx;
  142. display: flex;
  143. white-space: nowrap;
  144. animation-name: around;
  145. animation-duration: 10s; /*过渡时间*/
  146. animation-iteration-count: infinite;
  147. animation-timing-function:linear;
  148. }
  149. .marquee_text navigator{
  150. margin-right: 20px;
  151. }
  152. .marquee_container image{
  153. width: 53px;
  154. max-height: 30px;
  155. position: absolute;
  156. left: 10px;
  157. top: 15px;
  158. }