From a9365f3f01a2406f971f999e9b6ff01cdd4b6a55 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期三, 10 五月 2023 20:33:52 +0800
Subject: [PATCH] 样式修改,引入字体,修改逻辑
---
App.vue | 46 +++++++++++++++++++++++++++++++++-------------
1 files changed, 33 insertions(+), 13 deletions(-)
diff --git a/App.vue b/App.vue
index 5eb0a20..681a4b3 100644
--- a/App.vue
+++ b/App.vue
@@ -1,18 +1,38 @@
<script>
- export default {
- onLaunch: function() {
- console.log('App Launch')
- },
- onShow: function() {
- console.log('App Show')
- },
- onHide: function() {
- console.log('App Hide')
- }
- }
+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';
+/*姣忎釜椤甸潰鍏叡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