From 29658de29b2eb5292bf0c2fad7427b374b769ebc Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期三, 10 五月 2023 20:29:31 +0800
Subject: [PATCH] 样式修改,引入字体,修改逻辑

---
 App.vue |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/App.vue b/App.vue
index 2ff8874..681a4b3 100644
--- a/App.vue
+++ b/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>

--
Gitblit v1.9.1