index.wxss 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752
  1. /**index.wxss**/
  2. page {
  3. background-repeat: no-repeat;
  4. background-size: 100% 100%;
  5. -moz-background-size: 100% 100%;
  6. background-color: #000000;
  7. }
  8. .container {
  9. display: flex;
  10. flex-direction: column;
  11. align-items: center;
  12. justify-content: center;
  13. /* height: 60vh; */
  14. /* background-color: #ffffff; */
  15. }
  16. .horizontal-swiper {
  17. width: 100%;
  18. height: 40rpx;
  19. }
  20. .swiper-item {
  21. width: 400rpx; /* 设置滑动块的宽度 */
  22. height: 100%;
  23. display: flex;
  24. justify-content: center;
  25. align-items: center;
  26. background-color: #3c4fff;
  27. margin-right: 20rpx; /* 根据需要设置间距 */
  28. }
  29. .item-content {
  30. /* 其他样式 */
  31. }
  32. .wrapper {
  33. padding: 20rpx 30rpx;
  34. background-color: #000000;
  35. }
  36. .wrapper-dark {
  37. padding: 30rpx;
  38. background-color: #27313b;
  39. }
  40. .header-wrapper {
  41. /* background-image: url(https://pic1.zhimg.com/v2-cbc33b07853d0604caaeafa7f779e144_b.webp); */
  42. /* 头部的图片 */
  43. background-color: #5a4caa;
  44. border-radius: 40rpx;
  45. color: #3d7ef9;
  46. box-shadow: #3d7ef9 0rpx 0rpx 20rpx;
  47. padding: 30rpx 60rpx;
  48. }
  49. .header-title {
  50. display: flex;
  51. justify-content: space-between;
  52. }
  53. .header-title text{
  54. color:#ffffff;
  55. }
  56. .header-title-fire {
  57. display: flex;
  58. justify-content: space-between;
  59. }
  60. .header-title-fire text{
  61. color:#fdfbfb;
  62. font-size: large;
  63. font-weight: 200;
  64. margin:0 auto;
  65. }
  66. .header-text {
  67. font-size: 60rpx;
  68. font-weight: 400;
  69. display: flex;
  70. justify-content: space-between;
  71. }
  72. .header-text text{
  73. color: #edf0f5;
  74. }
  75. .weather-advice {
  76. margin-top: 40rpx;
  77. font-size: 24rpx;
  78. }
  79. .data-wrapper {
  80. margin-top: 20rpx;
  81. display: flex;
  82. justify-content: space-between;
  83. background-color: #000000;
  84. }
  85. .data {
  86. background-color: #fff;
  87. width: 300rpx;
  88. height: 200rpx;
  89. margin: 20rpx 0px;
  90. border-radius: 40rpx;
  91. display: flex;
  92. justify-content: space-around;
  93. padding: 0 16rpx;
  94. box-shadow: #d6d6d6 0px 0px 10rpx;
  95. }
  96. .data-humidifier{
  97. /* margin-top: 30rpx; */
  98. background-color: #fff;
  99. /* 设置边框样式 */
  100. border: 2rpx solid #e0e0e0; /* 边框宽度、样式和颜色 */
  101. /* 设置圆角弧度 */
  102. border-radius: 20rpx; /* 可以根据需要调整圆角的大小 */
  103. /* 设置阴影效果 */
  104. box-shadow: 0rpx 4rpx 8rpx rgba(0, 0, 0, 0.1); /* 阴影的偏移量、模糊半径和颜色 */
  105. padding-right: 5rpx;
  106. margin-top: 10rpx;
  107. height:650rpx;
  108. }
  109. .data-media-player{
  110. /* margin-top: 30rpx; */
  111. /* background-color: #fff; */
  112. /* 设置边框样式 */
  113. border: 1rpx solid #f0f0f0; /* 边框宽度、样式和颜色 */
  114. /* 设置圆角弧度 */
  115. border-radius: 20rpx; /* 可以根据需要调整圆角的大小 */
  116. /* 设置阴影效果 */
  117. box-shadow: 0rpx 4rpx 8rpx rgba(0, 0, 0, 0.1); /* 阴影的偏移量、模糊半径和颜色 */
  118. padding-right: 5rpx;
  119. margin-top: 35rpx;
  120. }
  121. .data-logo {
  122. height: 72rpx;
  123. width: 72rpx;
  124. margin-top: 30rpx;
  125. }
  126. .data-text {
  127. margin-top: 30rpx;
  128. color: #7f7f7f;
  129. }
  130. .data-title {
  131. text-align: right;
  132. }
  133. .data-value {
  134. font-size: 52rpx;
  135. }
  136. .panel{
  137. display: flex;
  138. padding: 0 30rpx;
  139. }
  140. .cellgroup{
  141. margin-top: 12rpx;
  142. /* 设置边框样式 */
  143. border: 2rpx solid #ebebeb; /* 边框宽度、样式和颜色 */
  144. /* 设置圆角弧度 */
  145. border-radius: 20rpx; /* 可以根据需要调整圆角的大小 */
  146. /* 设置阴影效果 */
  147. box-shadow: 0rpx 8rpx 12rpx rgba(85, 255, 255, 0.1); /* 阴影的偏移量、模糊半径和颜色 */
  148. }
  149. .circle-humi{
  150. margin-left: 150rpx;
  151. }
  152. .switch{
  153. margin-top: 20rpx;
  154. display: flex;
  155. flex-direction: column;
  156. align-items: flex-end;
  157. }
  158. .silder{
  159. margin-top: 50rpx;
  160. }
  161. .s_view {
  162. width: 100%;
  163. display: flex;
  164. justify-content: center;
  165. margin-top: -50rpx;
  166. /* margin-bottom: 50rpx; */
  167. }
  168. .s_view_climate {
  169. width: 100%;
  170. display: flex;
  171. justify-content: center;
  172. margin-top: -50rpx;
  173. /* margin-bottom: 50rpx; */
  174. }
  175. .button {
  176. width: 90rpx;
  177. height: 90rpx;
  178. border-radius: 50%;
  179. margin: -100rpx 5rpx 5rpx 5rpx;
  180. background-color: #00aaff;
  181. display: flex;
  182. align-items: center;
  183. justify-content: center;
  184. cursor: pointer;
  185. transition: background-color 0.3s;
  186. border: none;
  187. outline: none;
  188. z-index: 9999;
  189. }
  190. .button:hover {
  191. background-color: #808080;
  192. }
  193. .buttonClimate {
  194. width: 90rpx;
  195. height: 90rpx;
  196. border-radius: 50%;
  197. margin: -100rpx 5rpx 5rpx 5rpx;
  198. background-color: #00aaff;
  199. display: flex;
  200. align-items: center;
  201. justify-content: center;
  202. cursor: pointer;
  203. transition: background-color 0.3s;
  204. border: none;
  205. outline: none;
  206. margin-left:20rpx;
  207. z-index: 9999;
  208. }
  209. .buttonClimate:hover {
  210. background-color: #808080;
  211. }
  212. .plusHumidifier {
  213. font-size: 35rpx;
  214. color: white;
  215. }
  216. .plus {
  217. font-size: 60rpx;
  218. color: white;
  219. }
  220. .van-grid-item-cron {
  221. width: 226rpx;
  222. }
  223. .van-grid-item-dev {
  224. width: 169.5rpx;
  225. }
  226. .van-grid-item {
  227. width: 231rpx; /* 设置你想要的默认宽度 */
  228. box-sizing: border-box;
  229. align-items: center;
  230. }
  231. .data-wrapper .van-grid-item {
  232. width: 170rpx; /* 设置你想要的默认宽度 */
  233. box-sizing: border-box;
  234. align-items: center;
  235. }
  236. .narrow-slider {
  237. width: 200rpx;
  238. }
  239. .slider-container {
  240. display: flex;
  241. align-items: center;
  242. justify-content: flex-start;
  243. }
  244. .custom-slider {
  245. width: 50%; /* 根据需要调整slider的宽度 */
  246. }
  247. .slider-value {
  248. margin-left: 10rpx; /* 根据需要调整value与slider之间的间距 */
  249. }
  250. .tui-slider-box{
  251. width: 80%;
  252. height: 50rpx;
  253. line-height: 50rpx;
  254. font-size: 25rpx;
  255. color: #666;
  256. }
  257. .gray-input {
  258. /* background-color: #ccc; */
  259. background-color: #f5f5f5;
  260. /* 其他样式,如字体大小、颜色、边框等 */
  261. padding: 10rpx 50rpx 10rpx 10rpx; /* 内边距,使文本不会紧贴着边框 */
  262. border: none; /* 移除默认边框 */
  263. }
  264. .arrow-up, .arrow-down {
  265. width: 5rpx; /* 箭头的宽度 */
  266. height: 5rpx; /* 箭头的高度 */
  267. border-width: 6rpx; /* 边框宽度,控制箭头的大小 */
  268. border-style: solid; /* 边框样式 */
  269. position: absolute; /* 绝对定位,方便后续调整位置 */
  270. background-color: #f5f5f5; /* 灰色背景 */
  271. }
  272. .arrow-up {
  273. border-color: transparent transparent white transparent; /* 设置上箭头的颜色 */
  274. transform: rotate(-45deg); /* 旋转箭头,使其朝上 */
  275. margin-top: 10rpx; /* 设置上箭头的位置 */
  276. background-color: #f5f5f5; /* 灰色背景 */
  277. }
  278. .arrow-down {
  279. border-color: white transparent transparent transparent; /* 设置下箭头的颜色 */
  280. transform: rotate(45deg); /* 旋转箭头,使其朝下 */
  281. margin-top: 20rpx; /* 设置下箭头的位置,确保它在上箭头的下方 */
  282. background-color: #f5f5f5; /* 灰色背景 */
  283. }
  284. .input-unit {
  285. margin-left: 10rpx; /* 与文本框之间留一些间距 */
  286. color: #666; /* 单位的颜色 */
  287. font-size: 24rpx; /* 单位的字体大小 */
  288. background-color: #f5f5f5; /* 灰色背景 */
  289. }
  290. .input-container {
  291. display: flex;
  292. align-items: center;
  293. justify-content: space-between; /* 使得文本框、箭头和单位之间有空隙 */
  294. padding: 10rpx;
  295. background-color: #f5f5f5; /* 灰色背景 */
  296. }
  297. .input-text {
  298. flex: 1; /* 占据大部分空间 */
  299. border: none;
  300. padding: 10rpx;
  301. background-color: #fff; /* 文本框背景色 */
  302. border-radius: 10rpx; /* 圆角 */
  303. }
  304. .arrow-container {
  305. display: flex;
  306. flex-direction: column;
  307. align-items: center;
  308. justify-content: center;
  309. }
  310. .arrow {
  311. width: 12rpx;
  312. height: 12rpx;
  313. border: 1rpx solid #666;
  314. border-width: 0 1rpx 1rpx 0;
  315. /* transform: rotate(-45deg); */
  316. margin-bottom: 0rpx; /* 上下箭头之间的间距 */
  317. background-color: #f5f5f5; /* 灰色背景 */
  318. }
  319. .up-arrow {
  320. transform: rotate(225deg); /* 下箭头需要反方向旋转 */
  321. margin-bottom: 0; /* 下箭头不需要额外的底部间距 */
  322. }
  323. .down-arrow {
  324. transform: rotate(45deg); /* 下箭头需要反方向旋转 */
  325. margin-bottom: 0; /* 下箭头不需要额外的底部间距 */
  326. }
  327. .input-unit {
  328. color: #666;
  329. font-size: 24rpx;
  330. }
  331. .audio-player {
  332. width: 100%;
  333. padding: 20rpx;
  334. box-sizing: border-box;
  335. /* margin-top: 20rpx; */
  336. }
  337. .controls {
  338. display: flex;
  339. justify-content: space-between;
  340. align-items: center;
  341. margin-bottom: 20rpx;
  342. }
  343. .controls_tv {
  344. display: flex;
  345. /* justify-content: space-between; */
  346. align-items: left;
  347. margin-bottom: 20rpx;
  348. }
  349. .control-button {
  350. width: 40rpx;
  351. height: 40rpx;
  352. padding: 5rpx;
  353. border-radius: 50%;
  354. border: 2rpx solid #c3c3c3;
  355. background-color: rgba(112, 56, 168, 0.5);
  356. }
  357. .control-button_1 {
  358. width: 60rpx;
  359. height: 60rpx;
  360. padding: 5rpx;
  361. border-radius: 50%;
  362. background-color: rgba(0, 170, 255, 0.5);
  363. }
  364. .progress {
  365. display: flex;
  366. align-items: center;
  367. justify-content: center;
  368. margin-bottom: 20rpx;
  369. }
  370. .progress-bar {
  371. width: 80%;
  372. height: 40rpx;
  373. }
  374. .info {
  375. display: flex;
  376. flex-direction: column;
  377. align-items: center;
  378. text-align: center;
  379. }
  380. .song-title, .song-artist {
  381. color: #7eff98;
  382. /* font-weight: bold; */
  383. }
  384. .picker-view {
  385. background-color: #fff;
  386. border: 2rpx solid #ddd;
  387. padding: 10rpx;
  388. font-size: 28rpx;
  389. }
  390. .center-view {
  391. display: flex;
  392. justify-content: center; /* 水平居中 */
  393. align-items: center; /* 垂直居中 */
  394. height: 5vh; /* 设置view的高度,根据需要调整 */
  395. /* background-color: #cccccc; */
  396. /* 渐变背景 */
  397. background: linear-gradient(to bottom, #fff 0%, #ccc 100%);
  398. /* 阴影效果 */
  399. box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
  400. font-weight: 600;
  401. }
  402. .gray-text {
  403. color: gray; /* 或者使用具体的灰度值,如 #808080 */
  404. }
  405. .custom-cell {
  406. /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  407. background-color: #fff;
  408. border-radius: 4px; */
  409. }
  410. .air-conditioner-controls {
  411. display: flex;
  412. justify-content: space-between;
  413. align-items: center;
  414. padding: 20rpx;
  415. }
  416. .control-button {
  417. width: 100rpx;
  418. height: 100rpx;
  419. border-radius: 50%;
  420. display: flex;
  421. flex-direction: column;
  422. align-items: center;
  423. justify-content: center;
  424. background-color: rgba(112, 56, 168, 0.5);
  425. box-shadow: 0 4rpx 10rpx rgba(0, 0, 0, 0.1);
  426. margin: 0 10rpx;
  427. border: 5rpx solid #45dd5e;
  428. }
  429. .control-button_1 {
  430. width: 100rpx;
  431. height: 100rpx;
  432. border-radius: 50%;
  433. display: flex;
  434. flex-direction: column;
  435. align-items: center;
  436. justify-content: center;
  437. background-color: rgba(0, 170, 255, 0.5);
  438. box-shadow: 0 4rpx 10rpx rgba(0, 0, 0, 0.1);
  439. margin: 0 10rpx;
  440. }
  441. .control-button_media {
  442. width: 100rpx;
  443. height: 100rpx;
  444. border-radius: 50%;
  445. display: flex;
  446. flex-direction: column;
  447. align-items: center;
  448. justify-content: center;
  449. background-color: rgba(203, 203, 203, 0.5);
  450. box-shadow: 0 4rpx 10rpx rgba(0, 0, 0, 0.1);
  451. margin: 0 10rpx;
  452. }
  453. .control-button_media_1 {
  454. width: 100rpx;
  455. height: 100rpx;
  456. border-radius: 50%;
  457. display: flex;
  458. flex-direction: column;
  459. align-items: center;
  460. justify-content: center;
  461. background-color: rgba(0, 170, 255, 0.5);
  462. box-shadow: 0 4rpx 10rpx rgba(0, 0, 0, 0.1);
  463. margin: 0 10rpx;
  464. }
  465. .control-icon {
  466. width: 40rpx;
  467. height: 40rpx;
  468. }
  469. .control-text {
  470. font-size: 24rpx;
  471. color: #ffffff;
  472. margin-top: 10rpx;
  473. }
  474. .control-text_zr {
  475. font-size: 24rpx;
  476. color: #ffffff;
  477. margin-top: 10rpx;
  478. }
  479. .control-text_zl {
  480. font-size: 24rpx;
  481. color: #ffffff;
  482. margin-top: 10rpx;
  483. }
  484. .control-text_cs {
  485. font-size: 24rpx;
  486. color: #ffffff;
  487. margin-top: 10rpx;
  488. }
  489. .control-text_sf {
  490. font-size: 24rpx;
  491. color: #ffffff;
  492. margin-top: 10rpx;
  493. }
  494. .canvas4 {
  495. display: flex;
  496. flex-direction: column;
  497. width: 100%;
  498. height: 720rpx;
  499. background-color: #d2d9ff; /* 这里设置你想要的背景色 */
  500. }
  501. /* button {
  502. -webkit-tap-highlight-color: transparent;
  503. background: -webkit-linear-gradient(bottom,rgb(255, 255, 255),rgb(46, 207, 255),rgb(0, 170, 255));
  504. border-radius: 5px;
  505. box-sizing: border-box;
  506. color: #000;
  507. cursor: pointer;
  508. display: block;
  509. font-size: 18px;
  510. line-height: 2.55555556;
  511. margin-left: auto;
  512. margin-right: auto;
  513. overflow: hidden;
  514. padding-left: 14px;
  515. padding-right: 14px;
  516. position: relative;
  517. text-align: center;
  518. text-decoration: none;
  519. } */
  520. .value-display {
  521. font-size: 30rpx;
  522. font-weight: 500;
  523. margin-bottom: 40rpx;
  524. margin-top: 10rpx;
  525. margin-left: 40rpx;
  526. color:white;
  527. }
  528. .button-row {
  529. display: flex;
  530. justify-content: space-between;
  531. margin-bottom: 20rpx;
  532. margin-left: 40rpx;
  533. }
  534. .round-gradient-button {
  535. width: 160rpx;
  536. height: 60rpx;
  537. border: none;
  538. /* background: linear-gradient(to bottom, #ffba4a, #ffaa00); */
  539. /* background: -webkit-linear-gradient(bottom,rgb(255, 255, 255),rgb(46, 207, 255),rgb(0, 170, 255)); */
  540. background-color: rgb(0, 170, 255);
  541. /* color: white; */
  542. font-size: 26rpx;
  543. color: #000;
  544. /* border-radius: 20%; */
  545. line-height: 60rpx;
  546. text-align: center;
  547. /* box-shadow: 0px 4rpx 15rpx rgba(0, 0, 0, 0.2); */
  548. }
  549. .round-gradient-button-pressed {
  550. background: linear-gradient(to bottom, #87ceeb, #aaaaff);
  551. box-shadow: none;
  552. }
  553. .right-content-cover {
  554. display: flex;
  555. align-items: center; /* 垂直居中 */
  556. justify-content: flex-end; /* 水平靠右对齐 */
  557. }
  558. .control-button-cover {
  559. width: 60rpx;
  560. height: 60rpx;
  561. padding: 5rpx 25rpx 5rpx 5rpx;
  562. border-radius: 50%;
  563. background-color: rgba(255, 255, 255, 0.5); /* 白色半透明背景 */
  564. }
  565. .data-container{
  566. margin-top: 36rpx;
  567. display: grid;
  568. justify-content: center;
  569. grid-template-columns: repeat(auto-fill, 300rpx);
  570. grid-gap: 36rpx;
  571. }
  572. .data-container .data-card{
  573. position: relative;
  574. /* background-color:#fff; */
  575. background-color: rgba(112, 56, 168, 0.5);
  576. height: 160rpx;
  577. box-shadow: #d6d6d6 0 0 8rpx;
  578. border-radius: 36rpx;
  579. display: flex;
  580. justify-content: space-between;
  581. padding: 24rpx;
  582. border: 2rpx solid #45dd5e;
  583. }
  584. .data-container .data-card .data-card__text{
  585. position: absolute;
  586. right: 24rpx;
  587. text-align: right;
  588. white-space: nowrap;
  589. }
  590. .data-container .data-card .data-card__icon{
  591. height: 72rpx;
  592. width: 72rpx;
  593. left: 24rpx;
  594. top: 36rpx;
  595. }
  596. .data-container .data-card .data-card__title{
  597. padding-top: 18rpx;
  598. font-size: 28rpx;
  599. font-weight: bold;
  600. color: #ffffff;
  601. }
  602. .data-container .data-card .data-card__title1{
  603. padding-top: 18rpx;
  604. font-size: 28rpx;
  605. font-weight: bold;
  606. color: #ffffff;
  607. }
  608. .data-container .data-card .data-card__value{
  609. padding-top: 36rpx;
  610. font-size: 52rpx;
  611. font-weight: bold;
  612. color: #ffffff;
  613. }
  614. .sliderList {
  615. -webkit-overflow-scrolling: touch
  616. }
  617. .sliderItem {
  618. -webkit-overflow-scrolling: touch
  619. }
  620. .loading-container {
  621. position: fixed;
  622. top: 50%;
  623. left: 50%;
  624. transform: translate(-50%, -50%);
  625. padding: 10px;
  626. /* background-color: #9cffa3; */
  627. color: #b1b1b1;
  628. border-radius: 4px;
  629. z-index: 9999; /* 确保它显示在其他内容之上 */
  630. }
  631. .loading-text {
  632. /* 其他样式 */
  633. width:300rpx;
  634. white-space: nowrap;
  635. }
  636. .clicked {
  637. /* 这里添加你的点击效果样式,例如改变透明度或添加阴影 */
  638. opacity: 0.8;
  639. /* 或者使用动画 */
  640. animation: myAnimation 0.3s;
  641. }
  642. @keyframes myAnimation {
  643. /* 定义你的动画 */
  644. from { transform: scale(1); }
  645. to { transform: scale(0.95); }
  646. }