lvkun 1 vuosi sitten
vanhempi
commit
742f26acf4

BIN
src/assets/bg.png


BIN
src/fonts/SourceHanSansCN-Bold.otf


BIN
src/fonts/SourceHanSansCN-ExtraLight.otf


BIN
src/fonts/SourceHanSansCN-Heavy.otf


BIN
src/fonts/SourceHanSansCN-Light.otf


BIN
src/fonts/SourceHanSansCN-Medium.otf


BIN
src/fonts/SourceHanSansCN-Normal.otf


BIN
src/fonts/SourceHanSansCN-Regular.otf


+ 3 - 1
src/layout/layout.vue

@@ -47,9 +47,11 @@ const isMicro = useIsMicro()
       box-sizing: border-box;
       overflow: hidden;
       overflow-y: scroll;
-      background: linear-gradient( 180deg, #E8FCFF 0%, #F3F6F9 39%, #F1F6FF 100%);
+      // background: linear-gradient( 180deg, #E8FCFF 0%, #F3F6F9 39%, #F1F6FF 100%);
       font-family: "Source Han Sans CN-Regular" !important;
       font-weight: 400;
+      background: url('@/assets/bg.png') no-repeat top left;
+      background-size: 100% 100%;
     }
   }
 }

+ 3 - 1
src/styles/index.less

@@ -1,3 +1,5 @@
 @import '~ant-design-vue/dist/antd.less';
 
-@import '~@/styles/theme.less';
+@import '~@/styles/theme.less';
+
+

+ 12 - 1
src/styles/theme.less

@@ -9,4 +9,15 @@
 
 // @import '~ant-design-vue/dist/antd.less';
 
-// @import '~ant-design-vue/dist/antd.dark.less';
+// @import '~ant-design-vue/dist/antd.dark.less';
+
+
+@font-face {
+  font-family: 'MyCustomFont' !important;
+  src: url('../fonts/SourceHanSansCN-Bold.otf');
+}
+
+
+body {
+  font-family: 'MyCustomFont', sans-serif !important;
+}