export const getFonts =()=>{ //其他页面 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); } }) } export const getZSFont = () => { 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); } }) } //欢迎页 export const getFZXZFont = () => { 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); } }) }