index.wxss 3.2 KB

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