Commit 1270b3c0 by chenwq

feat(global, teamList): 添加自定义数字字体并应用到团队列表数值样式

- 全局样式中新增两种专用数字字体的定义
- 添加字体预加载以优化字体加载体验
- 更新团队列表页面的数值列字体样式
1 parent 9ca3d1bf
......@@ -3,6 +3,21 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no,viewport-fit=cover">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<!-- 字体预加载 -->
<link
rel="preload"
as="font"
type="font/woff2"
href="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-500-Medium.woff2"
crossorigin="anonymous"
/>
<link
rel="preload"
as="font"
type="font/woff2"
href="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-700-Bold.woff2"
crossorigin="anonymous"
/>
<% for (var i in htmlWebpackPlugin.options.cdn&&htmlWebpackPlugin.options.cdn.css) { %>
<link href="<%= htmlWebpackPlugin.options.cdn.css[i] %>" rel="preload" as="style" />
<link href="<%= htmlWebpackPlugin.options.cdn.css[i] %>" rel="stylesheet" />
......
......@@ -16,6 +16,28 @@ body .app {
--envSafeAreaInsetBottom: env(safe-area-inset-bottom);
}
@font-face {
font-family: "numberNor";
font-style: normal;
// font-weight: 500;
font-display: swap;
src:
url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-500-Medium.woff2") format("woff2"),
url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-500-Medium.woff") format("woff"),
url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-500-Medium.ttf") format("truetype");
}
@font-face {
font-family: "numberBold";
font-style: normal;
// font-weight: 700;
font-display: swap;
src:
url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-700-Bold.woff2") format("woff2"),
url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-700-Bold.woff") format("woff"),
url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-700-Bold.ttf") format("truetype");
}
img {
width: 100%;
height: 100%;
......
......@@ -444,7 +444,7 @@ export default {
.col-value {
color: #000000E5;
font-size: 20px;
font-weight: 500;
font-family: 'numberNor';
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!