rank.wxss 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  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. .view-switch {
  65. display: flex;
  66. justify-content: flex-end;
  67. margin-bottom: 16rpx;
  68. }
  69. .switch-btn {
  70. width: 64rpx;
  71. height: 64rpx;
  72. background: #ffffff;
  73. border-radius: 12rpx;
  74. display: flex;
  75. align-items: center;
  76. justify-content: center;
  77. box-shadow: 0 4rpx 12rpx rgba(37, 52, 94, 0.08);
  78. }
  79. .switch-btn:active {
  80. background: #f5f6fb;
  81. }
  82. .switch-icon {
  83. font-size: 28rpx;
  84. }
  85. /* 隐藏空列表 */
  86. .hidden-list {
  87. display: none !important;
  88. }
  89. /* 股票列表 */
  90. .stock-list {
  91. display: flex;
  92. flex-direction: column;
  93. background: #ffffff;
  94. border-radius: 24rpx;
  95. padding: 0 32rpx;
  96. box-shadow: 0 8rpx 24rpx rgba(37, 52, 94, 0.08);
  97. }
  98. /* 表格视图 */
  99. .stock-table {
  100. background: #ffffff;
  101. border-radius: 24rpx;
  102. padding: 0 24rpx;
  103. box-shadow: 0 8rpx 24rpx rgba(37, 52, 94, 0.08);
  104. }
  105. .table-header {
  106. display: flex;
  107. align-items: center;
  108. padding: 24rpx 0;
  109. border-bottom: 1rpx solid #f1f2f6;
  110. }
  111. .table-header text {
  112. font-size: 24rpx;
  113. color: #999999;
  114. font-weight: 500;
  115. }
  116. .th-name {
  117. flex: 1;
  118. }
  119. .th-date {
  120. width: 160rpx;
  121. text-align: center;
  122. }
  123. .th-price {
  124. width: 140rpx;
  125. text-align: center;
  126. }
  127. .th-profit {
  128. width: 140rpx;
  129. text-align: right;
  130. }
  131. .table-row {
  132. display: flex;
  133. align-items: center;
  134. padding: 24rpx 0;
  135. border-bottom: 1rpx solid #f1f2f6;
  136. }
  137. .table-row:last-child {
  138. border-bottom: none;
  139. }
  140. .td-name {
  141. flex: 1;
  142. display: flex;
  143. flex-direction: column;
  144. }
  145. .td-name .stock-name {
  146. font-size: 28rpx;
  147. font-weight: 600;
  148. color: #222222;
  149. margin-bottom: 4rpx;
  150. }
  151. .stock-code-row {
  152. display: flex;
  153. align-items: center;
  154. }
  155. .stock-tag {
  156. font-size: 18rpx;
  157. padding: 2rpx 6rpx;
  158. border-radius: 4rpx;
  159. color: #ffffff;
  160. font-weight: 500;
  161. margin-right: 8rpx;
  162. }
  163. .market-sh {
  164. background: #FF3B30;
  165. }
  166. .market-sz {
  167. background: #34C759;
  168. }
  169. .market-cy {
  170. background: #FF9500;
  171. }
  172. .stock-code {
  173. font-size: 22rpx;
  174. color: #9ca2b5;
  175. }
  176. .td-date {
  177. width: 160rpx;
  178. text-align: center;
  179. font-size: 24rpx;
  180. color: #666666;
  181. }
  182. .td-price {
  183. width: 140rpx;
  184. text-align: center;
  185. font-size: 26rpx;
  186. color: #333333;
  187. }
  188. .td-profit {
  189. width: 140rpx;
  190. text-align: right;
  191. font-size: 26rpx;
  192. font-weight: 600;
  193. }
  194. .profit-up {
  195. color: #FF3B30;
  196. }
  197. .profit-down {
  198. color: #34C759;
  199. }
  200. /* 空状态 */
  201. .empty-content {
  202. display: flex;
  203. flex-direction: column;
  204. align-items: center;
  205. justify-content: center;
  206. padding: 200rpx 60rpx;
  207. }
  208. .empty-icon {
  209. font-size: 120rpx;
  210. margin-bottom: 40rpx;
  211. }
  212. .empty-text {
  213. font-size: 32rpx;
  214. font-weight: 600;
  215. color: #333333;
  216. margin-bottom: 16rpx;
  217. }
  218. .empty-desc {
  219. font-size: 26rpx;
  220. color: #999999;
  221. text-align: center;
  222. line-height: 1.6;
  223. }
  224. .bottom-safe-area {
  225. height: 80rpx;
  226. }
  227. /* 模糊效果 */
  228. .blur-content {
  229. filter: blur(8rpx);
  230. pointer-events: none;
  231. }
  232. /* 登录遮罩层 */
  233. .login-mask {
  234. position: fixed;
  235. top: 0;
  236. left: 0;
  237. right: 0;
  238. bottom: 0;
  239. background: rgba(0, 0, 0, 0.4);
  240. display: flex;
  241. align-items: center;
  242. justify-content: center;
  243. z-index: 999;
  244. }
  245. .login-prompt {
  246. width: 560rpx;
  247. max-width: 560rpx;
  248. background: #ffffff;
  249. border-radius: 24rpx;
  250. padding: 50rpx 40rpx;
  251. margin: 0 auto;
  252. text-align: center;
  253. box-shadow: 0 20rpx 60rpx rgba(0, 0, 0, 0.3);
  254. box-sizing: border-box;
  255. }
  256. .lock-icon {
  257. font-size: 72rpx;
  258. margin-bottom: 20rpx;
  259. }
  260. .prompt-title {
  261. display: block;
  262. font-size: 32rpx;
  263. font-weight: 600;
  264. color: #222222;
  265. margin-bottom: 12rpx;
  266. }
  267. .prompt-desc {
  268. display: block;
  269. font-size: 24rpx;
  270. color: #999999;
  271. line-height: 1.5;
  272. margin-bottom: 32rpx;
  273. }
  274. .login-button-native {
  275. width: 100%;
  276. height: 80rpx;
  277. background: linear-gradient(135deg, #4CAF50, #66BB6A);
  278. color: #ffffff;
  279. border-radius: 40rpx;
  280. font-size: 30rpx;
  281. font-weight: 600;
  282. box-shadow: 0 8rpx 24rpx rgba(76, 175, 80, 0.4);
  283. display: flex;
  284. align-items: center;
  285. justify-content: center;
  286. border: none;
  287. padding: 0;
  288. line-height: 80rpx;
  289. }
  290. .login-button-native::after {
  291. border: none;
  292. }