Commit f6089eed authored by liwei's avatar liwei

修改了字体路径变量

parent 6964851d
...@@ -28,41 +28,42 @@ ...@@ -28,41 +28,42 @@
/*每个页面公共css */ /*每个页面公共css */
@import '@/uni_modules/uview-ui/index.scss'; @import '@/uni_modules/uview-ui/index.scss';
$font-path: 'http://192.168.1.18/static/font';
@font-face { @font-face {
font-family: 'PingFang SC-Bold, PingFang SC'; font-family: 'PingFang SC-Bold, PingFang SC';
//src: url('https://www.wxmblog.com/wxmapi/ttf/SourceHanSansCN-Bold.ttf') format('truetype'); //src: url('https://www.wxmblog.com/wxmapi/ttf/SourceHanSansCN-Bold.ttf') format('truetype');
src: url('http://192.168.1.8/static/font/SourceHanSansCN-Bold.ttf') format('truetype'); src: url($font-path + '/SourceHanSansCN-Bold.ttf') format('truetype');
} }
@font-face { @font-face {
font-family: 'PingFang SC-Regular, PingFang SC'; font-family: 'PingFang SC-Regular, PingFang SC';
//src: url('https://www.wxmblog.com/wxmapi/ttf/SourceHanSansCN-Regular.ttf') format('truetype'); //src: url('https://www.wxmblog.com/wxmapi/ttf/SourceHanSansCN-Regular.ttf') format('truetype');
src: url('http://192.168.1.8/static/font/SourceHanSansCN-Regular.ttf') format('truetype'); src: url($font-path + '/SourceHanSansCN-Regular.ttf') format('truetype');
} }
@font-face { @font-face {
font-family: 'PingFang SC-Heavy, PingFang SC'; font-family: 'PingFang SC-Heavy, PingFang SC';
//src: url('https://www.wxmblog.com/wxmapi/ttf/SourceHanSansCN-Heavy.ttf') format('truetype'); //src: url('https://www.wxmblog.com/wxmapi/ttf/SourceHanSansCN-Heavy.ttf') format('truetype');
src: url('http://192.168.1.8/static/font/SourceHanSansCN-Heavy.ttf') format('truetype'); src: url($font-path + '/SourceHanSansCN-Heavy.ttf') format('truetype');
} }
@font-face { @font-face {
font-family: 'SourceHanSerifCN-Heavy'; font-family: 'SourceHanSerifCN-Heavy';
//src: url('https://www.wxmblog.com/wxmapi/ttf/SourceHanSerifCN-Heavy-4.ttf') format('truetype'); //src: url('https://www.wxmblog.com/wxmapi/ttf/SourceHanSerifCN-Heavy-4.ttf') format('truetype');
src: url('http://192.168.1.8/static/font/SourceHanSerifCN-Heavy-4.ttf') format('truetype'); src: url($font-path + '/SourceHanSerifCN-Heavy-4.ttf') format('truetype');
} }
@font-face { @font-face {
font-family: 'Arial-Regular, Arial'; font-family: 'Arial-Regular, Arial';
//src: url('https://www.wxmblog.com/wxmapi/ttf/arial.ttf') format('truetype'); //src: url('https://www.wxmblog.com/wxmapi/ttf/arial.ttf') format('truetype');
src: url('http://192.168.1.8/static/font/arial.ttf') format('truetype'); src: url($font-path + '/arial.ttf') format('truetype');
} }
@font-face { @font-face {
font-family: 'Source Han Sans CN-Regular, Source Han Sans CN'; font-family: 'Source Han Sans CN-Regular, Source Han Sans CN';
//src: url('https://www.wxmblog.com/wxmapi/ttf/SourceHanSansCN-Regular.ttf') format('truetype'); //src: url('https://www.wxmblog.com/wxmapi/ttf/SourceHanSansCN-Regular.ttf') format('truetype');
src: url('http://192.168.1.8/static/font/SourceHanSansCN-Regular.ttf') format('truetype'); src: url($font-path + 'h/SourceHanSansCN-Regular.ttf') format('truetype');
} }
/*每个页面公共css */ /*每个页面公共css */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment