Ver Fonte

字体修改

liyongli há 3 anos atrás
pai
commit
a3e4e0c539

BIN
dangyuan.sqlite


+ 10 - 0
src/api/user/user.js

@@ -37,3 +37,13 @@ export function getUser() {
     method: "get"
   });
 }
+
+/**
+ * 系统配置
+ */
+export function sysConfig() {
+  return request({
+    url: "/system/config",
+    method: "get"
+  });
+}

+ 5 - 3
src/assets/css/style.scss

@@ -32,8 +32,8 @@ body{
   -moz-user-select: none;
   -ms-user-select: none;
   user-select: none;
-  font-family: -apple-system,
-    BlinkMacSystemFont,
+  font-family: 
+    "SimHei",
     "Segoe UI",
     "Roboto",
     "Oxygen",
@@ -43,7 +43,9 @@ body{
     "Droid Sans",
     "Helvetica Neue",
     "Microsoft Yahei",
-    sans-serif;
+    sans-serif,
+    -apple-system,
+    BlinkMacSystemFont;
   #app{
     height: 100%;
   }

+ 0 - 1
src/components/Detail/news.vue

@@ -110,7 +110,6 @@ export default {
 #news {
   padding: 0.1rem;
   color: #262626;
-  font-family: 微软雅黑, Microsoft YaHei, PingFangSC;
   overflow-y: scroll;
   font-size: 16px;
   font-weight: 450;

+ 3 - 2
src/config/apiUrl.js

@@ -4,13 +4,14 @@ let useApiUrl = "http://47.108.160.227:802",
 if (process.env.NODE_ENV !== "development") {
   switch (process.env.VUE_APP_MODE) {
     case "buildDev":
-      useApiUrl = "http://47.108.160.227:8000";
+      useApiUrl = "http://47.108.160.227:802";
       break;
     case "buildTest":
       useApiUrl = "http://47.108.160.227:802";
+      isRelease = true;
       break;
     default:
-      useApiUrl = "http://47.108.160.227:802";
+      useApiUrl = "http://47.108.160.227";
       isRelease = true;
       break;
   }

+ 0 - 1
src/pages/detail/newsDetail/Index.vue

@@ -166,7 +166,6 @@ export default {
 #newsDetail {
   padding: 0.1rem;
   color: #262626;
-  font-family: 微软雅黑, Microsoft YaHei, PingFangSC;
   overflow-y: scroll;
   font-size: 16px;
   font-weight: 450;

+ 4 - 1
src/pages/download/Index.vue

@@ -22,6 +22,7 @@
 </template>
 
 <script>
+import { sysConfig } from "@/api/user/user.js";
 import { currentUrlToParams } from "@/utils/common.js";
 import { Button as vanButton, Overlay as vanOverlay } from "vant";
 import "vant/lib/button/style";
@@ -46,7 +47,9 @@ export default {
   },
   mounted() {
     this.$pageParams = currentUrlToParams();
-    this.type = this.$pageParams.pattern - 0;
+    sysConfig().then(res => {
+      this.type = res.GRAY_MODE - 0;
+    });
     const sys = window.navigator.userAgent.toLowerCase();
     this.isAndroid = /android/g.test(sys);
     this.isWindows = /windows/g.test(sys);