From 3c37c0a9649b014143c55b412ed8b9bc68105960 Mon Sep 17 00:00:00 2001 From: limingtao <@ming_tao_li> Date: Thu, 25 Jul 2024 09:43:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.vue | 114 +++++++++--------- .../components/investigation-item2.vue | 5 +- 2 files changed, 63 insertions(+), 56 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index f597a10..67e43e9 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -4,55 +4,55 @@ position: sticky; top: 0; z-index: 999;"> - - 道路交通安全隐患 - 排查助手 - 洞察隐患 智能守护 科技之眼照亮安全之路 - - - - 待办 - {{ totalData.UnderInvestigation }} - - - - - 超期 - {{ totalData.Delay }} + + 道路交通安全隐患 + 排查助手 + 洞察隐患 智能守护 科技之眼照亮安全之路 + + + + 待办 + {{ totalData.UnderInvestigation }} - - 临期 - {{ totalData.Dying }} + + + + 超期 + {{ totalData.Delay }} + + + 临期 + {{ totalData.Dying }} + - - - - - - 本月上报 - {{ totalData.MonthReport }} - - - - - 已完成 - {{ totalData.InGovernance }} + + + + + 本月上报 + {{ totalData.MonthReport }} + + + + + 已完成 + {{ totalData.InGovernance }} + - - - - - 交通隐患排查知识库 - - + + + + 交通隐患排查知识库 + + + - 待办任务 @@ -146,7 +146,7 @@ } this.loadmorestatus = 'loading' this.$request.globalRequest( - `/hiddenDanger/highDanger/getHigDangerDealt?pageNum=${this.page}&pageSize=${10}`, datas, 'POST') + `/hiddenDanger/highDanger/getHigDangerDealt?pageNum=${this.page}&pageSize=${10}`, datas, 'POST') .then(res => { this.loadmorestatus = 'loadmore' if (res.code === 200) { @@ -168,7 +168,7 @@ }, handleClick(row) { console.log(row) - this.$.open('/pages/map/index?businessId=' + row.businessId + '§ionId='+row.sectionCode + '&deptId=' +row.deptId + '&taskName=' + row.name) + this.$.open('/pages/map/index?businessId=' + row.businessId + '§ionId=' + row.sectionCode + '&deptId=' + row.deptId + '&taskName=' + row.name) }, konw() { this.$.open('/pages/knowledge/index') @@ -177,18 +177,18 @@ skipPage(even) { // this.$.open(even) }, - jump(v) { - if(v == 1) { - this.$.setData('pageStatus',1) - } - if(v == 2) { - this.$.setData('pageStatus',3) + jump(v) { + if (v == 1) { + this.$.setData('pageStatus', 1) + } + if (v == 2) { + this.$.setData('pageStatus', 3) + } + + this.$.openTab('/pages/investigation/index') } - - this.$.openTab('/pages/investigation/index') - } }, - onReady() {}, + onReady() { }, // 页面卸载 onUnload() { @@ -223,6 +223,7 @@ height: 500rpx; color: #FFFFFF; padding: calc(var(--status-bar-height) + 40rpx) 20rpx 20rpx; + .title { font-family: Tensentype MeiHeiJ, Tensentype MeiHeiJ; font-weight: bold; @@ -366,10 +367,12 @@ background: #f8fafb; // border-radius: 24px 24px 0px 0px; padding: 20rpx 30rpx 0; - font-family: Source Han Sans CN, Source Han Sans CN; + font-family: Source Han Sans CN, Source Han Sans CN; position: sticky; - top: 418px; + /* top: 418px; */ + top: calc(var(--status-bar-height) + 798rpx); z-index: 99; + padding-bottom:30rpx; } .Box { @@ -385,6 +388,8 @@ align-items: center; position: relative; box-shadow: 1px 1px 3px #ccc; + margin-top: 0; + margin-bottom: 30rpx; .trapezoidal { position: absolute; @@ -432,6 +437,7 @@ display: flex; align-items: center; background: #f8fafb; + .bg { position: absolute; top: 0; diff --git a/pages/investigation/components/investigation-item2.vue b/pages/investigation/components/investigation-item2.vue index 972b824..9fea7f8 100644 --- a/pages/investigation/components/investigation-item2.vue +++ b/pages/investigation/components/investigation-item2.vue @@ -500,8 +500,9 @@ page { } /deep/ .uni-forms-item__label { - font-size: 32rpx; - // height:82rpx + font-size: 32rpx; + height: auto; + margin-bottom: 20rpx; } }