-
Notifications
You must be signed in to change notification settings - Fork 18
/
App.vue
46 lines (42 loc) · 965 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
41
42
43
44
45
46
<script>
var graceJS = require('@/Grace.JS/grace.js');
export default {
onLaunch: function() {
console.log('App Launch');
},
onShow: function() {
//判断当前版本
// #ifdef APP-PLUS
var plantForm = '';
uni.getSystemInfo({
success: (res) => {
// console.log(res.platform);
if (res.platform == "android") {
plantForm = 'android'
} else if (res.platform == "ios") {
plantForm = 'ios'
} else {
plantForm = 'miniprogram'
}
}
})
var me = this;
var serverUrl = me.getServerUrl();
// #endif
console.log('App Show');
},
onHide: function() {
console.log('App Hide');
}
};
</script>
<style>
/*每个页面公共css */
@import url('./graceUI/graceUI.css');
@import url('./graceUI/graceIcons.css');
/* @import url('./common/uni.css'); */
@import url('./common/common.css');
@import url('./graceUI/graceUI2.2.css');
/* @import './graceUI/graceUI.css';
@import './graceUI/graceIcons.css'; */
</style>