rank.wxss 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  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. .view-swiper {
  117. height: calc(100vh - 380rpx);
  118. width: 100%;
  119. }
  120. .swiper-scroll {
  121. height: 100%;
  122. }
  123. /* 隐藏空列表 */
  124. .hidden-list {
  125. display: none !important;
  126. }
  127. /* 股票列表 */
  128. .stock-list {
  129. display: flex;
  130. flex-direction: column;
  131. background: #ffffff;
  132. border-radius: 24rpx;
  133. padding: 0 32rpx;
  134. box-shadow: 0 8rpx 24rpx rgba(37, 52, 94, 0.08);
  135. }
  136. /* 表格视图 */
  137. .stock-table {
  138. background: #ffffff;
  139. border-radius: 24rpx;
  140. padding: 0 24rpx;
  141. box-shadow: 0 8rpx 24rpx rgba(37, 52, 94, 0.08);
  142. }
  143. .table-header {
  144. display: flex;
  145. align-items: center;
  146. padding: 24rpx 0;
  147. border-bottom: 1rpx solid #f1f2f6;
  148. }
  149. .table-header text {
  150. font-size: 24rpx;
  151. color: #999999;
  152. font-weight: 500;
  153. }
  154. .th-name {
  155. flex: 1;
  156. }
  157. .th-date {
  158. width: 160rpx;
  159. text-align: center;
  160. }
  161. .th-price {
  162. width: 140rpx;
  163. text-align: center;
  164. }
  165. .th-profit {
  166. width: 140rpx;
  167. text-align: right;
  168. }
  169. .table-row {
  170. display: flex;
  171. align-items: center;
  172. padding: 24rpx 0;
  173. border-bottom: 1rpx solid #f1f2f6;
  174. }
  175. .table-row:last-child {
  176. border-bottom: none;
  177. }
  178. .td-name {
  179. flex: 1;
  180. display: flex;
  181. flex-direction: column;
  182. }
  183. .td-name .stock-name {
  184. font-size: 28rpx;
  185. font-weight: 600;
  186. color: #222222;
  187. margin-bottom: 4rpx;
  188. }
  189. .stock-code-row {
  190. display: flex;
  191. align-items: center;
  192. }
  193. .stock-tag {
  194. font-size: 18rpx;
  195. padding: 2rpx 6rpx;
  196. border-radius: 4rpx;
  197. color: #ffffff;
  198. font-weight: 500;
  199. margin-right: 8rpx;
  200. }
  201. .market-sh {
  202. background: #FF3B30;
  203. }
  204. .market-sz {
  205. background: #34C759;
  206. }
  207. .market-cy {
  208. background: #FF9500;
  209. }
  210. .stock-code {
  211. font-size: 22rpx;
  212. color: #9ca2b5;
  213. }
  214. .td-date {
  215. width: 160rpx;
  216. text-align: center;
  217. font-size: 24rpx;
  218. color: #666666;
  219. }
  220. .td-price {
  221. width: 140rpx;
  222. text-align: center;
  223. font-size: 26rpx;
  224. color: #333333;
  225. }
  226. .td-profit {
  227. width: 140rpx;
  228. text-align: right;
  229. font-size: 26rpx;
  230. font-weight: 600;
  231. }
  232. .profit-up {
  233. color: #FF3B30;
  234. }
  235. .profit-down {
  236. color: #34C759;
  237. }
  238. /* 空状态 */
  239. .empty-content {
  240. display: flex;
  241. flex-direction: column;
  242. align-items: center;
  243. justify-content: center;
  244. padding: 200rpx 60rpx;
  245. }
  246. .empty-icon {
  247. font-size: 120rpx;
  248. margin-bottom: 40rpx;
  249. }
  250. .empty-text {
  251. font-size: 32rpx;
  252. font-weight: 600;
  253. color: #333333;
  254. margin-bottom: 16rpx;
  255. }
  256. .empty-desc {
  257. font-size: 26rpx;
  258. color: #999999;
  259. text-align: center;
  260. line-height: 1.6;
  261. }
  262. .bottom-safe-area {
  263. height: 80rpx;
  264. }
  265. /* 模糊效果 */
  266. .blur-content {
  267. filter: blur(8rpx);
  268. pointer-events: none;
  269. }
  270. /* 登录遮罩层 */
  271. .login-mask {
  272. position: fixed;
  273. top: 0;
  274. left: 0;
  275. right: 0;
  276. bottom: 0;
  277. background: rgba(0, 0, 0, 0.4);
  278. display: flex;
  279. align-items: center;
  280. justify-content: center;
  281. z-index: 999;
  282. }
  283. .login-prompt {
  284. width: 560rpx;
  285. max-width: 560rpx;
  286. background: #ffffff;
  287. border-radius: 24rpx;
  288. padding: 50rpx 40rpx;
  289. margin: 0 auto;
  290. text-align: center;
  291. box-shadow: 0 20rpx 60rpx rgba(0, 0, 0, 0.3);
  292. box-sizing: border-box;
  293. }
  294. .lock-icon {
  295. font-size: 72rpx;
  296. margin-bottom: 20rpx;
  297. }
  298. .prompt-title {
  299. display: block;
  300. font-size: 32rpx;
  301. font-weight: 600;
  302. color: #222222;
  303. margin-bottom: 12rpx;
  304. }
  305. .prompt-desc {
  306. display: block;
  307. font-size: 24rpx;
  308. color: #999999;
  309. line-height: 1.5;
  310. margin-bottom: 32rpx;
  311. }
  312. .login-button-native {
  313. width: 100%;
  314. height: 80rpx;
  315. background: linear-gradient(135deg, #4CAF50, #66BB6A);
  316. color: #ffffff;
  317. border-radius: 40rpx;
  318. font-size: 30rpx;
  319. font-weight: 600;
  320. box-shadow: 0 8rpx 24rpx rgba(76, 175, 80, 0.4);
  321. display: flex;
  322. align-items: center;
  323. justify-content: center;
  324. border: none;
  325. padding: 0;
  326. line-height: 80rpx;
  327. }
  328. .login-button-native::after {
  329. border: none;
  330. }