index.wxss 2.6 KB

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