#
zhou zhou
12 小时以前 58b41dc039c5c9d1b758c9e190a7c35225ad7585
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<script>
export default {
    onLaunch: function () {
        console.log('App Launch')
 
        // 初始化默认应用设置
        let appSettings = uni.getStorageSync('appSettings')
        if (!appSettings) {
            appSettings = {
                orderReviewRequired: false,
                orderPakinRequiresMainList: false,
                orderDetlMultiSelect: false,
                orderCombNeedSplit: true,
                orderCombSeparator: ';',
                orderCombArrayIndex: 0,
                orderCombStartPos: 3,
                containerBindingFields: [
                    { field: 'maktx', label: 'container.matName' },
                    { field: 'specs', label: 'container.matSpec' },
                    { field: 'batch', label: 'container.matBatch' },
                    { field: 'anfme', label: 'container.matQty' }
                ],
                containerBindingEditFields: [
                    {
                        field: 'batch',
                        label: 'container.matBatch',
                        type: 'text'
                    },
                    {
                        field: 'anfme',
                        label: 'container.matQty',
                        type: 'number'
                    }
                ]
            }
            uni.setStorageSync('appSettings', appSettings)
        }
    },
    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>