jiangchengfeiyi-xiaochengxu/common/globalFont.js

36 lines
914 B
JavaScript
Raw Normal View History

2025-03-01 05:33:28 +00:00
export const getFonts =()=>{
//首页
2025-03-16 13:35:20 +00:00
// uni.loadFontFace({
// family: 'ZhongShanFonts',
// source: `url("https://carbon2.obs.cn-north-4.myhuaweicloud.com/fonts/ZhongShanFonts.ttf")`,
// success:(res) =>{
// console.log('success',res);
// },
// fail:(err) => {
// console.log('err',err);
// }
// })
// //其他页面
// uni.loadFontFace({
// family: 'FangZhengFonts',
// source: `url("https://carbon2.obs.cn-north-4.myhuaweicloud.com/fonts/FangZhengFonts.TTF")`,
// success:(res) =>{
// console.log('success',res);
// },
// fail:(err) => {
// console.log('err',err);
// }
// })
2025-03-13 02:49:36 +00:00
2025-03-16 13:35:20 +00:00
// uni.loadFontFace({
// family: 'FangZhengXiaoZhuan',
// source: `url("https://carbon2.obs.cn-north-4.myhuaweicloud.com/fonts/FangZhengXiaoZhuan.ttf")`,
// success:(res) =>{
// console.log('success',res);
// },
// fail:(err) => {
// console.log('err',err);
// }
// })
2025-03-01 05:33:28 +00:00
}