rank.wxss 4.8 KB

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