index.wxss 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. .classBox {
  2. width: 100%;
  3. height: 100vh;
  4. }
  5. .classBox .classify {
  6. position: fixed;
  7. top: 0px;
  8. left: 0px;
  9. padding: 24rpx 0rpx;
  10. width: 100%;
  11. background-color: #F2F6FC;
  12. z-index: 9;
  13. white-space: nowrap;
  14. }
  15. .classBox .classify .name {
  16. text-align: center;
  17. display: inline-block;
  18. margin: 0rpx 40rpx;
  19. padding-bottom: 4rpx;
  20. color: #777;
  21. font-weight: bold;
  22. font-size: 28rpx;
  23. }
  24. .classBox .classify .currentClass {
  25. font-size: 34rpx;
  26. color: #333;
  27. border-bottom: 6rpx solid #00C657;
  28. }
  29. .classBox .searchBox {
  30. position: fixed;
  31. top: 0px;
  32. left: 0px;
  33. width: 100%;
  34. padding: 4rpx 20rpx 18rpx;
  35. box-sizing: border-box;
  36. background-color: #F2F6FC;
  37. z-index: 9;
  38. }
  39. .classBox .searchBox .input {
  40. background-color: white;
  41. border-radius: 50rpx;
  42. padding: 12rpx 30rpx;
  43. padding-right: 140rpx;
  44. }
  45. .classBox .searchBox .searchBtn {
  46. position: absolute;
  47. right: 40rpx;
  48. top: 12rpx;
  49. padding: 6rpx 40rpx;
  50. background: #00C657;
  51. border-radius: 40rpx;
  52. }
  53. .classBox .searchBox .searchBtn .img {
  54. width: 24rpx;
  55. height: 24rpx;
  56. }
  57. .classBox .worksList {
  58. width: 100%;
  59. height: 100vh;
  60. box-sizing: border-box;
  61. padding: 20rpx;
  62. padding-top: 102rpx;
  63. padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
  64. }
  65. .classBox .worksList .worksBox {
  66. display: flex;
  67. align-items: center;
  68. justify-content: space-between;
  69. padding: 8rpx 12rpx;
  70. box-sizing: border-box;
  71. background-color: white;
  72. border-radius: 20rpx;
  73. margin-bottom: 20rpx;
  74. }
  75. .classBox .worksList .worksBox .left {
  76. flex: 1;
  77. display: flex;
  78. align-items: center;
  79. }
  80. .classBox .worksList .worksBox .left .cover {
  81. width: 230rpx;
  82. height: 128rpx;
  83. border-radius: 8rpx;
  84. }
  85. .classBox .worksList .worksBox .left .audioCover {
  86. position: relative;
  87. width: 230rpx;
  88. height: 128rpx;
  89. display: flex;
  90. align-items: center;
  91. justify-content: center;
  92. border-radius: 8rpx;
  93. overflow: hidden;
  94. background-size: cover;
  95. background-position: center;
  96. }
  97. .classBox .worksList .worksBox .left .audioCover .audioPlayBg {
  98. width: 100rpx;
  99. height: 100rpx;
  100. }
  101. .classBox .worksList .worksBox .left .audioCover .audioPlayZhen {
  102. position: absolute;
  103. right: 52rpx;
  104. top: 20rpx;
  105. width: 24rpx;
  106. height: 30rpx;
  107. }
  108. .classBox .worksList .worksBox .left .audioCover .cover {
  109. position: absolute;
  110. width: 84rpx;
  111. height: 84rpx;
  112. border-radius: 50%;
  113. }
  114. .classBox .worksList .worksBox .left .work {
  115. margin-left: 16rpx;
  116. }
  117. .classBox .worksList .worksBox .left .work .title {
  118. width: 270rpx;
  119. font-size: 34rpx;
  120. font-weight: bold;
  121. margin-bottom: 12rpx;
  122. }
  123. .classBox .worksList .worksBox .left .work .statistics {
  124. display: flex;
  125. align-items: center;
  126. }
  127. .classBox .worksList .worksBox .left .work .statistics .statistic {
  128. width: 110rpx;
  129. display: flex;
  130. align-items: center;
  131. }
  132. .classBox .worksList .worksBox .left .work .statistics .statistic .playImg {
  133. width: 30rpx;
  134. height: 30rpx;
  135. margin-right: 6rpx;
  136. }
  137. .classBox .worksList .worksBox .left .work .statistics .statistic .num {
  138. font-size: 26rpx;
  139. color: #666666;
  140. }
  141. .classBox .worksList .worksBox .goRead {
  142. padding: 6rpx 28rpx 8rpx;
  143. color: white;
  144. font-size: 32rpx;
  145. background-image: linear-gradient(270deg, #33C3FF 0%, #81C7FF 100%, #14C962 100%);
  146. box-shadow: 0 4rpx 10rpx 0 rgba(50, 197, 255, 0.46);
  147. border-radius: 50rpx;
  148. }
  149. .classBox .historyList {
  150. padding: 80rpx 30rpx 0rpx;
  151. }
  152. .classBox .historyList .notes {
  153. display: flex;
  154. align-items: center;
  155. justify-content: space-between;
  156. padding: 30rpx 0rpx 14rpx;
  157. border-bottom: 1rpx solid #DDDDDD;
  158. }
  159. .classBox .historyList .notes .left {
  160. display: flex;
  161. align-items: center;
  162. font-size: 28rpx;
  163. }
  164. .classBox .historyList .notes .left .clock {
  165. width: 34rpx;
  166. height: 34rpx;
  167. margin-right: 16rpx;
  168. }
  169. .classBox .historyList .notes .delete {
  170. color: #A4A4A5;
  171. font-size: 50rpx;
  172. line-height: 40rpx;
  173. padding: 0rpx 20rpx;
  174. }
  175. .classBox .historyList .clearHistory {
  176. padding: 20rpx 0rpx;
  177. text-align: center;
  178. font-size: 28rpx;
  179. }
  180. .empty {
  181. margin-top: 300rpx;
  182. }