+
+
- {{ topTitle }}
+
+
+
+
+ {{ n.title }}
+
+
+
+
+
{{ topTitle }}
+
+
+
+ {{ m.title }}
+
+
+
+
@@ -105,16 +145,72 @@ div {
}
.top-content {
width: calc(100% - 400px);
- line-height: 42px;
- text-align: center;
- font-size: 18px;
- font-weight: bold;
- transform: skewX(-8deg);
- background: linear-gradient(to bottom, '#ff7e5f', '#548fff');
- -webkit-background-clip: text;
- color: #fff;
- letter-spacing: 8px;
- text-shadow: -6px 0 0 1px #add8f1;
+ height: 100%;
+ display: inline-flex;
+ justify-content: center;
+ flex-direction: column;
+ .top-content-p {
+ width: 100%;
+ }
+ .title,
+ .b-nav-l,
+ .b-nav-r {
+ display: inline-block;
+ vertical-align: middle;
+ }
+ .b-nav-l,
+ .b-nav-r {
+ width: calc((100% - 300px) / 2);
+ }
+ .b-nav-r {
+ text-align: right;
+ }
+ .title {
+ width: 300px;
+ line-height: 38px;
+ text-align: center;
+ font-size: 18px;
+ font-weight: bold;
+ transform: skewX(-8deg);
+ background: linear-gradient(to bottom, '#ff7e5f', '#548fff');
+ -webkit-background-clip: text;
+ color: #fff;
+ letter-spacing: 8px;
+ text-shadow: -6px 0 0 1px #add8f1;
+ max-height: unset !important;
+ }
+ }
+ .b-nav-l,
+ .b-nav-r {
+ margin: auto;
+ display: inline-flex;
+ gap: 20px;
+ .b-nav-item {
+ display: inline-block;
+ cursor: pointer;
+ min-width: 132px;
+ height: 38px;
+ text-align: center;
+ line-height: 38px;
+ span {
+ font-size: 14px;
+ font-weight: bold;
+ display: inline-flex;
+ transform: skewX(-8deg);
+ background: linear-gradient(to bottom, '#ff7e5f', '#548fff');
+ -webkit-background-clip: text;
+
+ letter-spacing: 4px;
+ text-shadow: -2px 0 0 1px #add8f1;
+ }
+
+ &.nav-act {
+ color: rgba(255, 255, 255, 1);
+ }
+ &.nav-normal {
+ color: rgba(255, 255, 255, 0.6);
+ }
+ }
}
.top-left {
width: 200px;
@@ -163,7 +259,7 @@ div {
}
}
.content {
- height: calc(100% - 138px);
+ height: calc(100% - 60px);
}
}
}
diff --git a/sub-government-screen-service/src/layouts/index.vue b/sub-government-screen-service/src/layouts/index.vue
index 853954d..b59a745 100644
--- a/sub-government-screen-service/src/layouts/index.vue
+++ b/sub-government-screen-service/src/layouts/index.vue
@@ -9,7 +9,7 @@
diff --git a/sub-government-screen-service/src/styles/style.scss b/sub-government-screen-service/src/styles/style.scss
index 5ee6df3..609757d 100644
--- a/sub-government-screen-service/src/styles/style.scss
+++ b/sub-government-screen-service/src/styles/style.scss
@@ -15,3 +15,24 @@
height: auto;
max-height: calc(100vh - 130px);
}
+.txt-ellipsis {
+ display: -webkit-inline-box;
+ -webkit-box-orient: vertical;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ word-break: break-all;
+ white-space: normal;
+}
+.clamp1 {
+ line-clamp: 1;
+ -webkit-line-clamp: 1;
+ line-height: 1.5;
+ max-height: calc(1.5em * 1);
+}
+
+.clamp2 {
+ line-clamp: 2;
+ -webkit-line-clamp: 2;
+ line-height: 1.5;
+ max-height: calc(1.5em * 2);
+}
diff --git a/sub-government-screen-service/src/views/home/index.vue b/sub-government-screen-service/src/views/home/index.vue
index 91ff902..61ec0ae 100644
--- a/sub-government-screen-service/src/views/home/index.vue
+++ b/sub-government-screen-service/src/views/home/index.vue
@@ -1,7 +1,7 @@
-
-
+
+
@@ -59,14 +59,16 @@
-
耿马县农产品销售情况
-
¥1284.624万
-
-
同比去年
-
¥4684.629
-
-
-
+
+
耿马县农产品销售情况
+
¥1284.624万
+
+ 同比去年
+ ¥4684.629
+
+
+
+
@@ -110,13 +112,23 @@ let rollDataList = reactive([
top: 0;
left: 0;
width: 100%;
- padding-top: 24px;
+ height: 120px;
text-align: center;
+ padding-top: 24px;
.home-index-top {
margin: auto;
+ width: calc(100% - 400px);
+ height: 100%;
background-repeat: no-repeat;
- background-position: center 28px;
+ background-position: center bottom;
background-size: contain;
+ position: relative;
+ .home-data-p {
+ position: absolute;
+ left: 0;
+ top: -12px;
+ width: 100%;
+ }
.home-title {
display: inline-block;
font-size: 18px;
@@ -133,7 +145,7 @@ let rollDataList = reactive([
font-weight: bold;
color: #fff;
letter-spacing: 8px;
- margin: 26px 0 0 0;
+ margin-top: 9px;
}
.home-data-contrast {
.tips {