index.wxss 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847
  1. /* 假设你的页面容器有一个类名为.page-container */
  2. .container {
  3. display: flex;
  4. flex-direction: column;
  5. height: 100vh;
  6. width: 100vw;
  7. }
  8. /* 隐藏滚动条 */
  9. .tab_page_container {
  10. flex: block;
  11. overflow-x: hidden;
  12. overflow-y: auto;
  13. }
  14. /* 隐藏滚动条 */
  15. ::-webkit-scrollbar {
  16. width: 0;
  17. height: 0;
  18. color: transparent;
  19. display: none;
  20. }
  21. /************************ 首页 ************************/
  22. .nav-wrap {
  23. backdrop-filter: blur(10rpx);
  24. border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);
  25. }
  26. .nav-wrap .nav-info {
  27. padding-left: 32rpx;
  28. display: flex;
  29. align-items: center;
  30. }
  31. .nav-wrap .nav-info .device-pic {
  32. height: 36rpx;
  33. margin-right: 12rpx;
  34. }
  35. .nav-wrap .nav-info .z {
  36. height: 24rpx;
  37. margin-right: 12rpx;
  38. }
  39. .nav-wrap .nav-info text {
  40. font-size: 28rpx;
  41. color: #353535;
  42. font-weight: bold;
  43. margin-right: 24rpx;
  44. }
  45. .nav-wrap .nav-info .j {
  46. height: 16rpx;
  47. }
  48. .mair {
  49. width: calc(100vw - 64rpx);
  50. padding: 20rpx 32rpx 0;
  51. position: relative;
  52. overflow: hidden;
  53. }
  54. .mair .play-info {
  55. width: 100%;
  56. padding: 16rpx 0;
  57. background: linear-gradient(167deg, #D8D8D8 0%, rgba(238, 238, 238, 0.5) 100%);
  58. border-radius: 12rpx;
  59. display: flex;
  60. align-items: center;
  61. justify-content: center;
  62. }
  63. .mair .play-info .info {
  64. width: 550rpx;
  65. height: 152rpx;
  66. position: relative;
  67. }
  68. .mair .play-info .wakeMode {
  69. width: 96rpx;
  70. height: 152rpx;
  71. background: linear-gradient(180deg, #000000 0%, #000000 100%);
  72. box-shadow: inset 2rpx 6rpx 10rpx 0px rgba(255, 255, 255, 0.61), inset 0px -2rpx 4rpx 0px rgba(255, 255, 255, 0.3);
  73. border-radius: 12rpx;
  74. margin-left: 8rpx;
  75. position: relative;
  76. display: flex;
  77. align-items: center;
  78. justify-content: center;
  79. flex-direction: column;
  80. }
  81. .mair .play-info .wakeMode text {
  82. height: 28rpx;
  83. font-size: 20rpx;
  84. font-weight: 500;
  85. color: #FFFFFF;
  86. line-height: 28rpx;
  87. font-weight: 500;
  88. margin-top: 20rpx;
  89. }
  90. .mair .play-info .wakeMode .mode {
  91. position: absolute;
  92. top: 0;
  93. left: 0;
  94. width: 96rpx;
  95. height: 148rpx;
  96. z-index: 999;
  97. }
  98. .mair .play-info .info .logo {
  99. position: absolute;
  100. top: 14rpx;
  101. left: 20rpx;
  102. height: 48rpx;
  103. }
  104. .mair .play-info .info .battery {
  105. position: absolute;
  106. top: 8rpx;
  107. right: 16rpx;
  108. height: 56rpx;
  109. width: 56rpx;
  110. }
  111. .mair .play-info .info .fm {
  112. color: #fff;
  113. }
  114. .mair .play-info .info .black {
  115. position: absolute;
  116. top: 0;
  117. left: 0;
  118. width: 550rpx;
  119. height: 152rpx;
  120. }
  121. .mair .play-info .info .mode {
  122. position: absolute;
  123. top: 0;
  124. left: 0;
  125. width: 550rpx;
  126. height: 152rpx;
  127. z-index: 999;
  128. }
  129. .mair .play-info .info .fm {
  130. position: absolute;
  131. top: 22rpx;
  132. left: 50%;
  133. transform: translateX(-50%);
  134. font-size: 48rpx;
  135. font-weight: 600;
  136. color: #6D00FF;
  137. line-height: 66rpx;
  138. }
  139. .mair .play-info .info .fmMod {
  140. position: absolute;
  141. top: 22rpx;
  142. left: 50%;
  143. transform: translateX(-50%);
  144. width: 200rpx;
  145. height: 66rpx;
  146. z-index: 1000;
  147. }
  148. .mair .play-info .info .fm .gochnnalList {
  149. width: 50rpx;
  150. height: 50rpx;
  151. position: absolute;
  152. top: 8rpx;
  153. left: 100%;
  154. }
  155. .mair .play-info .info .thisMusic {
  156. position: absolute;
  157. bottom: 26rpx;
  158. left: 50%;
  159. transform: translateX(-50%);
  160. width: 488rpx;
  161. display: flex;
  162. justify-content: center;
  163. align-items: center;
  164. }
  165. .mair .play-info .info .thisMusic>text {
  166. width: 100rpx;
  167. display: inline-block;
  168. color: #fff;
  169. font-size: 20rpx;
  170. }
  171. .mair .play-info .info .thisMusic .scroll-box {
  172. position: relative;
  173. max-width: 388rpx;
  174. display: flex;
  175. align-items: center;
  176. }
  177. .thisMusic .scroll-box .scroll-wrap {
  178. max-width: 100%;
  179. display: inline-block;
  180. vertical-align: top;
  181. overflow: hidden;
  182. white-space: nowrap;
  183. }
  184. .thisMusic .scroll-box .scroll-item {
  185. /* animation: scroll linear 4s alternate infinite; */
  186. float: left;
  187. color: #fff;
  188. font-size: 20rpx;
  189. }
  190. @keyframes scroll {
  191. 0% {
  192. margin-left: 0;
  193. transform: translateX(0);
  194. }
  195. 10% {
  196. margin-left: 0;
  197. transform: translateX(0);
  198. }
  199. 90% {
  200. margin-left: 100%;
  201. transform: translateX(-100%);
  202. }
  203. 100% {
  204. margin-left: 100%;
  205. transform: translateX(-100%);
  206. }
  207. }
  208. .mair .gologin {
  209. position: absolute;
  210. top: 0;
  211. left: 0;
  212. width: 100vw;
  213. height: 100%;
  214. background-color: rgba(0, 0, 0, 0.6);
  215. display: flex;
  216. align-items: center;
  217. justify-content: center;
  218. z-index: 9999;
  219. }
  220. .mair .gologin .model {
  221. width: 100%;
  222. height: 100%;
  223. position: relative;
  224. background-color: #fff;
  225. }
  226. .mair .gologin .model>image {
  227. position: absolute;
  228. top: 0;
  229. left: 0;
  230. width: 100%;
  231. height: 100%;
  232. }
  233. .mair .gologin .model>view {
  234. /* position: absolute;
  235. top: 0;
  236. left: 0; */
  237. width: 100%;
  238. height: 100%;
  239. overflow: hidden;
  240. display: flex;
  241. align-items: center;
  242. flex-direction: column;
  243. }
  244. .mair .gologin .model>view>image {
  245. display: block;
  246. height: 44rpx;
  247. margin: 398rpx auto 18rpx;
  248. }
  249. .mair .gologin .model>view text {
  250. display: block;
  251. width: 100%;
  252. font-size: 30rpx;
  253. color: #353535;
  254. font-weight: bold;
  255. text-align: center;
  256. margin-bottom: 66rpx;
  257. }
  258. .mair .goruter .model {
  259. background: #fff;
  260. height: 100%;
  261. width: 100%;
  262. }
  263. .mair .goruter .model>view>image {
  264. display: block;
  265. height: 176rpx;
  266. margin: 318rpx auto 18rpx;
  267. }
  268. .pd {
  269. position: relative;
  270. width: 120vw;
  271. height: calc(100% - 204rpx);
  272. padding-top: 20rpx;
  273. margin-left: -24rpx;
  274. }
  275. .pd .conm {
  276. padding-left: 24rpx;
  277. width: calc(100vw - 52rpx);
  278. }
  279. .pd .cz {
  280. width: 22rpx;
  281. height: 1664rpx;
  282. position: absolute;
  283. top: 24rpx;
  284. left: 24rpx;
  285. }
  286. .pd .musicList {
  287. padding: 0 0 20rpx 44rpx;
  288. position: relative;
  289. }
  290. .pd .musicList .li {
  291. height: 98rpx;
  292. display: flex;
  293. align-items: center;
  294. margin-bottom: 52rpx;
  295. color: #353535;
  296. position: relative;
  297. }
  298. .pd .musicList .li .zz {
  299. width: 236rpx;
  300. height: 22rpx;
  301. position: absolute;
  302. top: 48rpx;
  303. left: -70rpx;
  304. z-index: 999;
  305. }
  306. .pd .musicList .li .lm {
  307. transform: rotate(90deg);
  308. }
  309. .pd .musicList .li .musicInfo {
  310. width: 606rpx;
  311. height: 98rpx;
  312. display: flex;
  313. align-items: center;
  314. margin-left: 22rpx;
  315. position: relative;
  316. }
  317. .pd .musicList .li .musicInfo .pic {
  318. width: 86rpx;
  319. height: 86rpx;
  320. border-radius: 50%;
  321. margin-right: 24rpx;
  322. border: 2rpx solid #979797;
  323. }
  324. .pd .musicList .li .musicInfo text {
  325. font-size: 30rpx;
  326. font-weight: bold;
  327. white-space: nowrap;
  328. overflow: hidden;
  329. text-overflow: ellipsis;
  330. width: calc(100% - 200rpx);
  331. }
  332. .pd .musicList .li .musicInfo .svg {
  333. position: absolute;
  334. top: 34rpx;
  335. right: 50rpx;
  336. width: 34rpx;
  337. height: 30rpx;
  338. }
  339. .pd .musicList .li:last-child {
  340. margin: 0;
  341. }
  342. .pd .musicList .li.action {
  343. color: #6547A3;
  344. }
  345. .pd .musicList .li.action .musicInfo {
  346. border-radius: 49rpx;
  347. background-color: #D8D8D8;
  348. }
  349. .mair .mz {
  350. width: calc(100% - 72rpx);
  351. padding: 32rpx 36rpx;
  352. background: #FFFFFF;
  353. border-radius: 0px 0px 18rpx 18rpx;
  354. overflow: hidden;
  355. }
  356. .mair .deviceList {
  357. width: 100%;
  358. height: 100%;
  359. background-color: rgba(0, 0, 0, 0.6);
  360. position: absolute;
  361. top: 0;
  362. left: 0;
  363. z-index: 9999;
  364. }
  365. .mair .mz .li-view {
  366. height: 160rpx;
  367. float: left;
  368. width: calc(100% / 2 - 8rpx);
  369. margin-bottom: 36rpx;
  370. display: flex;
  371. align-items: center;
  372. }
  373. .mair .mz .li-view:nth-child(2n) {
  374. margin-left: 14rpx;
  375. }
  376. .mair .mz .li {
  377. position: relative;
  378. width: calc(100% - 44rpx);
  379. height: 160rpx;
  380. display: flex;
  381. align-items: center;
  382. border: 2rpx solid #353535;
  383. border-radius: 16rpx;
  384. padding: 0 20rpx;
  385. background-color: #fff;
  386. }
  387. .mair .mz .li image {
  388. width: 96rpx;
  389. }
  390. .mair .mz .li .delete {
  391. position: absolute;
  392. top: -6rpx;
  393. right: -6rpx;
  394. width: 36rpx;
  395. }
  396. .mair .mz .li .deviceName {
  397. font-size: 28rpx;
  398. color: #353535;
  399. font-weight: 500;
  400. margin-left: 18rpx;
  401. }
  402. .mair .mz .li .onli {
  403. position: absolute;
  404. bottom: 14rpx;
  405. right: 24rpx;
  406. font-size: 24rex;
  407. color: #353535;
  408. }
  409. .mair .mz .li.action {
  410. border: 4rpx solid #6547A3;
  411. box-shadow: 0px 4rpx 8rpx 0px rgba(0, 0, 0, 0.5);
  412. width: calc(100% - 48rpx);
  413. height: 156rpx;
  414. }
  415. .mair .mz .li.action .onli {
  416. color: #6547A3;
  417. }
  418. .mair .mz .li.offline {
  419. opacity: 0.6;
  420. }
  421. .mair .mz .but {
  422. float: left;
  423. width: 100%;
  424. display: flex;
  425. justify-content: center;
  426. }
  427. .mair .mz .but text {
  428. display: flex;
  429. justify-content: center;
  430. align-items: center;
  431. width: 226rpx;
  432. height: 80rpx;
  433. background: #6547A3;
  434. border-radius: 45rpx;
  435. color: #fff;
  436. margin: 0 20rpx;
  437. }
  438. .wake {
  439. height: 48rpx;
  440. width: 48rpx;
  441. z-index: 1000;
  442. }
  443. /* .updataminiwx {
  444. position: fixed;
  445. top: 0;
  446. left: 0;
  447. width: 100vw;
  448. height: 100vh;
  449. display: flex;
  450. align-items: center;
  451. justify-content: center;
  452. background: rgba(0, 0, 0, 0.6);
  453. z-index: 9999;
  454. }
  455. .updataminiwx .mode {
  456. width: 520rpx;
  457. height: 410rpx;
  458. position: relative;
  459. }
  460. .updataminiwx .mode .bg {
  461. width: 520rpx;
  462. height: 410rpx;
  463. }
  464. .updataminiwx .mode .updata-view {
  465. width: 520rpx;
  466. height: 410rpx;
  467. position: absolute;
  468. top: 0;
  469. left: 0;
  470. }
  471. .updataminiwx .mode .updata-view image {
  472. width: 124rpx;
  473. height: 124rpx;
  474. margin: 24rpx auto 14rpx;
  475. display: block;
  476. }
  477. .updataminiwx .mode .updata-view .title {
  478. height: 38rpx;
  479. font-size: 30rpx;
  480. font-weight: bold;
  481. color: #353535;
  482. line-height: 38rpx;
  483. display: block;
  484. text-align: center;
  485. margin-bottom: 16rpx;
  486. }
  487. .updataminiwx .mode .updata-view .tip {
  488. height: 38rpx;
  489. font-size: 30rpx;
  490. font-weight: 500;
  491. color: #999;
  492. line-height: 38rpx;
  493. display: block;
  494. text-align: center;
  495. margin-bottom: 40rpx;
  496. }
  497. .updataminiwx .mode .updata-view>view {
  498. display: flex;
  499. justify-content: center;
  500. }
  501. .updataminiwx .mode .updata-view>view text {
  502. width: 226rpx;
  503. height: 80rpx;
  504. text-align: center;
  505. line-height: 80rpx;
  506. border-radius: 40rpx;
  507. font-size: 30rpx;
  508. font-weight: bold;
  509. margin: 0 10rpx;
  510. }
  511. .updataminiwx .mode .updata-view>view .onBut {
  512. background-color: rgba(153, 153, 153, 1);
  513. color: #fff;
  514. }
  515. .updataminiwx .mode .updata-view>view .twoBut {
  516. background-color: rgba(101, 71, 163, 1);
  517. color: #fff;
  518. } */
  519. /************************ 我的 ************************/
  520. /* pages/me/me.wxss */
  521. .me .head-logo {
  522. padding: 38rpx 0 28rpx;
  523. display: flex;
  524. flex-direction: column;
  525. justify-content: center;
  526. align-items: center;
  527. }
  528. .me .head-logo image {
  529. width: 240rpx;
  530. height: 240rpx;
  531. border-radius: 50%;
  532. border: 10rpx solid rgba(101, 71, 163, 0.2);
  533. margin-bottom: 28rpx;
  534. }
  535. .me .head-logo text {
  536. font-size: 36rpx;
  537. font-weight: bold;
  538. }
  539. .me .head-logo .goLogin {
  540. color: #999;
  541. }
  542. .me .head-logo .nick_name {
  543. color: #353535;
  544. }
  545. .me .br {
  546. height: 20rpx;
  547. background: #999999;
  548. opacity: 0.05;
  549. }
  550. .me .list {
  551. padding: 0 30rpx;
  552. }
  553. .me .list .li {
  554. height: 102rpx;
  555. display: flex;
  556. }
  557. .me .list .li .icon {
  558. height: 102rpx;
  559. display: flex;
  560. align-items: center;
  561. margin-right: 20rpx;
  562. }
  563. .me .list .li image {
  564. width: 40rpx;
  565. }
  566. .me .list .li .button {
  567. width: calc(100% - 60rpx);
  568. border-bottom: 1rpx solid #E0DCD7;
  569. position: relative;
  570. display: flex;
  571. align-items: center;
  572. }
  573. .between_text {
  574. height: 105rpx;
  575. display: flex;
  576. align-items: center;
  577. font-size: 30rpx;
  578. background-color: transparent;
  579. }
  580. .between_image {
  581. height: 105rpx;
  582. display: flex;
  583. align-items: center;
  584. background-color: transparent;
  585. justify-content: flex-end;
  586. }
  587. .me .list .li .button button,
  588. .me .list .li .button text {
  589. margin: 0;
  590. background: none;
  591. text-align: left;
  592. padding: 0;
  593. line-height: 102rpx;
  594. font-size: 30rpx;
  595. color: #353535;
  596. font-weight: 400;
  597. }
  598. .me .list .li .button image.j {
  599. height: 22rpx;
  600. width: 12rpx;
  601. position: absolute;
  602. top: 40rpx;
  603. right: 0rpx;
  604. }
  605. /* position: fixed; display: flex; */
  606. .login {
  607. display: flex;
  608. width: 100vw;
  609. align-items: flex-end;
  610. margin-bottom: 50rpx;
  611. justify-content: center;
  612. }
  613. .login>view {
  614. display: flex;
  615. justify-content: center;
  616. align-items: center;
  617. width: 520rpx;
  618. height: 80rpx;
  619. background: #999999;
  620. border-radius: 45rpx;
  621. font-size: 36rpx;
  622. font-weight: 400;
  623. color: #FFFFFF;
  624. }
  625. .login>view.action {
  626. background: #6547A3;
  627. }
  628. /************************ 底部选择按钮 ************************/
  629. .line {
  630. height: 1rpx;
  631. background-color: #999999;
  632. }
  633. .bottom_view {
  634. flex: 1;
  635. }
  636. .bottom_image {
  637. width: 44rpx;
  638. height: 44rpx;
  639. }
  640. /************************ banner ************************/
  641. .banner_container {
  642. width: 100%;
  643. height: 264rpx;
  644. margin-top: 32rpx;
  645. /* 根据需要调整高度 */
  646. overflow: hidden;
  647. position: relative;
  648. border-radius: 16rpx;
  649. }
  650. .swiper {
  651. width: 100%;
  652. height: 264rpx;
  653. }
  654. .swiper_image {
  655. width: 100%;
  656. display: block;
  657. }
  658. /* .banner_container {
  659. margin-top: 24rpx;
  660. height: 270rpx;
  661. background-color: transparent;
  662. }
  663. .banner_item {
  664. height: 270rpx;
  665. background-color: transparent;
  666. } */
  667. /* 设置指示点的大小和颜色 */
  668. .swiper_dot {
  669. width: 10px;
  670. /* 指示点的宽度 */
  671. height: 10px;
  672. /* 指示点的高度 */
  673. background-color: rgba(21, 128, 56, 0.5);
  674. /* 指示点的颜色,这里使用了半透明的白色 */
  675. border-radius: 50%;
  676. /* 使指示点成为圆形 */
  677. margin: 0 4px;
  678. /* 指示点之间的间距 */
  679. display: inline-block;
  680. /* 使指示点成为行内块元素 */
  681. }
  682. /* 设置当前选中指示点的样式(可选) */
  683. .swiper_dot_active {
  684. background-color: red;
  685. /* 当前选中指示点的颜色 */
  686. width: 12px;
  687. /* 当前选中指示点的宽度(可以比未选中时稍大) */
  688. height: 12px;
  689. /* 当前选中指示点的高度(可以比未选中时稍大) */
  690. }
  691. .add_device_public {
  692. background-color: #6546A3;
  693. width: 80vw;
  694. height: 88rpx;
  695. margin-top: 32rpx;
  696. margin-left: 5%;
  697. border-radius: 72rpx;
  698. display: flex;
  699. text-align: center;
  700. justify-content: center;
  701. align-items: center;
  702. }
  703. .scoll_content {
  704. flex: 1;
  705. /* 占据剩余空间 */
  706. overflow-y: auto;
  707. /* 允许垂直滚动 */
  708. -webkit-overflow-scrolling: touch;
  709. /* 改善iOS上的滚动性能 */
  710. background-color: #fff;
  711. /* 背景色仅用于示例 */
  712. }
  713. .item_public {
  714. height: 264rpx;
  715. border: 2rpx solid #6546A3;
  716. border-radius: 24rpx;
  717. display: flex;
  718. margin-bottom: 10rpx;
  719. }
  720. .item_public_image {
  721. height: 200rpx;
  722. width: 200rpx;
  723. margin-left: 32rpx;
  724. margin-top: 32rpx;
  725. }
  726. .item_public_right {
  727. flex: 1;
  728. }