瀏覽代碼

fix: 使用梦源字体

wjc 5 天之前
父節點
當前提交
c1546f933b

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

@@ -0,0 +1,4 @@
+@font-face {
+  font-family: DreamHanSansCN;
+  src: url("../fonts/DreamHanSansCN-W12.ttf");
+}

+ 0 - 1
src/assets/css/theme.scss

@@ -17,7 +17,6 @@ $gap-padding: halfW(8);
 
 :root {
   cursor: none !important;
-  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
   --title-bg: #111c31;
   --title-primary: #b9e3f4;
   --title-secondary: #a1a1a1;

二進制
src/assets/fonts/DreamHanSansCN-W12.ttf


+ 2 - 1
src/main.js

@@ -2,7 +2,7 @@
  * @Author: WangQiBiao
  * @Date: 2019-09-24 17:50:53
  * @LastEditors: wjc
- * @LastEditTime: 2025-12-01 17:21:02
+ * @LastEditTime: 2025-12-12 16:38:42
  * @Description:
  */
 import Vue from 'vue'
@@ -16,6 +16,7 @@ import VueTianditu from 'vue-tianditu'
 import ElementUI from 'element-ui'
 import 'element-ui/lib/theme-chalk/index.css'
 import '@/assets/css/element-variables.scss'
+import '@/assets/css/font.css'
 
 Vue.use(ElementUI)
 // 引入全局过滤器

+ 2 - 1
src/views/hui-jia/a1-screen/index.vue

@@ -2,7 +2,7 @@
  * @Author: wjc
  * @Date: 2025-11-25 10:30:54
  * @LastEditors: wjc
- * @LastEditTime: 2025-12-12 10:51:14
+ * @LastEditTime: 2025-12-12 16:54:23
  * @Description: 
 -->
 <template>
@@ -57,6 +57,7 @@ export default {
   flex-direction: column;
   gap: halfW(16);
   padding: 0 halfW(8) halfW(8) halfW(8);
+  font-family: DreamHanSansCN;
   .screen-top{
     width: 100%;
     flex: 1 1 0%;

+ 1 - 0
src/views/hui-jia/a2-screen/index.vue

@@ -51,6 +51,7 @@ export default {
   display: flex;
   flex-direction: row;
   gap: halfW(16);
+  font-family: DreamHanSansCN;
   .screen-l{
     width: calc(35%);
     flex: 1 1 0%;

+ 2 - 1
src/views/hui-jia/a3-screen/index.vue

@@ -2,7 +2,7 @@
  * @Author: wjc
  * @Date: 2025-11-19 16:09:12
  * @LastEditors: wjc
- * @LastEditTime: 2025-12-12 09:57:09
+ * @LastEditTime: 2025-12-12 16:54:33
  * @Description: 
 -->
 <template>
@@ -53,6 +53,7 @@
     height: calc(100vh - halfH(8) * 2);
     padding: halfW(8) halfW(8) halfW(8) halfW(8);
     background: var(--page-bg);
+    font-family: DreamHanSansCN;
   }
   .a3-screen-content {
     height: 100%;

+ 6 - 5
src/views/hui-jia/a4-screen/index.vue

@@ -1,6 +1,6 @@
 <template>
-  <div class="b1-screen">
-    <div class="b1-screen-content">
+  <div class="a4-screen">
+    <div class="a4-screen-content">
       <div class="top-wrap">
         <implementationTotal :data="state.summary" />
         <implementationIng :data="state.data" />
@@ -22,7 +22,7 @@
   import { huiJiaApi } from "@/api"
 
   export default {
-    name: "B1Screen",
+    name: "A4Screen",
     components: {
       implementationTotal,
       implementationIng,
@@ -143,13 +143,14 @@
   @import "@/assets/css/theme.scss";
 
   $gap-padding: halfW(8);
-  .b1-screen {
+  .a4-screen {
     width: calc(100vw - halfW(8) * 2);
     height: calc(100vh - halfH(8) * 2);
     padding: halfW(8);
     background: var(--page-bg);
+    font-family: DreamHanSansCN;
   }
-  .b1-screen-content {
+  .a4-screen-content {
     height: 100%;
     width: 100%;
     display: flex;

+ 2 - 1
src/views/hui-jia/b1-screen/index.vue

@@ -2,7 +2,7 @@
  * @Author: wjc
  * @Date: 2025-11-19 16:09:12
  * @LastEditors: wjc
- * @LastEditTime: 2025-12-12 15:19:48
+ * @LastEditTime: 2025-12-12 16:55:20
  * @Description: 
 -->
 <template>
@@ -76,6 +76,7 @@
     height: calc(100vh - halfH(8));
     padding: 0 halfW(8) halfW(8);
     background: var(--page-bg);
+    font-family: DreamHanSansCN;
     .logo {
       display: flex;
       align-items: center;

+ 1 - 0
src/views/hui-jia/b2-screen/index.vue

@@ -173,6 +173,7 @@
     height: 100vh;
     width: 100vw;
     background: var(--page-bg);
+    font-family: DreamHanSansCN;
     .logo {
       display: flex;
       align-items: center;

+ 2 - 5
src/views/hui-jia/components/community-map/components/map-list.vue

@@ -1,8 +1,8 @@
 <!--
  * @Author: Wzh
  * @Date: 2020-01-23 10:48:49
- * @LastEditors: Wzh
- * @LastEditTime: 2020-02-19 15:10:29
+ * @LastEditors: wjc
+ * @LastEditTime: 2025-12-12 16:53:29
  * @Description: 地图左下列表
  -->
 <template>
@@ -177,8 +177,6 @@ export default {
   position: absolute;
   width: 50%;
   height: 50%;
-  // height: halfH(482);
-  // width: halfW(330);
   border-radius: 6px;
   background:rgba(10,25,43,0.6);
   border:1px solid rgba(19,51,88,1);
@@ -198,7 +196,6 @@ export default {
     // line-height:halfH(58);
     background:rgba(34,127,233,0.6);
     font-size: halfH(18);
-    font-family:Hiragino Sans GB;
     font-weight:bold;
     color:rgba(255,255,255,1);
   }

+ 2 - 2
src/views/hui-jia/components/resident/index.vue

@@ -270,7 +270,7 @@ export default {
       align-content: center;
     }
     .title{
-      font-size: halfW(16);
+      font-size: halfW(14);
       color: #82D1F6;
       margin-top: halfH(10);
     }
@@ -298,7 +298,7 @@ export default {
       height: halfW(40);
     }
     .title{
-      font-size: halfW(16);
+      font-size: halfW(14);
       color: #82D1F6;
     }
     .value{

+ 1 - 1
src/views/hui-jia/components/user/index.vue

@@ -111,7 +111,7 @@ export default {
     object-fit: cover;
   }
   .text{
-    font-size: halfW(16);
+    font-size: halfW(14);
     color: #9BDAFF;
   }
   .value{