/* 假设你的页面容器有一个类名为.page-container */ .container { display: flex; flex-direction: column; height: 100vh; width: 100vw; } /* 隐藏滚动条 */ .tab_page_container { flex: block; overflow-x: hidden; overflow-y: auto; } /* 隐藏滚动条 */ ::-webkit-scrollbar { width: 0; height: 0; color: transparent; display: none; } /************************ 首页 ************************/ .nav-wrap { backdrop-filter: blur(10rpx); border-bottom: 1rpx solid rgba(0, 0, 0, 0.1); } .nav-wrap .nav-info { padding-left: 32rpx; display: flex; align-items: center; } .nav-wrap .nav-info .device-pic { height: 36rpx; margin-right: 12rpx; } .nav-wrap .nav-info .z { height: 24rpx; margin-right: 12rpx; } .nav-wrap .nav-info text { font-size: 28rpx; color: #353535; font-weight: bold; margin-right: 24rpx; } .nav-wrap .nav-info .j { height: 16rpx; } .mair { width: calc(100vw - 64rpx); padding: 20rpx 32rpx 0; position: relative; overflow: hidden; } .mair .play-info { width: 100%; padding: 16rpx 0; background: linear-gradient(167deg, #D8D8D8 0%, rgba(238, 238, 238, 0.5) 100%); border-radius: 12rpx; display: flex; align-items: center; justify-content: center; } .mair .play-info .info { width: 550rpx; height: 152rpx; position: relative; } .mair .play-info .wakeMode { width: 96rpx; height: 152rpx; background: linear-gradient(180deg, #000000 0%, #000000 100%); box-shadow: inset 2rpx 6rpx 10rpx 0px rgba(255, 255, 255, 0.61), inset 0px -2rpx 4rpx 0px rgba(255, 255, 255, 0.3); border-radius: 12rpx; margin-left: 8rpx; position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; } .mair .play-info .wakeMode text { height: 28rpx; font-size: 20rpx; font-weight: 500; color: #FFFFFF; line-height: 28rpx; font-weight: 500; margin-top: 20rpx; } .mair .play-info .wakeMode .mode { position: absolute; top: 0; left: 0; width: 96rpx; height: 148rpx; z-index: 999; } .mair .play-info .info .logo { position: absolute; top: 14rpx; left: 20rpx; height: 48rpx; } .mair .play-info .info .battery { position: absolute; top: 8rpx; right: 16rpx; height: 56rpx; width: 56rpx; } .mair .play-info .info .fm { color: #fff; } .mair .play-info .info .black { position: absolute; top: 0; left: 0; width: 550rpx; height: 152rpx; } .mair .play-info .info .mode { position: absolute; top: 0; left: 0; width: 550rpx; height: 152rpx; z-index: 999; } .mair .play-info .info .fm { position: absolute; top: 22rpx; left: 50%; transform: translateX(-50%); font-size: 48rpx; font-weight: 600; color: #6D00FF; line-height: 66rpx; } .mair .play-info .info .fmMod { position: absolute; top: 22rpx; left: 50%; transform: translateX(-50%); width: 200rpx; height: 66rpx; z-index: 1000; } .mair .play-info .info .fm .gochnnalList { width: 50rpx; height: 50rpx; position: absolute; top: 8rpx; left: 100%; } .mair .play-info .info .thisMusic { position: absolute; bottom: 26rpx; left: 50%; transform: translateX(-50%); width: 488rpx; display: flex; justify-content: center; align-items: center; } .mair .play-info .info .thisMusic>text { width: 100rpx; display: inline-block; color: #fff; font-size: 20rpx; } .mair .play-info .info .thisMusic .scroll-box { position: relative; max-width: 388rpx; display: flex; align-items: center; } .thisMusic .scroll-box .scroll-wrap { max-width: 100%; display: inline-block; vertical-align: top; overflow: hidden; white-space: nowrap; } .thisMusic .scroll-box .scroll-item { /* animation: scroll linear 4s alternate infinite; */ float: left; color: #fff; font-size: 20rpx; } @keyframes scroll { 0% { margin-left: 0; transform: translateX(0); } 10% { margin-left: 0; transform: translateX(0); } 90% { margin-left: 100%; transform: translateX(-100%); } 100% { margin-left: 100%; transform: translateX(-100%); } } .mair .gologin { position: absolute; top: 0; left: 0; width: 100vw; height: 100%; background-color: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; z-index: 9999; } .mair .gologin .model { width: 100%; height: 100%; position: relative; background-color: #fff; } .mair .gologin .model>image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .mair .gologin .model>view { /* position: absolute; top: 0; left: 0; */ width: 100%; height: 100%; overflow: hidden; display: flex; align-items: center; flex-direction: column; } .mair .gologin .model>view>image { display: block; height: 44rpx; margin: 398rpx auto 18rpx; } .mair .gologin .model>view text { display: block; width: 100%; font-size: 30rpx; color: #353535; font-weight: bold; text-align: center; margin-bottom: 66rpx; } .mair .goruter .model { background: #fff; height: 100%; width: 100%; } .mair .goruter .model>view>image { display: block; height: 176rpx; margin: 318rpx auto 18rpx; } .pd { position: relative; width: 120vw; height: calc(100% - 204rpx); padding-top: 20rpx; margin-left: -24rpx; } .pd .conm { padding-left: 24rpx; width: calc(100vw - 52rpx); } .pd .cz { width: 22rpx; height: 1664rpx; position: absolute; top: 24rpx; left: 24rpx; } .pd .musicList { padding: 0 0 20rpx 44rpx; position: relative; } .pd .musicList .li { height: 98rpx; display: flex; align-items: center; margin-bottom: 52rpx; color: #353535; position: relative; } .pd .musicList .li .zz { width: 236rpx; height: 22rpx; position: absolute; top: 48rpx; left: -70rpx; z-index: 999; } .pd .musicList .li .lm { transform: rotate(90deg); } .pd .musicList .li .musicInfo { width: 606rpx; height: 98rpx; display: flex; align-items: center; margin-left: 22rpx; position: relative; } .pd .musicList .li .musicInfo .pic { width: 86rpx; height: 86rpx; border-radius: 50%; margin-right: 24rpx; border: 2rpx solid #979797; } .pd .musicList .li .musicInfo text { font-size: 30rpx; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: calc(100% - 200rpx); } .pd .musicList .li .musicInfo .svg { position: absolute; top: 34rpx; right: 50rpx; width: 34rpx; height: 30rpx; } .pd .musicList .li:last-child { margin: 0; } .pd .musicList .li.action { color: #6547A3; } .pd .musicList .li.action .musicInfo { border-radius: 49rpx; background-color: #D8D8D8; } .mair .mz { width: calc(100% - 72rpx); padding: 32rpx 36rpx; background: #FFFFFF; border-radius: 0px 0px 18rpx 18rpx; overflow: hidden; } .mair .deviceList { width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); position: absolute; top: 0; left: 0; z-index: 9999; } .mair .mz .li-view { height: 160rpx; float: left; width: calc(100% / 2 - 8rpx); margin-bottom: 36rpx; display: flex; align-items: center; } .mair .mz .li-view:nth-child(2n) { margin-left: 14rpx; } .mair .mz .li { position: relative; width: calc(100% - 44rpx); height: 160rpx; display: flex; align-items: center; border: 2rpx solid #353535; border-radius: 16rpx; padding: 0 20rpx; background-color: #fff; } .mair .mz .li image { width: 96rpx; } .mair .mz .li .delete { position: absolute; top: -6rpx; right: -6rpx; width: 36rpx; } .mair .mz .li .deviceName { font-size: 28rpx; color: #353535; font-weight: 500; margin-left: 18rpx; } .mair .mz .li .onli { position: absolute; bottom: 14rpx; right: 24rpx; font-size: 24rex; color: #353535; } .mair .mz .li.action { border: 4rpx solid #6547A3; box-shadow: 0px 4rpx 8rpx 0px rgba(0, 0, 0, 0.5); width: calc(100% - 48rpx); height: 156rpx; } .mair .mz .li.action .onli { color: #6547A3; } .mair .mz .li.offline { opacity: 0.6; } .mair .mz .but { float: left; width: 100%; display: flex; justify-content: center; } .mair .mz .but text { display: flex; justify-content: center; align-items: center; width: 226rpx; height: 80rpx; background: #6547A3; border-radius: 45rpx; color: #fff; margin: 0 20rpx; } .wake { height: 48rpx; width: 48rpx; z-index: 1000; } /* .updataminiwx { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.6); z-index: 9999; } .updataminiwx .mode { width: 520rpx; height: 410rpx; position: relative; } .updataminiwx .mode .bg { width: 520rpx; height: 410rpx; } .updataminiwx .mode .updata-view { width: 520rpx; height: 410rpx; position: absolute; top: 0; left: 0; } .updataminiwx .mode .updata-view image { width: 124rpx; height: 124rpx; margin: 24rpx auto 14rpx; display: block; } .updataminiwx .mode .updata-view .title { height: 38rpx; font-size: 30rpx; font-weight: bold; color: #353535; line-height: 38rpx; display: block; text-align: center; margin-bottom: 16rpx; } .updataminiwx .mode .updata-view .tip { height: 38rpx; font-size: 30rpx; font-weight: 500; color: #999; line-height: 38rpx; display: block; text-align: center; margin-bottom: 40rpx; } .updataminiwx .mode .updata-view>view { display: flex; justify-content: center; } .updataminiwx .mode .updata-view>view text { width: 226rpx; height: 80rpx; text-align: center; line-height: 80rpx; border-radius: 40rpx; font-size: 30rpx; font-weight: bold; margin: 0 10rpx; } .updataminiwx .mode .updata-view>view .onBut { background-color: rgba(153, 153, 153, 1); color: #fff; } .updataminiwx .mode .updata-view>view .twoBut { background-color: rgba(101, 71, 163, 1); color: #fff; } */ /************************ 我的 ************************/ /* pages/me/me.wxss */ .me .head-logo { padding: 38rpx 0 28rpx; display: flex; flex-direction: column; justify-content: center; align-items: center; } .me .head-logo image { width: 240rpx; height: 240rpx; border-radius: 50%; border: 10rpx solid rgba(101, 71, 163, 0.2); margin-bottom: 28rpx; } .me .head-logo text { font-size: 36rpx; font-weight: bold; } .me .head-logo .goLogin { color: #999; } .me .head-logo .nick_name { color: #353535; } .me .br { height: 20rpx; background: #999999; opacity: 0.05; } .me .list { padding: 0 30rpx; } .me .list .li { height: 102rpx; display: flex; } .me .list .li .icon { height: 102rpx; display: flex; align-items: center; margin-right: 20rpx; } .me .list .li image { width: 40rpx; } .me .list .li .button { width: calc(100% - 60rpx); border-bottom: 1rpx solid #E0DCD7; position: relative; display: flex; align-items: center; } .between_text { height: 105rpx; display: flex; align-items: center; font-size: 30rpx; background-color: transparent; } .between_image { height: 105rpx; display: flex; align-items: center; background-color: transparent; justify-content: flex-end; } .me .list .li .button button, .me .list .li .button text { margin: 0; background: none; text-align: left; padding: 0; line-height: 102rpx; font-size: 30rpx; color: #353535; font-weight: 400; } .me .list .li .button image.j { height: 22rpx; width: 12rpx; position: absolute; top: 40rpx; right: 0rpx; } /* position: fixed; display: flex; */ .login { display: flex; width: 100vw; align-items: flex-end; margin-bottom: 50rpx; justify-content: center; } .login>view { display: flex; justify-content: center; align-items: center; width: 520rpx; height: 80rpx; background: #999999; border-radius: 45rpx; font-size: 36rpx; font-weight: 400; color: #FFFFFF; } .login>view.action { background: #6547A3; } /************************ 底部选择按钮 ************************/ .line { height: 1rpx; background-color: #999999; } .bottom_view { flex: 1; } .bottom_image { width: 44rpx; height: 44rpx; } /************************ banner ************************/ .banner_container { width: 100%; height: 264rpx; margin-top: 32rpx; /* 根据需要调整高度 */ overflow: hidden; position: relative; border-radius: 16rpx; } .swiper { width: 100%; height: 264rpx; } .swiper_image { width: 100%; display: block; } /* .banner_container { margin-top: 24rpx; height: 270rpx; background-color: transparent; } .banner_item { height: 270rpx; background-color: transparent; } */ /* 设置指示点的大小和颜色 */ .swiper_dot { width: 10px; /* 指示点的宽度 */ height: 10px; /* 指示点的高度 */ background-color: rgba(21, 128, 56, 0.5); /* 指示点的颜色,这里使用了半透明的白色 */ border-radius: 50%; /* 使指示点成为圆形 */ margin: 0 4px; /* 指示点之间的间距 */ display: inline-block; /* 使指示点成为行内块元素 */ } /* 设置当前选中指示点的样式(可选) */ .swiper_dot_active { background-color: red; /* 当前选中指示点的颜色 */ width: 12px; /* 当前选中指示点的宽度(可以比未选中时稍大) */ height: 12px; /* 当前选中指示点的高度(可以比未选中时稍大) */ } .add_device_public { background-color: #6546A3; width: 80vw; height: 88rpx; margin-top: 32rpx; margin-left: 5%; border-radius: 72rpx; display: flex; text-align: center; justify-content: center; align-items: center; } .scoll_content { flex: 1; /* 占据剩余空间 */ overflow-y: auto; /* 允许垂直滚动 */ -webkit-overflow-scrolling: touch; /* 改善iOS上的滚动性能 */ background-color: #fff; /* 背景色仅用于示例 */ } .item_public { height: 264rpx; border: 2rpx solid #6546A3; border-radius: 24rpx; display: flex; margin-bottom: 10rpx; } .item_public_image { height: 200rpx; width: 200rpx; margin-left: 32rpx; margin-top: 32rpx; } .item_public_right { flex: 1; }