Browse Source

添加字体

DESKTOP-6LTVLN7\Liumouren 2 years ago
parent
commit
3ee697a9bc

+ 14 - 0
src/assets/font/font.css

@@ -4,3 +4,17 @@
   font-weight: normal;
   font-style: normal;
 }
+
+@font-face {
+  font-family: "zhihun181";
+  src: url("./zhihun181feichibiaoti.ttf");
+  font-weight: normal;
+  font-style: normal;
+}
+
+@font-face {
+  font-family: "pingfangSC";
+  src: url("./pingfangSC.ttf");
+  font-weight: normal;
+  font-style: normal;
+}

BIN
src/assets/font/pingfangSC.ttf


BIN
src/assets/font/zhihun181feichibiaoti.ttf


+ 1 - 1
src/components/common/ChartCard.vue

@@ -70,7 +70,7 @@ export default {
   position: relative;
   width: 100%;
   font-size: 18px;
-  font-family: PingFang SC;
+  font-family: pingfangSC;
   font-weight: bold;
   color: #74ffff;
   margin-left: 10px;

+ 2 - 1
src/components/common/TagCard.vue

@@ -77,7 +77,7 @@ export default {
   .tagValue {
     display: flex;
     span:nth-child(1) {
-      font-family: YouSheBiaoTiHei;
+      font-family: zhihun181;
       font-weight: bold;
       color: @tagValueColor;
       line-height: 30px;
@@ -101,6 +101,7 @@ export default {
     font-size: 16px;
     font-weight: bold;
     color: #ffffff;
+    font-family: pingfangSC;
     line-height: 20px;
   }
 }

+ 3 - 2
src/components/common/TagTableCard.vue

@@ -30,7 +30,7 @@
 import TagCard from "./TagCard.vue";
 export default {
   name: "TagTableCard",
-  components: {TagCard},
+  components: { TagCard },
   data() {
     return {};
   },
@@ -103,6 +103,7 @@ export default {
       font-size: 16px;
       font-weight: bold;
       color: #ffffff;
+      font-family: pingfangSC;
     }
     div:nth-child(2) {
       font-size: 30px;
@@ -113,7 +114,7 @@ export default {
       align-items: center;
       justify-content: center;
       flex-wrap: nowrap;
-      font-family: YouSheBiaoTiHei;
+      font-family: zhihun181;
       span {
         font-size: 12px;
         font-weight: bold;

+ 2 - 3
src/components/layout/MenuCard.vue

@@ -122,11 +122,10 @@ export default {
 @topTitleBgLeft: #00244d;
 @topTitleMinLeft: #002f56;
 @lightColor: #74ffff;
-
 .menuMainBox {
   position: relative;
   z-index: 999;
-  margin: 5px 5px;
+  margin: 10px 5px;
   min-height: 60px;
   border: 2px solid transparent;
   border-image: --webkit-linear-gradient(to top, @borderColor, transparent) 1;
@@ -262,7 +261,7 @@ export default {
 .menuMainBoxA {
   position: relative;
   z-index: 999;
-  margin: 5px 5px;
+  margin: 10px 5px;
   min-height: 60px;
   border: 2px solid transparent;
   border-image: --webkit-linear-gradient(to top, @lightColor, transparent) 1;

+ 2 - 2
src/views/HomeView.vue

@@ -443,9 +443,9 @@ export default {
   display: flex;
   flex-direction: row;
   flex-wrap: wrap;
-    align-content: flex-start;
+  align-content: flex-start;
   left: 5px;
-  top: 65px;
+  top: 60px;
   width: 870px;
   padding-right: 10px;
   margin-right: 10px;