rank.wxss 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. .page-rank {
  2. display: flex;
  3. flex-direction: column;
  4. background: #f5f6fb;
  5. height: 100vh;
  6. }
  7. .scroll-view {
  8. flex: 1;
  9. height: 0;
  10. }
  11. .content-wrapper {
  12. padding: 32rpx;
  13. min-height: 100%;
  14. }
  15. /* 上证指数卡片 */
  16. .index-card {
  17. display: flex;
  18. align-items: center;
  19. justify-content: space-between;
  20. background: #ffffff;
  21. border-radius: 24rpx;
  22. padding: 32rpx;
  23. margin-bottom: 24rpx;
  24. box-shadow: 0 8rpx 24rpx rgba(37, 52, 94, 0.08);
  25. }
  26. .index-left {
  27. display: flex;
  28. flex-direction: column;
  29. }
  30. .index-price-row {
  31. display: flex;
  32. align-items: baseline;
  33. margin-bottom: 8rpx;
  34. }
  35. .index-price {
  36. font-size: 48rpx;
  37. font-weight: 700;
  38. margin-right: 16rpx;
  39. }
  40. .index-change {
  41. font-size: 28rpx;
  42. font-weight: 600;
  43. }
  44. .index-name-row {
  45. display: flex;
  46. align-items: center;
  47. }
  48. .index-name {
  49. font-size: 26rpx;
  50. color: #666666;
  51. margin-right: 12rpx;
  52. }
  53. .index-percent {
  54. font-size: 26rpx;
  55. font-weight: 600;
  56. }
  57. .index-up {
  58. color: #FF3B30;
  59. }
  60. .index-down {
  61. color: #34C759;
  62. }
  63. /* 分段控制器 */
  64. .segment-control {
  65. display: flex;
  66. align-items: center;
  67. background: #F5F7FA;
  68. border-radius: 32rpx;
  69. padding: 6rpx;
  70. margin-bottom: 24rpx;
  71. position: relative;
  72. height: 64rpx;
  73. box-sizing: border-box;
  74. }
  75. .segment-slider {
  76. position: absolute;
  77. left: 6rpx;
  78. top: 6rpx;
  79. width: calc(50% - 6rpx);
  80. height: calc(100% - 12rpx);
  81. background: #ffffff;
  82. border-radius: 26rpx;
  83. box-shadow: 0 4rpx 8rpx rgba(0, 0, 0, 0.05);
  84. transition: transform 0.3s ease;
  85. z-index: 0;
  86. }
  87. .segment-slider.slider-right {
  88. transform: translateX(100%);
  89. }
  90. .segment-item {
  91. flex: 1;
  92. display: flex;
  93. align-items: center;
  94. justify-content: center;
  95. height: 100%;
  96. z-index: 1;
  97. transition: color 0.3s ease;
  98. }
  99. .segment-icon {
  100. font-size: 24rpx;
  101. margin-right: 8rpx;
  102. color: #999999;
  103. transition: color 0.3s ease;
  104. }
  105. .segment-text {
  106. font-size: 26rpx;
  107. color: #999999;
  108. font-weight: 500;
  109. transition: color 0.3s ease;
  110. }
  111. .segment-active .segment-icon,
  112. .segment-active .segment-text {
  113. color: #E53935;
  114. }
  115. /* 隐藏空列表 */
  116. .hidden-list {
  117. display: none !important;
  118. }
  119. /* 股票列表 */
  120. .stock-list {
  121. display: flex;
  122. flex-direction: column;
  123. background: #ffffff;
  124. border-radius: 24rpx;
  125. padding: 0 32rpx;
  126. box-shadow: 0 8rpx 24rpx rgba(37, 52, 94, 0.08);
  127. }
  128. /* 表格视图 */
  129. .stock-table {
  130. background: #ffffff;
  131. border-radius: 24rpx;
  132. padding: 0 24rpx;
  133. box-shadow: 0 8rpx 24rpx rgba(37, 52, 94, 0.08);
  134. }
  135. .table-header {
  136. display: flex;
  137. align-items: center;
  138. padding: 24rpx 0;
  139. border-bottom: 1rpx solid #f1f2f6;
  140. }
  141. .table-header text {
  142. font-size: 24rpx;
  143. color: #999999;
  144. font-weight: 500;
  145. }
  146. .th-name {
  147. flex: 1;
  148. }
  149. .th-date {
  150. width: 160rpx;
  151. text-align: center;
  152. }
  153. .th-price {
  154. width: 140rpx;
  155. text-align: center;
  156. }
  157. .th-profit {
  158. width: 140rpx;
  159. text-align: right;
  160. }
  161. .table-row {
  162. display: flex;
  163. align-items: center;
  164. padding: 24rpx 0;
  165. border-bottom: 1rpx solid #f1f2f6;
  166. }
  167. .table-row:last-child {
  168. border-bottom: none;
  169. }
  170. .td-name {
  171. flex: 1;
  172. display: flex;
  173. flex-direction: column;
  174. }
  175. .td-name .stock-name {
  176. font-size: 28rpx;
  177. font-weight: 600;
  178. color: #222222;
  179. margin-bottom: 4rpx;
  180. }
  181. .stock-code-row {
  182. display: flex;
  183. align-items: center;
  184. }
  185. .stock-tag {
  186. font-size: 18rpx;
  187. padding: 2rpx 6rpx;
  188. border-radius: 4rpx;
  189. color: #ffffff;
  190. font-weight: 500;
  191. margin-right: 8rpx;
  192. }
  193. .market-sh {
  194. background: #FF3B30;
  195. }
  196. .market-sz {
  197. background: #34C759;
  198. }
  199. .market-cy {
  200. background: #FF9500;
  201. }
  202. .stock-code {
  203. font-size: 22rpx;
  204. color: #9ca2b5;
  205. }
  206. .td-date {
  207. width: 160rpx;
  208. text-align: center;
  209. font-size: 24rpx;
  210. color: #666666;
  211. }
  212. .td-price {
  213. width: 140rpx;
  214. text-align: center;
  215. font-size: 26rpx;
  216. color: #333333;
  217. }
  218. .td-profit {
  219. width: 140rpx;
  220. text-align: right;
  221. font-size: 26rpx;
  222. font-weight: 600;
  223. }
  224. .profit-up {
  225. color: #FF3B30;
  226. }
  227. .profit-down {
  228. color: #34C759;
  229. }
  230. /* 空状态 */
  231. .empty-content {
  232. display: flex;
  233. flex-direction: column;
  234. align-items: center;
  235. justify-content: center;
  236. padding: 200rpx 60rpx;
  237. }
  238. .empty-icon {
  239. font-size: 120rpx;
  240. margin-bottom: 40rpx;
  241. }
  242. .empty-text {
  243. font-size: 32rpx;
  244. font-weight: 600;
  245. color: #333333;
  246. margin-bottom: 16rpx;
  247. }
  248. .empty-desc {
  249. font-size: 26rpx;
  250. color: #999999;
  251. text-align: center;
  252. line-height: 1.6;
  253. }
  254. .bottom-safe-area {
  255. height: 80rpx;
  256. }
  257. /* 模糊效果 */
  258. .blur-content {
  259. filter: blur(8rpx);
  260. pointer-events: none;
  261. }
  262. /* 登录遮罩层 */
  263. .login-mask {
  264. position: fixed;
  265. top: 0;
  266. left: 0;
  267. right: 0;
  268. bottom: 0;
  269. background: rgba(0, 0, 0, 0.4);
  270. display: flex;
  271. align-items: center;
  272. justify-content: center;
  273. z-index: 999;
  274. }
  275. .login-prompt {
  276. width: 560rpx;
  277. max-width: 560rpx;
  278. background: #ffffff;
  279. border-radius: 24rpx;
  280. padding: 50rpx 40rpx;
  281. margin: 0 auto;
  282. text-align: center;
  283. box-shadow: 0 20rpx 60rpx rgba(0, 0, 0, 0.3);
  284. box-sizing: border-box;
  285. }
  286. .lock-icon {
  287. font-size: 72rpx;
  288. margin-bottom: 20rpx;
  289. }
  290. .prompt-title {
  291. display: block;
  292. font-size: 32rpx;
  293. font-weight: 600;
  294. color: #222222;
  295. margin-bottom: 12rpx;
  296. }
  297. .prompt-desc {
  298. display: block;
  299. font-size: 24rpx;
  300. color: #999999;
  301. line-height: 1.5;
  302. margin-bottom: 32rpx;
  303. }
  304. .login-button-native {
  305. width: 100%;
  306. height: 80rpx;
  307. background: linear-gradient(135deg, #4CAF50, #66BB6A);
  308. color: #ffffff;
  309. border-radius: 40rpx;
  310. font-size: 30rpx;
  311. font-weight: 600;
  312. box-shadow: 0 8rpx 24rpx rgba(76, 175, 80, 0.4);
  313. display: flex;
  314. align-items: center;
  315. justify-content: center;
  316. border: none;
  317. padding: 0;
  318. line-height: 80rpx;
  319. }
  320. .login-button-native::after {
  321. border: none;
  322. }