原創聲明:本文為作者原創,未經允許不得轉載,經授權轉載需注明作者和出處
我用navigateTo,實現頁面之間的跳轉,app.json配置如下
{
“pages”: [
“pages/login/login”,
“pages/index/index”,
“pages/home/home”,
“pages/user/user”
],
“window”: {
“backgroundColor”: “#f4f4f4”,
“backgroundTextStyle”: “light”,
“navigationBarBackgroundColor”: “#0099FF”,
“navigationBarTitleText”: “AA”,
“enablePullDownRefresh”: “true”,
“navigationBarTextStyle”: “white”
},
“tabBar”: {
“selectedColor”: “#0099FF”,
“borderStyle”: “lightgray”,
“backgroundColor”: “white”,
“list”: [
{
“pagePath”: “pages/index/index”,
“iconPath”: “resources/images/index.png”,
“selectedIconPath”: “resources/images/index.png”,
“text”: “首頁”
},
{
“pagePath”: “pages/home/home”,
“iconPath”: “resources/images/home.png”,
“selectedIconPath”: “resources/images/home.png”,
“text”: “主頁”
}]