<script>
|
export default {
|
onShow() {},
|
methods: {}
|
// created() {
|
// uni.loadFontFace({
|
// family: 'siYuanLight', // 字体名称,可以自定义
|
// source: 'url("/utils/fonts/siyuan.OTF")', // 字体文件路径
|
// success() {
|
// console.log('字体加载成功');
|
// },
|
// fail() {
|
// console.log('字体加载失败');
|
// }
|
// });
|
// }
|
};
|
</script>
|
|
<style lang="scss" scoped>
|
/*每个页面公共css */
|
@import '@/uni_modules/uview-ui/index.scss';
|
@font-face {
|
font-family: siYuanLight;
|
src: url('https://mx.jzeg.cn:9095/appimg/fonts/siyuan.OTF');
|
}
|
@font-face {
|
font-family: weighting;
|
src: url('https://mx.jzeg.cn:9095/appimg/fonts/weighting.TTF');
|
}
|
body {
|
font-family: siYuanLight, sans-serif;
|
}
|
// @font-face {
|
// font-family: 'weighting';
|
// src: url('./utils/fonts/weighing.TTF');
|
// }
|
</style>
|