tab_pages.scss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. //头部背景
  2. .bg1 {
  3. display: flex;
  4. flex-direction: column;
  5. margin-top: -400rpx;
  6. // width: 1000rpx;
  7. height: 1200rpx;
  8. border-radius: 100rpx;
  9. border-bottom-right-radius: 0;
  10. background-color: $color-blue;
  11. z-index: 2;
  12. .scroll_view {
  13. white-space: nowrap;
  14. height: 400rpx;
  15. margin: 70rpx 0 50rpx 0;
  16. .view_box{
  17. margin: 0 50rpx;
  18. .scroll_view_item {
  19. position: relative;
  20. display: inline-block;
  21. vertical-align: top;
  22. margin: 0 50rpx 0 0rpx;
  23. width: 380rpx;
  24. height: 400rpx;
  25. border-radius: 30rpx;
  26. background-color: #FFF;
  27. .card_info {
  28. position: relative;
  29. display: flex;
  30. align-items: center;
  31. padding: 20rpx;
  32. .title {
  33. font-size: 30rpx;
  34. line-height: 40rpx;
  35. margin-left: 20rpx;
  36. }
  37. }
  38. .chart_box {
  39. width: 100%;
  40. height: 300rpx;
  41. }
  42. }
  43. }
  44. }
  45. }
  46. //课程表列
  47. .class_list {
  48. display: flex;
  49. flex-direction: column;
  50. justify-content: space-between;
  51. margin: 0 20rpx 20rpx 20rpx;
  52. .class_item {
  53. display: flex;
  54. flex-direction: column;
  55. justify-content: space-around;
  56. margin: 10rpx 0;
  57. padding: 10rpx;
  58. height: 120rpx;
  59. border-radius: $border-radius;
  60. background: linear-gradient(135deg, #f3f4f9 21px, #FFF 22px, #FFF 24px, transparent 24px, transparent 67px, #FFF 67px, #FFF 69px, transparent 69px), linear-gradient(225deg, #f3f4f9 21px, #FFF 22px, #FFF 24px, transparent 24px, transparent 67px, #FFF 67px, #FFF 69px, transparent 69px)0 64px;
  61. background-color: $page-color;
  62. background-size: 64px 128px;
  63. &_title {
  64. font-size: 32rpx;
  65. font-weight: bold;
  66. color: $title;
  67. }
  68. &_subtitle {
  69. font-size: 30rpx;
  70. font-weight: bold;
  71. color: $subtitle;
  72. overflow: hidden;
  73. text-overflow:ellipsis;
  74. white-space: nowrap;
  75. }
  76. &_detail {
  77. margin-left: 40rpx;
  78. line-height: 30rpx;
  79. font-size: 26rpx;
  80. font-weight: bold;
  81. color: $subtitle;
  82. }
  83. }
  84. }
  85. //统计卡片
  86. .total_card{
  87. display: flex;
  88. justify-content: space-around;
  89. margin: 2% 0;
  90. width: 100%;
  91. height: 220rpx;
  92. background-color: $color-pink;
  93. border-radius: $border-radius;
  94. }
  95. // 卡片图片
  96. .image {
  97. position: relative;
  98. top: -40rpx;
  99. right: -40rpx;
  100. height: 300rpx;
  101. width: 300rpx;
  102. background-size: cover;
  103. background-repeat: no-repeat;
  104. z-index: 2;
  105. }
  106. // 卡片字体
  107. ._title{
  108. font-size: 48rpx;
  109. font-weight: bold;
  110. color: #FFF;
  111. }
  112. ._subtitle{
  113. font-size: 32rpx;
  114. color: #FFF;
  115. }
  116. ._unit{
  117. margin-left: 20rpx;
  118. font-size: 26rpx;
  119. opacity: 0.7;
  120. color: #FFF;
  121. }
  122. .scroll_view_bottom{
  123. white-space: nowrap;
  124. height: 400rpx;
  125. ._item{
  126. margin: 0 20rpx;
  127. display: inline-block;
  128. vertical-align: top;
  129. background-color: #FFF;
  130. border-radius: $border-radius;
  131. height: 350rpx;
  132. width: 300rpx;
  133. overflow: hidden;
  134. z-index: 55;
  135. .image_box{
  136. height: 220rpx;
  137. width: 100%;
  138. border-radius: $border-radius;
  139. background-size: cover; //背景图片自适应
  140. background-repeat: no-repeat;
  141. z-index: 50;
  142. }
  143. }
  144. }