index.wxss 13 KB

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