#
zhou zhou
8 天以前 da05dcffeabcb3c460e45666a4804f4ea5a4145a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<script>
    export default {
        onLaunch: function() {
            console.log('App Launch')
        },
        onShow: function() {
            console.log('App Show')
        },
        onHide: function() {
            console.log('App Hide')
        }
    }
</script>
 
<style lang="scss">
    /*每个页面公共css */
    @import "@/uni_modules/uview-ui/index.scss";
    @import "colorui/main.css";
    @import "colorui/icon.css";
 
    /* 引入字体文件 */
    @font-face {
        font-family: a4;
        src: url('@/static/family/HarmonyOS_Sans_SC_Regular.ttf') format('truetype');
        font-weight: normal;
        font-style: normal;
    }
 
    @font-face {
        font-family: a3;
        src: url('@/static/family/HarmonyOS_Sans_SC_Light.ttf') format('truetype');
        font-weight: 300;
        font-style: normal;
    }
 
    @font-face {
        font-family: a1;
        src: url('@/static/family/HarmonyOS_Sans_SC_Bold.ttf') format('truetype');
        font-weight: bold;
        font-style: normal;
    }
 
    @font-face {
        font-family: a2;
        src: url('@/static/family/HarmonyOS_Sans_SC_Black.ttf') format('truetype');
        font-weight: 900;
        font-style: normal;
    }
</style>