AI销管
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

index.scss 5.6 KiB

2 år sedan
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  1. @mixin textoverflow() {
  2. display: -webkit-box;
  3. overflow: hidden;
  4. text-overflow: ellipsis;
  5. -webkit-box-orient: vertical;
  6. -webkit-line-clamp: 1;
  7. }
  8. @keyframes rowup {
  9. 0% {
  10. -webkit-transform: translate(-50%, -50%) rotate(0deg);
  11. transform-origin: center center;
  12. }
  13. 100% {
  14. -webkit-transform: translate(-50%, -50%) rotate(360deg);
  15. transform-origin: center center;
  16. }
  17. }
  18. .imt-audio.theme1 {
  19. padding: 0 30upx 30upx;
  20. background: #fff;
  21. .top {
  22. & > view:nth-child(2) {
  23. .title {
  24. font-weight: bold;
  25. font-size: 34rpx;
  26. margin-top: 50rpx;
  27. text-align: center;
  28. }
  29. .singer {
  30. color: #999;
  31. font-size: 26rpx;
  32. margin-top: 10rpx;
  33. text-align: center;
  34. margin-bottom: 18rpx;
  35. }
  36. }
  37. }
  38. .audio-wrapper {
  39. display: flex;
  40. align-items: center;
  41. width: 90%;
  42. margin: 0 auto;
  43. }
  44. .audio-button-box {
  45. display: flex;
  46. align-items: center;
  47. margin: 40rpx auto 0;
  48. justify-content: space-around;
  49. height: 100rpx
  50. }
  51. .audio-number {
  52. font-size: 24upx;
  53. line-height: 1;
  54. color: #333;
  55. }
  56. .audio-slider {
  57. flex: 1;
  58. margin: 0 30rpx 0 35rpx;
  59. }
  60. .audio-control-wrapper {
  61. margin: 20rpx auto;
  62. display: flex;
  63. justify-content: center;
  64. align-items: center;
  65. position: relative;
  66. }
  67. .cover {
  68. width: 350rpx;
  69. height: 350rpx;
  70. box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);
  71. border-radius: 5px;
  72. }
  73. .playbox{
  74. width: 100rpx;
  75. height: 100rpx;
  76. display:flex;
  77. align-items: center;
  78. justify-content: center;
  79. }
  80. .play,
  81. .pause {
  82. width: 100rpx;
  83. height: 100rpx;
  84. &.loading{
  85. width: 80rpx;
  86. height: 80rpx;
  87. animation: rotating 2s linear infinite;
  88. }
  89. }
  90. .prevbtn,
  91. .nextbtn {
  92. width: 40rpx;
  93. height: 40rpx;
  94. }
  95. .prevplay {
  96. width: 40rpx;
  97. height: 40rpx;
  98. transform: rotateZ(180deg);
  99. }
  100. .nextplay {
  101. width: 40rpx;
  102. height: 40rpx;
  103. }
  104. }
  105. .imt-audio.theme2 {
  106. background: #fff;
  107. border: 1px solid #cecece;
  108. width: 100%;
  109. margin: 0 auto;
  110. overflow: hidden;
  111. .top {
  112. background: #fff;
  113. display: flex;
  114. align-items: center;
  115. height: 150rpx;
  116. & > view:nth-child(2) {
  117. flex: 1;
  118. margin: 0 30rpx;
  119. .title {
  120. display: flex;
  121. align-items: center;
  122. justify-content: space-between;
  123. margin-top: 24rpx;
  124. text{
  125. font-size: 30rpx;
  126. text-align: left;
  127. max-width: 100%;
  128. @include textoverflow;
  129. flex: 1;
  130. }
  131. .audio-number {
  132. font-size: 24upx;
  133. line-height: 1;
  134. color: #333;
  135. }
  136. }
  137. .singer {
  138. color: #999;
  139. font-size: 26rpx;
  140. margin-top: 10rpx;
  141. text-align: left;
  142. margin-bottom: 18rpx;
  143. max-width: 100%;
  144. @include textoverflow;
  145. }
  146. }
  147. }
  148. .cover {
  149. width: 120rpx;
  150. height: 120rpx;
  151. box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
  152. position: absolute;
  153. top: 50%;
  154. left: 50%;
  155. transform: translate(-50%, -50%);
  156. border-radius: 50%;
  157. border: 2px solid #fff;
  158. animation-fill-mode: forwards;
  159. -webkit-animation-fill-mode: forwards;
  160. }
  161. .cover.on {
  162. -webkit-animation: 10s rowup linear infinite normal;
  163. animation: 10s rowup linear infinite normal;
  164. animation-fill-mode: forwards;
  165. -webkit-animation-fill-mode: forwards;
  166. }
  167. .audio-control-wrapper{
  168. width: 150rpx;
  169. height: 150rpx;
  170. display: flex;
  171. align-items:center;
  172. justify-content: center;
  173. background: #efefef;
  174. background-size: contain;
  175. background-position: center;
  176. background-repeat: no-repeat;
  177. }
  178. .play {
  179. width: 80rpx;
  180. height: 80rpx;
  181. z-index: 99;
  182. background: rgba(0, 0, 0, 0.4);
  183. border-radius: 50%;
  184. &.loading{
  185. width: 60rpx;
  186. height: 60rpx;
  187. animation: rotating 2s linear infinite;
  188. }
  189. }
  190. .prevbtn {
  191. width: 48rpx;
  192. height: 48rpx;
  193. margin-right: 40rpx;
  194. }
  195. .nextbtn {
  196. width: 48rpx;
  197. height: 48rpx;
  198. margin-left: 40rpx;
  199. }
  200. }
  201. .imt-audio.theme3 {
  202. background: #ccc;
  203. width: 100%;
  204. overflow: hidden;
  205. display: flex;
  206. padding: 40rpx 20rpx;
  207. box-sizing: border-box;
  208. max-height: 200rpx;
  209. position:relative;
  210. .top {
  211. width: 140rpx;
  212. display: flex;
  213. align-items: center;
  214. justify-content: center;
  215. position: relative;
  216. }
  217. .audio-wrapper {
  218. display: flex;
  219. flex-direction: column;
  220. flex: 1;
  221. color: #fff;
  222. margin-left: 20rpx;
  223. .titlebox {
  224. display: flex;
  225. line-height: 46rpx;
  226. margin-bottom: 30rpx;
  227. .title {
  228. font-size: 30rpx;
  229. max-width: 50%;
  230. @include textoverflow;
  231. }
  232. .singer {
  233. margin-left: 20rpx;
  234. font-size: 28rpx;
  235. max-width: 50%;
  236. @include textoverflow;
  237. }
  238. }
  239. }
  240. .slidebox {
  241. display: flex;
  242. justify-content: space-between;
  243. width: 96%;
  244. view{
  245. &:first-child{
  246. font-size: 28rpx;
  247. }
  248. &:last-child{
  249. font-size: 28rpx;
  250. text{
  251. &:last-child{
  252. margin-left: 40rpx;
  253. }
  254. }
  255. }
  256. }
  257. }
  258. /deep/ .uni-slider-tap-area {
  259. padding: 0;
  260. }
  261. /deep/ .uni-slider-wrapper {
  262. min-height: 0;
  263. }
  264. /deep/ .uni-slider-handle-wrapper {
  265. height: 4px;
  266. }
  267. .audio-slider {
  268. position: absolute;
  269. top: 0;
  270. margin: 0;
  271. width: 100%;
  272. left: 0;
  273. padding: 0;
  274. }
  275. .cover {
  276. width: 120rpx;
  277. height: 120rpx;
  278. box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
  279. position: absolute;
  280. top: 50%;
  281. left: 50%;
  282. transform: translate(-50%, -50%);
  283. animation-fill-mode: forwards;
  284. -webkit-animation-fill-mode: forwards;
  285. }
  286. .play {
  287. width: 80rpx;
  288. height: 80rpx;
  289. z-index: 99;
  290. background: rgba(0, 0, 0, 0.4);
  291. border-radius: 50%;
  292. position: absolute;
  293. top: 50%;
  294. left: 50%;
  295. transform: translate(-50%, -50%);
  296. &.loading{
  297. width: 60rpx;
  298. height: 60rpx;
  299. animation: rotating_theme3 2s linear infinite;
  300. }
  301. }
  302. }
  303. @keyframes rotating {
  304. 0% {
  305. transform: rotateZ(0deg)
  306. }
  307. 100% {
  308. transform: rotateZ(360deg)
  309. }
  310. }
  311. @keyframes rotating_theme3 {
  312. 0% {
  313. transform: translate(-50%, -50%) rotateZ(0deg)
  314. }
  315. 100% {
  316. transform: translate(-50%, -50%) rotateZ(360deg)
  317. }
  318. }