|
设置了,同样无效 config.xml指向 index.html
index.html代码如下:
apiready = function () {
api.setStatusBarStyle({
style: 'dark'
});
api.addEventListener({
name:"keyback"
},function () {
console.log("keyback")
})
DbUtil.initDB();
smartUpdate();
api.openTabLayout({
"name": "tab",
"hideNavigationBar": true,
"navigationBar": {
"height": 1,
"background": "#fff",
"color": "#fff",
"hideBackButton": true
},
"tabBar": {
"height": 60,
"scrollEnabled": true,
"background": "#fff",
"shadow": "#f1f1f1",
"color": "#5e5e5e",
"selectedColor": "#39baff",
"fontSize": 12,
"textOffset": 8,
"animated": true,
"preload": 0,
"frames": [{
"name": "face_login",
"url": "html/face_login.html",
"title": "首页"
}, {
"name": "eqpt_list_frame",
"url": "html/eqpt_list_frame.html",
"title": "设备"
}, {
"name": "eqpt_face_list",
"url": "html/eqpt_face_list.html",
"title": "人员"
},{
"name": "my_frame",
"url": "html/my_frame.html",
"title": "我的"
}],
"list": [{
"iconPath": "image/tabbar/index.png",
"selectedIconPath": "image/tabbar/index-fill.png",
"text": "首页"
}, {
"iconPath": "image/tabbar/eqpt.png",
"selectedIconPath": "image/tabbar/eqpt-fill.png",
"text": "设备"
}, {
"iconPath": "image/tabbar/emp.png",
"selectedIconPath": "image/tabbar/emp-fill.png",
"text": "人员"
},{
"iconPath": "image/tabbar/my.png",
"selectedIconPath": "image/tabbar/my-fill.png",
"text": "人员"
}]
}
})
}; |
|