index.wxss 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822
  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. width: 48rpx;
  440. z-index: 1000;
  441. }
  442. /* .updataminiwx {
  443. position: fixed;
  444. top: 0;
  445. left: 0;
  446. width: 100vw;
  447. height: 100vh;
  448. display: flex;
  449. align-items: center;
  450. justify-content: center;
  451. background: rgba(0, 0, 0, 0.6);
  452. z-index: 9999;
  453. }
  454. .updataminiwx .mode {
  455. width: 520rpx;
  456. height: 410rpx;
  457. position: relative;
  458. }
  459. .updataminiwx .mode .bg {
  460. width: 520rpx;
  461. height: 410rpx;
  462. }
  463. .updataminiwx .mode .updata-view {
  464. width: 520rpx;
  465. height: 410rpx;
  466. position: absolute;
  467. top: 0;
  468. left: 0;
  469. }
  470. .updataminiwx .mode .updata-view image {
  471. width: 124rpx;
  472. height: 124rpx;
  473. margin: 24rpx auto 14rpx;
  474. display: block;
  475. }
  476. .updataminiwx .mode .updata-view .title {
  477. height: 38rpx;
  478. font-size: 30rpx;
  479. font-weight: bold;
  480. color: #353535;
  481. line-height: 38rpx;
  482. display: block;
  483. text-align: center;
  484. margin-bottom: 16rpx;
  485. }
  486. .updataminiwx .mode .updata-view .tip {
  487. height: 38rpx;
  488. font-size: 30rpx;
  489. font-weight: 500;
  490. color: #999;
  491. line-height: 38rpx;
  492. display: block;
  493. text-align: center;
  494. margin-bottom: 40rpx;
  495. }
  496. .updataminiwx .mode .updata-view>view {
  497. display: flex;
  498. justify-content: center;
  499. }
  500. .updataminiwx .mode .updata-view>view text {
  501. width: 226rpx;
  502. height: 80rpx;
  503. text-align: center;
  504. line-height: 80rpx;
  505. border-radius: 40rpx;
  506. font-size: 30rpx;
  507. font-weight: bold;
  508. margin: 0 10rpx;
  509. }
  510. .updataminiwx .mode .updata-view>view .onBut {
  511. background-color: rgba(153, 153, 153, 1);
  512. color: #fff;
  513. }
  514. .updataminiwx .mode .updata-view>view .twoBut {
  515. background-color: rgba(101, 71, 163, 1);
  516. color: #fff;
  517. } */
  518. /************************ 我的 ************************/
  519. /* pages/me/me.wxss */
  520. .me .head-logo {
  521. padding: 38rpx 0 28rpx;
  522. display: flex;
  523. flex-direction: column;
  524. justify-content: center;
  525. align-items: center;
  526. }
  527. .me .head-logo image {
  528. width: 240rpx;
  529. height: 240rpx;
  530. border-radius: 50%;
  531. border: 10rpx solid rgba(101, 71, 163, 0.2);
  532. margin-bottom: 28rpx;
  533. }
  534. .me .head-logo text {
  535. font-size: 36rpx;
  536. font-weight: bold;
  537. }
  538. .me .head-logo .goLogin {
  539. color: #999;
  540. }
  541. .me .head-logo .nick_name {
  542. color: #353535;
  543. }
  544. .me .br {
  545. height: 20rpx;
  546. background: #999999;
  547. opacity: 0.05;
  548. }
  549. .me .list {
  550. padding: 0 30rpx;
  551. }
  552. .me .list .li {
  553. height: 102rpx;
  554. display: flex;
  555. }
  556. .me .list .li .icon {
  557. height: 102rpx;
  558. display: flex;
  559. align-items: center;
  560. margin-right: 20rpx;
  561. }
  562. .me .list .li image {
  563. width: 40rpx;
  564. }
  565. .me .list .li .button {
  566. width: calc(100% - 60rpx);
  567. border-bottom: 1rpx solid #E0DCD7;
  568. position: relative;
  569. display: flex;
  570. align-items: center;
  571. }
  572. .me .list .li .button button,
  573. .me .list .li .button text {
  574. margin: 0;
  575. background: none;
  576. text-align: left;
  577. padding: 0;
  578. line-height: 102rpx;
  579. font-size: 30rpx;
  580. color: #353535;
  581. font-weight: 400;
  582. }
  583. .me .list .li .button image.j {
  584. height: 22rpx;
  585. width: 12rpx;
  586. position: absolute;
  587. top: 40rpx;
  588. right: 0rpx;
  589. }
  590. .me .list .li .button image.logo {
  591. height: 34rpx;
  592. margin-left: 12rpx;
  593. }
  594. .login {
  595. position: fixed;
  596. bottom: 184rpx;
  597. width: 100vw;
  598. display: flex;
  599. justify-content: center;
  600. }
  601. .login>view {
  602. display: flex;
  603. justify-content: center;
  604. align-items: center;
  605. width: 520rpx;
  606. height: 80rpx;
  607. background: #999999;
  608. border-radius: 45rpx;
  609. font-size: 36rpx;
  610. font-weight: 400;
  611. color: #FFFFFF;
  612. }
  613. .login>view.action {
  614. background: #6547A3;
  615. }
  616. /************************ 底部选择按钮 ************************/
  617. .line {
  618. height: 1rpx;
  619. background-color: #999999;
  620. }
  621. .bottom_view {
  622. flex: 1;
  623. }
  624. .bottom_image {
  625. width: 44rpx;
  626. height: 44rpx;
  627. }
  628. /************************ banner ************************/
  629. .banner_container {
  630. width: 100%;
  631. height: 264rpx;
  632. margin-top: 32rpx;
  633. /* 根据需要调整高度 */
  634. overflow: hidden;
  635. position: relative;
  636. border-radius: 16rpx;
  637. }
  638. .swiper {
  639. width: 100%;
  640. height: 264rpx;
  641. }
  642. .swiper_image {
  643. width: 100%;
  644. display: block;
  645. }
  646. /* 设置指示点的大小和颜色 */
  647. .swiper_dot {
  648. width: 10px;
  649. /* 指示点的宽度 */
  650. height: 10px;
  651. /* 指示点的高度 */
  652. background-color: rgba(21, 128, 56, 0.5);
  653. /* 指示点的颜色,这里使用了半透明的白色 */
  654. border-radius: 50%;
  655. /* 使指示点成为圆形 */
  656. margin: 0 4px;
  657. /* 指示点之间的间距 */
  658. display: inline-block;
  659. /* 使指示点成为行内块元素 */
  660. }
  661. /* 设置当前选中指示点的样式(可选) */
  662. .swiper_dot_active {
  663. background-color: red;
  664. /* 当前选中指示点的颜色 */
  665. width: 12px;
  666. /* 当前选中指示点的宽度(可以比未选中时稍大) */
  667. height: 12px;
  668. /* 当前选中指示点的高度(可以比未选中时稍大) */
  669. }
  670. .add_device_public {
  671. background-color: #6546A3;
  672. width: 80vw;
  673. height: 88rpx;
  674. margin-top: 64rpx;
  675. margin-left: 5%;
  676. border-radius: 72rpx;
  677. display: flex;
  678. text-align: center;
  679. justify-content: center;
  680. align-items: center;
  681. }
  682. .scoll_content {
  683. flex: 1;
  684. /* 占据剩余空间 */
  685. overflow-y: auto;
  686. /* 允许垂直滚动 */
  687. -webkit-overflow-scrolling: touch;
  688. /* 改善iOS上的滚动性能 */
  689. background-color: #fff;
  690. /* 背景色仅用于示例 */
  691. }
  692. .item_public {
  693. height: 264rpx;
  694. border: 2rpx solid #6546A3;
  695. border-radius: 24rpx;
  696. display: flex;
  697. margin-bottom: 10rpx;
  698. }
  699. .item_public_image {
  700. height: 200rpx;
  701. width: 200rpx;
  702. margin-left: 32rpx;
  703. margin-top: 32rpx;
  704. }
  705. .item_public_right {
  706. flex: 1;
  707. }