skillsTraining.scss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. /* #ifndef H5 */
  2. page {
  3. height: 100%;
  4. background-color: #f2f2f2;
  5. font-family: 'PingFangSC-Regular, PingFang SC';
  6. }
  7. /* #endif */
  8. ::v-deep {
  9. uni-swiper .uni-swiper-dot {
  10. width: 10rpx;
  11. height: 10rpx;
  12. }
  13. uni-swiper .uni-swiper-dot-active {
  14. width: 26rpx;
  15. height: 10rpx;
  16. border-radius: 6rpx;
  17. }
  18. }
  19. .training {
  20. &-banner {
  21. width: 100%;
  22. height: 408rpx;
  23. image {
  24. width: 100%;
  25. height: 408rpx;
  26. }
  27. }
  28. &-total {
  29. padding: 0 30rpx;
  30. height: 164rpx;
  31. background: linear-gradient(90deg, #FEA460 0%, #FB6C59 100%);
  32. display: flex;
  33. justify-content: space-between;
  34. align-items: center;
  35. color: #fff;
  36. font-size: 30rpx;
  37. &-left {
  38. view {
  39. &:first-child {
  40. font-size: 40rpx;
  41. font-weight: 700;
  42. margin-bottom: 6rpx;
  43. color: rgba($color: #fff, $alpha: 0.9);
  44. }
  45. }
  46. }
  47. }
  48. &-notice {
  49. padding: 42rpx 30rpx;
  50. &-title {
  51. display: flex;
  52. justify-content: space-between;
  53. align-items: center;
  54. margin-bottom: 22rpx;
  55. view {
  56. &:first-child {
  57. color: #424242;
  58. font-size: 36rpx;
  59. }
  60. &:last-child {
  61. color: #A3A3A3;
  62. font-size: 26rpx;
  63. }
  64. }
  65. }
  66. &-content {
  67. padding: 40rpx 32rpx 20rpx;
  68. border-radius: 10rpx;
  69. background-color: #fff;
  70. .swiper {
  71. height: 270rpx;
  72. &-item {
  73. display: flex;
  74. align-items: center;
  75. .left {
  76. width: 204rpx;
  77. height: 220rpx;
  78. margin-right: 22rpx;
  79. }
  80. .right {
  81. text-align: left;
  82. width: calc(100% - 226rpx);
  83. view {
  84. &:first-child {
  85. font-size: 36rpx;
  86. color: #101010;
  87. font-weight: 500;
  88. margin-bottom: 12rpx;
  89. }
  90. &:nth-child(2) {
  91. font-size: 28rpx;
  92. color: #525252;
  93. }
  94. &:nth-child(3) {
  95. font-size: 28rpx;
  96. color: #525252;
  97. margin-top: 8rpx;
  98. white-space: nowrap;/* 规定文本是否折行 */
  99. overflow: hidden;/* 规定超出内容宽度的元素隐藏 */
  100. text-overflow: ellipsis;
  101. }
  102. }
  103. .btn {
  104. background-color: #709078;
  105. width: 120rpx;
  106. height: 50rpx;
  107. line-height: 50rpx;
  108. text-align: center;
  109. border-radius: 40rpx;
  110. font-size: 24rpx;
  111. color: #fff;
  112. margin-top: 20rpx;
  113. }
  114. }
  115. }
  116. }
  117. }
  118. }
  119. &-package {
  120. padding: 0 30rpx 160rpx;
  121. &-title {
  122. display: flex;
  123. justify-content: space-between;
  124. align-items: center;
  125. margin-bottom: 22rpx;
  126. view {
  127. &:first-child {
  128. color: #424242;
  129. font-size: 36rpx;
  130. }
  131. // &:last-child {
  132. // color: #A3A3A3;
  133. // font-size: 24rpx;
  134. // }
  135. }
  136. }
  137. &-list {
  138. padding: 66rpx 32rpx 28rpx;
  139. background-color: #fff;
  140. border-radius: 10rpx;
  141. display: flex;
  142. flex-wrap: wrap;
  143. &-item {
  144. width: calc(50% - 12rpx);
  145. margin-right: 20rpx;
  146. margin-bottom: 38rpx;
  147. &:nth-child(2n) {
  148. margin-right: 0;
  149. }
  150. .border-1 {
  151. border: solid 1px #d0d0d0;
  152. border-radius: 12rpx;
  153. margin-right: -2rpx;
  154. }
  155. view {
  156. &:nth-child(2) {
  157. color: #3F3F3F;
  158. font-size: 32rpx;
  159. margin: 12rpx 0 8rpx;
  160. }
  161. &:last-child {
  162. font-size: 28rpx;
  163. color: #525252;
  164. }
  165. }
  166. }
  167. }
  168. }
  169. &-bottom {
  170. position: fixed;
  171. bottom: 0;
  172. left: 0;
  173. width: 100%;
  174. height: 96rpx;
  175. line-height: 96rpx;
  176. text-align: center;
  177. font-size: 36rpx;
  178. color: #fff;
  179. background-color: #709078;
  180. }
  181. }