qingyiay
2023-05-10 29658de29b2eb5292bf0c2fad7427b374b769ebc
App.vue
@@ -2,10 +2,37 @@
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>