index.wxss 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. /**index.wxss**/
  2. /*首页跑马灯效果*/
  3. @keyframes around {
  4. from {
  5. margin-left: 90%;
  6. }
  7. to {
  8. /* var接受传入的变量 */
  9. margin-left: -100%;
  10. }
  11. }
  12. .zd{
  13. width: 80px;
  14. height: 100%;
  15. position: absolute;
  16. left: 0;
  17. top: 0;
  18. background: #fff;
  19. }
  20. .marquee_container{
  21. width: 100%;
  22. background: #fff;
  23. /* box-shadow:0px 4px 12px 0px rgba(0,0,0,0.08); */
  24. border-radius:4px;
  25. padding: 12.5px 12px;
  26. position: relative;
  27. overflow: hidden;
  28. height: 90rpx;
  29. }
  30. .marquee_container:hover{
  31. /* 不起作用 */
  32. animation-play-state: paused;
  33. }
  34. .marquee_text{
  35. color:#333;
  36. font-size: 28rpx;
  37. display: flex;
  38. white-space: nowrap;
  39. animation-name: around;
  40. animation-duration: 15s; /*过渡时间*/
  41. animation-iteration-count: infinite;
  42. animation-timing-function:linear;
  43. }
  44. .marquee_text navigator{
  45. margin-right: 20px;
  46. }
  47. .marquee_container image{
  48. width: 60px;
  49. max-height: 30px;
  50. position: absolute;
  51. left: 10px;
  52. top: 30rpx;
  53. }
  54. page{
  55. background: #F7F7F7;
  56. }
  57. .tab{
  58. background: #fff;
  59. margin-top: 16rpx;
  60. padding:0 25rpx;
  61. display: flex;
  62. justify-content: space-between;
  63. }
  64. .tab view{
  65. font-size: 28rpx;
  66. color: #333;
  67. line-height: 90rpx;
  68. transition: all .1s linear;
  69. }
  70. .tab .act{
  71. font-size: 38rpx;
  72. font-weight: 500;
  73. line-height: 88rpx;
  74. }
  75. swiper{
  76. background: #fff;
  77. height: calc(100vh - 92rpx - 100rpx);
  78. }
  79. scroll-view{
  80. height: 100%;
  81. padding: 20rpx 25rpx 0;
  82. }
  83. .item1{
  84. border-bottom: 1px solid #F5F5F5;
  85. margin-bottom: 30rpx;
  86. }
  87. .name{
  88. font-size: 32rpx;
  89. font-weight: 500;
  90. margin-bottom: 20rpx;
  91. }
  92. .name>text{
  93. color: #AAAAAA;
  94. font-size: 20rpx;
  95. border: 1px solid #AAAAAA;
  96. border-radius: 4rpx;
  97. font-weight: 400;
  98. padding: 0 4rpx;
  99. position: relative;
  100. top: -3rpx;
  101. }
  102. .name view{
  103. float: right;
  104. color: #CE994F;
  105. font-size: 22rpx;
  106. text-align: center;
  107. position: relative;
  108. top: -5rpx;
  109. }
  110. .name view text{
  111. display: block;
  112. font-size: 32rpx;
  113. color: #CE994F;
  114. position: relative;
  115. top: -8rpx;
  116. }
  117. .info{
  118. font-size: 30rpx;
  119. padding: 10rpx 0;
  120. display: flex;
  121. flex-wrap: wrap;
  122. }
  123. .info view{
  124. color: #666;
  125. width: 85%;
  126. vertical-align: top;
  127. }
  128. .info label{
  129. font-weight: 500;
  130. color: #333;
  131. }
  132. .imgs{
  133. margin: 30rpx 0;
  134. }
  135. .img{
  136. display: inline-block;
  137. width: 224rpx;
  138. height: 224rpx;
  139. border-radius: 8rpx;
  140. margin-right: 8rpx;
  141. margin-bottom: 8rpx;
  142. }
  143. /* //热门股票 */
  144. .item2{
  145. padding: 20rpx 25rpx 0;
  146. }
  147. .date-picker{
  148. text-align: center;
  149. font-weight: 500;
  150. font-size: 32rpx;
  151. }
  152. .hot{
  153. border-radius: 16rpx;
  154. margin-top: 30rpx;
  155. box-shadow: 0px 0px 12px 0px rgba(218, 217, 217, 0.5);
  156. }
  157. .tab1{
  158. color: #D94B24;
  159. padding: 0 24rpx;
  160. font-weight: 500;
  161. font-size: 40rpx;
  162. line-height: 88rpx;
  163. border-radius: 16rpx 16rpx 0px 0px;
  164. background: linear-gradient(124deg, #FEEAEC 0%, #FFAEAF 100%);
  165. }
  166. .tab2{
  167. color: #2383E5;
  168. padding: 0 24rpx;
  169. font-weight: 500;
  170. font-size: 40rpx;
  171. line-height: 88rpx;
  172. border-radius: 16rpx 16rpx 0px 0px;
  173. background: linear-gradient(124deg, #ECF6FF 0%, #B4D9FF 100%);
  174. }
  175. .hot image{
  176. width: 54rpx;
  177. position: relative;
  178. top:3rpx;
  179. }
  180. .gp{
  181. display: flex;
  182. justify-content: space-between;
  183. padding: 24rpx;
  184. }
  185. .gp-name{
  186. font-weight: 500;
  187. font-size: 32rpx;
  188. width: 70%;
  189. padding-left: 8rpx;
  190. }
  191. .num{
  192. font-size: 28rpx;
  193. color: #666;
  194. text-align: right;
  195. width: 200rpx;
  196. }
  197. .num text{
  198. font-size: 36rpx;
  199. font-weight: 500;
  200. }
  201. .more{
  202. display: block;
  203. border-top: 1px solid #F5F5F5;
  204. line-height: 94rpx;
  205. text-align: center;
  206. font-size: 28rpx;
  207. color: #333;
  208. }
  209. .more image{
  210. width: 24rpx;
  211. position: relative;
  212. top: 3rpx;
  213. }
  214. /* 胜率 */
  215. .win{
  216. position: relative;
  217. padding: 30rpx 0;
  218. padding-left: 59rpx;
  219. border-bottom: 1px solid #F5F5F5;
  220. }
  221. .win image{
  222. width: 50rpx;
  223. position: absolute;
  224. top: 33rpx;
  225. left: 0;
  226. }
  227. .hot .rank{
  228. width:50rpx;text-align:center;color:#CE994F;
  229. display: inline-block;
  230. }
  231. .win .rank{
  232. position: absolute;
  233. top: 32rpx;
  234. left: 0;
  235. width:50rpx;text-align:center;color:#CE994F;
  236. }
  237. .win .name view{
  238. float: right;
  239. color: #666;
  240. font-size: 28rpx;
  241. text-align: center;
  242. position: relative;
  243. top: 0;
  244. font-weight: 400;
  245. }
  246. .win .name view text{
  247. font-size: 36rpx;
  248. color: #E90001;
  249. display: inline;
  250. top: 0;
  251. }
  252. .win .tag{
  253. font-size: 28rpx;
  254. color: #CE994F;
  255. border: 1px solid #CE994F;
  256. border-radius: 8rpx;
  257. margin-right: 8rpx;
  258. font-weight: 400;
  259. padding: 0 8rpx;
  260. margin-bottom: 10rpx;
  261. }
  262. /* 冠军心得 */
  263. .list{
  264. display: flex;
  265. justify-content: space-between;
  266. border-bottom: 1px solid #F5F5F5;
  267. padding: 24rpx 0;
  268. }
  269. .list image{
  270. width: 174rpx;
  271. height: 120rpx;
  272. border-radius: 8rpx;
  273. }
  274. .list>view{
  275. width: 70%;
  276. font-size: 32rpx;
  277. }
  278. .list .title{
  279. height: 88rpx;
  280. }
  281. .list text{
  282. font-size: 28rpx;
  283. color: #999;
  284. }
  285. .exp{
  286. color: #D94B24;
  287. font-size: 24rpx;
  288. }