index.wxss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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;
  35. box-sizing: border-box;
  36. z-index: 9;
  37. }
  38. .classBox .searchBox .input {
  39. background-color: white;
  40. border-radius: 50rpx;
  41. padding: 12rpx 30rpx;
  42. padding-right: 140rpx;
  43. }
  44. .classBox .searchBox .searchBtn {
  45. position: absolute;
  46. right: 40rpx;
  47. top: 12rpx;
  48. padding: 6rpx 40rpx;
  49. background: #00C657;
  50. border-radius: 40rpx;
  51. }
  52. .classBox .searchBox .searchBtn .img {
  53. width: 24rpx;
  54. height: 24rpx;
  55. }
  56. .classBox .worksList {
  57. width: 100%;
  58. height: 100vh;
  59. box-sizing: border-box;
  60. padding: 20rpx;
  61. padding-top: 90rpx;
  62. padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
  63. }
  64. .classBox .worksList .worksBox {
  65. display: flex;
  66. align-items: center;
  67. justify-content: space-between;
  68. padding: 8rpx 12rpx;
  69. box-sizing: border-box;
  70. background-color: white;
  71. border-radius: 20rpx;
  72. margin-bottom: 20rpx;
  73. }
  74. .classBox .worksList .worksBox .left {
  75. flex: 1;
  76. display: flex;
  77. align-items: center;
  78. }
  79. .classBox .worksList .worksBox .left .cover {
  80. width: 230rpx;
  81. height: 128rpx;
  82. border-radius: 8rpx;
  83. }
  84. .classBox .worksList .worksBox .left .audioCover {
  85. position: relative;
  86. width: 230rpx;
  87. height: 128rpx;
  88. display: flex;
  89. align-items: center;
  90. justify-content: center;
  91. border-radius: 8rpx;
  92. overflow: hidden;
  93. background-size: cover;
  94. background-position: center;
  95. }
  96. .classBox .worksList .worksBox .left .audioCover .audioPlayBg {
  97. width: 100rpx;
  98. height: 100rpx;
  99. }
  100. .classBox .worksList .worksBox .left .audioCover .audioPlayZhen {
  101. position: absolute;
  102. right: 52rpx;
  103. top: 20rpx;
  104. width: 24rpx;
  105. height: 30rpx;
  106. }
  107. .classBox .worksList .worksBox .left .audioCover .cover {
  108. position: absolute;
  109. width: 84rpx;
  110. height: 84rpx;
  111. border-radius: 50%;
  112. }
  113. .classBox .worksList .worksBox .left .work {
  114. margin-left: 16rpx;
  115. }
  116. .classBox .worksList .worksBox .left .work .title {
  117. width: 270rpx;
  118. font-size: 34rpx;
  119. font-weight: bold;
  120. margin-bottom: 12rpx;
  121. }
  122. .classBox .worksList .worksBox .left .work .statistics {
  123. display: flex;
  124. align-items: center;
  125. }
  126. .classBox .worksList .worksBox .left .work .statistics .statistic {
  127. width: 110rpx;
  128. display: flex;
  129. align-items: center;
  130. }
  131. .classBox .worksList .worksBox .left .work .statistics .statistic .playImg {
  132. width: 30rpx;
  133. height: 30rpx;
  134. margin-right: 6rpx;
  135. }
  136. .classBox .worksList .worksBox .left .work .statistics .statistic .num {
  137. font-size: 26rpx;
  138. color: #666666;
  139. }
  140. .classBox .worksList .worksBox .goRead {
  141. padding: 6rpx 28rpx 8rpx;
  142. color: white;
  143. font-size: 32rpx;
  144. background-image: linear-gradient(270deg, #33C3FF 0%, #81C7FF 100%, #14C962 100%);
  145. box-shadow: 0 4rpx 10rpx 0 rgba(50, 197, 255, 0.46);
  146. border-radius: 50rpx;
  147. }
  148. .classBox .historyList .notes {
  149. display: flex;
  150. align-items: center;
  151. justify-content: space-between;
  152. }
  153. .empty {
  154. margin-top: 300rpx;
  155. }