From 5532188eb01fed3f6977b07749598442f3069819 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=B8=B9?= <> Date: Mon, 2 Dec 2024 11:37:02 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index.vue | 383 ++++++++++---------------------------------- static/scss/app.css | 99 ------------ 2 files changed, 82 insertions(+), 400 deletions(-) diff --git a/pages/index.vue b/pages/index.vue index 46bef8a..f15ef0a 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -24,20 +24,30 @@ - + + + + + + + + + + + @@ -448,7 +458,7 @@ 未知的设备 - {{ dc.dataObj[child.dataKey].warning.toString() }} @@ -479,156 +489,6 @@ 未知的设备 - - - - - - - - - (999) - - {{ item2.device.custom.ct.endS > 0 ? `(${item2.device.custom.ct.endS})` : "超时" }} - - - - - - - - - - - - - 全开 - (超时) - - - - - - - {{ item2.device.custom.p1 }} - - - - {{ item2.device.custom.showMask.text }} - - {{ item2.device.custom.p2 }} - - - - - - - - 全关 - (超时) - - - - - - - - - - - (超时) - - - - - - - - - - - - - (超时) - - - - - - - - - - - (超时) - - - - - - - {{ item2.device.custom.p[0] }} - - {{ item2.device.custom.p[1] }} - - - {{ item2.device.custom.showMask.text }} - - {{ item2.device.custom.p[2] }} - - {{ item2.device.custom.p[3] }} - - - - - - - - (超时) - - - - - - - - - - - (超时) - - - - - - - - - {{item2.device.custom.showMask.text}} - - - {{ child.showName }} @@ -871,7 +731,7 @@ display: none; } - // nav + // 顶部nav ::v-deep.uni-navbar__header-container { align-items: center; justify-content: center; @@ -890,27 +750,40 @@ margin-left: 10px; } + // 搜索框 + .search { + display: flex; + align-items: center; + flex-direction: row; + .search-l {flex:1; margin-right: 20px; + ::v-deep.u-search__action { + font-size: 16px; + color: #fff; + } + } + } + .header-section { padding: 0px 10px 102px 10px; background-color: #39ac4f; color: white; border-radius: 0 0 30px 30px; - ::v-deep.u-search__content, - ::v-deep.u-search__content__input { - background-color: white !important; - border-radius: 8px !important; + // ::v-deep.u-search__content, + // ::v-deep.u-search__content__input { + // background-color: white !important; + // border-radius: 8px !important; - .u-icon__icon { - color: #39ac4f !important; - } - } + // .u-icon__icon { + // color: #39ac4f !important; + // } + // } // 复选框 - ::v-deep .u-checkbox__icon-wrap { - background-color: transparent !important; - border-color: #ffffff !important; - } + // ::v-deep .u-checkbox__icon-wrap { + // background-color: transparent !important; + // border-color: #ffffff !important; + // } } .content { @@ -1039,34 +912,16 @@ .card { - ::v-deep.u-cell__body { - padding: 10px; - } - - ::v-deep.u-collapse-item__content__text { - padding: 10px 10px 0; - - .u-collapse-content { - .u-row { - margin-bottom: 1px; - } - - .btn.v-btn { - width: 80px; - } - - .btn.v-btn2 { - font-size: 12px; - width: 90px; - } - - .buttons .load-text { - font-size: 12px; - } - } + + ::v-deep.uni-collapse { + padding: 0 10px; + border-radius: 10px; } + // 基站列表title .jz-title { + padding: 10px 0; + .icon { vertical-align: top; margin-right: 5px; @@ -1087,9 +942,31 @@ // } } + .u-collapse-content { + .u-row { + padding-bottom: 10px; + } + + // 水阀按钮 + // .btn.v-btn { + // width: 80px; + // } + + // .btn.v-btn2 { + // font-size: 12px; + // width: 90px; + // } + + // .buttons .load-text { + // font-size: 12px; + // } + } + + // 水阀列表title .sf-title { font-size: 24rpx; color: #999999; + padding: 10px 0; .text { font-size: 32rpx; @@ -1105,111 +982,9 @@ } } + .card-grey .card-title {padding-bottom: 0;} } - // // 信号 - // .signal { - // position: relative; - // display: flex; - // align-items: flex-end; - // height: 17px; - - // .bar { - // width: 2px; - // background-color: #999; - // border-radius: 2px; - // margin-right: 2px; - // } - - // .bar:nth-child(1) { - // height: 4px; - // } - - // .bar:nth-child(2) { - // height: 7px; - - // } - - // .bar:nth-child(3) { - // height: 10px; - - // } - - // .bar:nth-child(4) { - // height: 13px; - - // } - - // .bar:nth-child(5) { - // height: 16px; - - // } - - // .bar.red { - // background-color: #e60012; - // } - - // .bar.orange { - // background-color: #ffa200; - // } - - // .bar.green { - // background-color: #39ac4f; - // } - - // .bar-no { - // position: absolute; - // left: -2px; - // bottom: 3px; - - // ::v-deep.u-icon__icon { - // font-weight: bold; - // font-size: 18rpx !important; - // } - // } - // } - - // // 电池 - // .battery-container { - // margin: 0 0 0 10px; - // position: relative; - // width: 31px; - // height: 16px; - // line-height: 14px; - // background-color: #fff; - // border-radius: 3px; - // border: 1px solid #333; - // text-align: center; - - // text { - // position: relative; - // z-index: 2; - // } - // } - - // .battery-container::after { - // content: ""; - // position: absolute; - // top: 4px; - // right: -2px; - // width: 1px; - // height: 5px; - // background-color: #333; - // border-radius: 4px; - // } - - // .battery-level { - // height: 12px; - // position: absolute; - // top: 1px; - // bottom: 0; - // left: 1px; - // width: 90%; - // max-width: 90%; - // background-color: #4CAF50; - // border-radius: 2px; - // transition: width 0.5s; - // } .font-green { color: #39ac4f !important; @@ -1224,6 +999,7 @@ padding: 5px 1px; .u-button { + width: 100% !important; min-width: 77px; } @@ -1233,6 +1009,11 @@ } } + .tips { + font-size: 12rpx; + margin: 10px; + } + .valve { display: flex; align-items: center; diff --git a/static/scss/app.css b/static/scss/app.css index aec8d13..9f5eb1c 100644 --- a/static/scss/app.css +++ b/static/scss/app.css @@ -42,15 +42,6 @@ background-color: transparent !important; } -/* 卡片线 */ -.u-collapse>.u-line { - border: none !important; -} - -/* 列表 */ -.u-collapse-item>.u-line { - border-bottom: none !important; -} /* fixed */ .fixed { @@ -122,93 +113,3 @@ margin-bottom: 0 !important; } -/* 首页阀门列表 */ -/* .control { - padding: 10px; -} - -.valve { - display: flex; - align-items: center; - flex-direction: column; -} - -.valve>view { - display: flex; - justify-content: center; -} - -.valve .btn-img { - width: 130px; - margin: 10px; - position: relative; -} - -.valve .btn-img .text, -.valve .btn-img .text5 { - position: absolute; - z-index: 2; - width: -webkit-fill-available; - height: -webkit-fill-available; -} - -.valve .btn-img .text>view, -.valve .btn-img .text5>view { - position: absolute; - font-weight: bold; - font-size: 14px; -} - -.valve .btn-img .text .left, -.valve .btn-img .text5 .left { - left: 0; - top: 24%; -} - -.valve .btn-img .text5 .left { - top: 41%; -} - -.valve .btn-img .text .top, -.valve .btn-img .text5 .top { - top: -12px; - left: 33%; -} - -.valve .btn-img .text5 .top { - top: 0px; -} - -.valve .btn-img .text .middle, -.valve .btn-img .text5 .middle { - font-size: 18px; - top: 36%; - left: 50%; - transform: translate(-50%, -50%); - color: #e60012; -} - -.valve .btn-img .text5 .middle { - top: 50%; -} - -.valve .btn-img .text .right, -.valve .btn-img .text5 .right { - right: 0; - top: 24%; -} - -.valve .btn-img .text5 .right { - top: 41%; -} - -.valve .btn-img .text .bottom, -.valve .btn-img .text5 .bottom { - bottom: -4px; - left: 33%; -} - -.valve .btn-img .text5 .bottom { - bottom: 0px; -} */ -