index.wxss 13 KB

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