From 9efd40232f2f6350b68d35b442d287d757190ddc Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Tue, 10 Dec 2024 09:19:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=BB=9A=E5=8A=A8=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .hbuilderx/launch.json | 22 +-- components/MultiColorNoticeBar/index.vue | 129 ++++++++++++++++++ pages/realName/index/index.vue | 27 +++- .../index/components/home-notice-bar.vue | 72 +++++++--- 4 files changed, 217 insertions(+), 33 deletions(-) create mode 100644 components/MultiColorNoticeBar/index.vue diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json index 9b0d791..69faf69 100644 --- a/.hbuilderx/launch.json +++ b/.hbuilderx/launch.json @@ -4,16 +4,22 @@ "version" : "0.0", "configurations" : [ { - "app-plus" : { - "launchtype" : "local" - }, - "default" : { - "launchtype" : "local" - }, - "type" : "uniCloud" + "app-plus" : + { + "launchtype" : "local" + }, + "default" : + { + "launchtype" : "local" + }, + "mp-weixin" : + { + "launchtype" : "local" + }, + "type" : "uniCloud" }, { - "playground" : "standard", + "playground" : "custom", "type" : "uni-app:app-android" } ] diff --git a/components/MultiColorNoticeBar/index.vue b/components/MultiColorNoticeBar/index.vue new file mode 100644 index 0000000..f65ce05 --- /dev/null +++ b/components/MultiColorNoticeBar/index.vue @@ -0,0 +1,129 @@ + + + + + diff --git a/pages/realName/index/index.vue b/pages/realName/index/index.vue index 2a05630..32f87b0 100644 --- a/pages/realName/index/index.vue +++ b/pages/realName/index/index.vue @@ -115,15 +115,26 @@ - 今日风险 + 今日风险 - + > --> + + @@ -352,6 +363,7 @@ import PieChartsModelRingTwo from './components/pie-charts-model-ring-two' import PieChartsModelMan from './components/pie-charts-model-man.vue' import PieChartsModelGirl from './components/pie-charts-model-girl.vue' import { getHomePageListApi } from '@/api/phaseTwo/homePage' +import MultiColorNoticeBar from '../../../components/MultiColorNoticeBar' export default { components: { @@ -360,7 +372,8 @@ export default { PieChartsModelRing, PieChartsModelRingTwo, PieChartsModelMan, - PieChartsModelGirl + PieChartsModelGirl, + MultiColorNoticeBar }, data() { return { @@ -1064,7 +1077,7 @@ export default { .today-warning { margin: 30rpx 0; height: 68rpx; - padding: 0 30rpx; + padding-left: 30rpx; display: flex; align-items: center; border: 1rpx solid #ccc; @@ -1077,8 +1090,10 @@ export default { } .uni-notice-bar { - flex: 1; + // flex: 1; + width: 65%; height: 50rpx; + padding-left: 20rpx; // line-height: 50rpx; // background-color: orange; } diff --git a/pages/workPlan/index/components/home-notice-bar.vue b/pages/workPlan/index/components/home-notice-bar.vue index ea25fb7..06b0bf6 100644 --- a/pages/workPlan/index/components/home-notice-bar.vue +++ b/pages/workPlan/index/components/home-notice-bar.vue @@ -2,22 +2,49 @@ - 今日风险 - - + 今日风险 + + + + + +