forked from infinityu/mina-wear-mask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.vue
40 lines (38 loc) · 851 Bytes
/
App.vue
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
<script>
import Vue from 'vue'
let sysInfo = uni.getSystemInfoSync();
let WINDOW_HEIGHT = sysInfo.windowHeight;
export default {
globalData: {
WINDOW_HEIGHT: WINDOW_HEIGHT,
cropImageFilePath: '',
rapaintAfterCrop: false,
PAGE_BG_COLOR: '#C12928',
enableSecurityCheck: true
},
onLaunch: function() {
console.log('App Launch');
if (!wx.cloud) {
console.error('请使用 2.2.3 或以上的基础库以使用云能力');
} else {
wx.cloud.init({
traceUser: true
});
}
},
onShow: function() {
console.log('App Show');
},
onHide: function() {
console.log('App Hide')
}
}
</script>
<style>
/*每个页面公共css */
@import './common/uni.css';
@import "colorui/animation.css";
@import "colorui/main.css";
@import "colorui/icon.css";
@import "app.css";
</style>