-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
45 lines (43 loc) · 1021 Bytes
/
app.js
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
import updatecheck from '/utils/updatecheck'
import init from '/utils/init'
App({
onLaunch(options) {
console.log('App Launch', options);
console.log('getSystemInfoSync', dd.getSystemInfoSync());
console.log('SDKVersion', dd.SDKVersion);
console.log('updateManage',updatecheck.updateManager);
//初始化配置
init.initAll();
},
onShow() {
console.log('App Show');
},
onHide() {
console.log('App Hide');
},
globalData: {
hasLogin: false,
},
});
/*
app.json tabbar;
"tabBar": {
"textColor": "#404040",
"selectedColor": "#108ee9",
"backgroundColor": "#F5F5F9",
"items": [
{
"pagePath": "pages/biz/index/index",
"icon": "images/icon_home.png",
"activeIcon": "images/icon_home-two.png",
"name": "Home"
},
{
"pagePath": "pages/biz/settings/settings",
"icon": "images/icon_setting.png",
"activeIcon": "images/icon_setting-two.png",
"name": "设置"
}
]
},
*/