微信小程序手机端如何实现登录页面跳转含有Tabar页面

  • • 发表于 9年前
  • • 作者 半夏O微凉
  • • 6329 人浏览
  • • 13 条评论
  • • 最后编辑时间 9年前
  • • 来自 [问 答]

原创声明:本文为作者原创,未经允许不得转载,经授权转载需注明作者和出处

我用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”: “主頁”
}]

分享到:
13条评论
Ctrl+Enter
作者

半夏O微凉

半夏O微凉

APP:1 帖子:16 回复:72 积分:1027

已加入社区[3316]天

做最优秀的自己!!!

作者详情》
Top