index.scss 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. page{
  2. background-color: $page-bg;
  3. color: $uni-text-color;
  4. }
  5. /* 顶部横向导航 */
  6. .top-nav-wrapper {
  7. position: fixed;
  8. top: calc(var(--status-bar-height) + 44px);
  9. left: 0;
  10. right: 0;
  11. z-index: 999;
  12. background-color: #fff;
  13. border-bottom: 1rpx solid #eee;
  14. }
  15. .top-nav {
  16. width: 100%;
  17. white-space: nowrap;
  18. padding: 0 20rpx;
  19. height: 80rpx;
  20. box-sizing: border-box;
  21. }
  22. .nav-tab {
  23. display: inline-block;
  24. padding: 0 30rpx;
  25. height: 80rpx;
  26. line-height: 80rpx;
  27. font-size: 28rpx;
  28. color: #666;
  29. text-align: center;
  30. flex-shrink: 0;
  31. position: relative;
  32. }
  33. .nav-tab.active {
  34. color: $j-primary-border-green;
  35. font-weight: 600;
  36. }
  37. .nav-tab.active::after {
  38. content: '';
  39. position: absolute;
  40. bottom: 0;
  41. left: 50%;
  42. transform: translateX(-50%);
  43. width: 60rpx;
  44. height: 4rpx;
  45. background-color: $j-primary-border-green;
  46. border-radius: 2rpx;
  47. }
  48. .content-wrapper {
  49. padding-top: calc(var(--status-bar-height) + 80rpx);
  50. }
  51. /* 基本信息样式 */
  52. .nav{
  53. .nav-content{
  54. padding: 30rpx 0;
  55. background-color: $uni-bg-color;
  56. display: flex;
  57. flex-direction: row;
  58. flex-wrap: wrap;
  59. .nav-item{
  60. position: relative;
  61. display: flex;
  62. flex-direction: column;
  63. align-items: center;
  64. width: 20%;
  65. height: 120rpx;
  66. margin: 20rpx 0;
  67. span{
  68. //display: block;
  69. font-size: 60rpx;
  70. color:$j-primary-border-green ;
  71. padding-bottom: 15rpx;
  72. }
  73. label{
  74. //color:$uni-text-color-grey ;
  75. font-size: $uni-font-size-sm;
  76. width: 100%;
  77. text-align: center;
  78. overflow: hidden;
  79. text-overflow: ellipsis;
  80. white-space: nowrap;
  81. }
  82. .badge {
  83. position: absolute;
  84. top: -8rpx;
  85. left: 100rpx;
  86. font-size: 24rpx;
  87. padding: 0rpx 10rpx;
  88. border-radius: 38rpx;
  89. background-color: #ff4949;
  90. color: #fff;
  91. font-style: normal;
  92. }
  93. }
  94. }
  95. }