index.wxss 2.7 KB

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