收藏
回答

tabBar 每个小程序 只能配置一个tabar么?

框架类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 tabBar 工具 1.92 1.92

app.json文件如下

我想在"pagePath": "pages/fahuo/fahuo/fahuo",  

          "pagePath": "pages/order/all/all",


这两个页面分别建立两个 tabbar

但是发现不行,如果只有一个tabbar时候,能够正常打开相应的页面

如果我多加一个tabbar的时候,就只有一个能打开,一个完全打不开。


请问是我的代码写的有问题么?还是小程序 本身不支持?有没有好的解决办法,麻烦指点一下

非常感谢


{

"pages": [

"pages/index/index",

"pages/main/main",

"pages/zhuche/zhuche",

"pages/reg/reg",

"pages/fahuo/fahuo/fahuo",

"pages/order/allxiangxi/allxiangxi",

"pages/order/caigouxiangxi/caigouxiangxi",

"pages/order/caigoulist/caigoulist",

"pages/order/xiangxijindu/xiangxijindu",

"pages/order/falist/falist",

"pages/order/buy/buy",

"pages/order/buylist/buylist",

"pages/zhangdan/zhangdan/zhangdan",

"pages/zhangdan/zhangdanxiangxi/zhangdanxiangxi",

"pages/yuyue/yuyue/yuyue",

"pages/yuyue/yuyuexiangxi/yuyuexiangxi",

"pages/user/user",

"pages/user/edit",

"pages/fahuo/sousuo/sousuo",

"pages/chaxun/chaxun",

"pages/fahuo/fahuolist/fahuolist",

"pages/order/buyall/buyall",

"pages/order/xuyaocaigou/xuyaocaigou",

"pages/order/xuyaoxiuzheng/xuyaoxiuzheng",

"pages/order/weisong/weisong",

"pages/order/all/all",

"pages/sousuo/sousuo",

"pages/logs/logs",

"pages/fahuo/weifahuo/weifahuo",

"pages/fahuo/daifaxiangxi/daifaxiangxi"

],

"window": {

"backgroundTextStyle": "light",

"navigationBarBackgroundColor": "#fff",

"navigationBarTitleText": "UULLEO 관리자 폐이지",

"navigationBarTextStyle": "black"

},

"tabBar": {

"list": [

{

"pagePath": "pages/fahuo/fahuo/fahuo",

"text": "이미발송",

"iconPath": "/pages/img/dingdan.png",

"selectedIconPath": "/pages/img/dingdan1.png"

},

{

"pagePath": "pages/fahuo/weifahuo/weifahuo",

"text": "발송대기",

"iconPath": "/pages/img/dingdan.png",

"selectedIconPath": "/pages/img/dingdan1.png"

},

{

"pagePath": "pages/sousuo/sousuo",

"text": "검색",

"iconPath": "/pages/img/dingdan.png",

"selectedIconPath": "/pages/img/dingdan1.png"

}

]

},


"tabBar": {

"list": [

{

"pagePath": "pages/order/all/all",

"text": "전체주문",

"iconPath": "/pages/img/dingdan.png",

"selectedIconPath": "/pages/img/dingdan1.png"

},

{

"pagePath": "pages/order/xuyaocaigou/xuyaocaigou",

"text": "구매대기",

"iconPath": "/pages/img/dingdan.png",

"selectedIconPath": "/pages/img/dingdan1.png"

},

{

"pagePath": "pages/order/weisong/weisong",

"text": "미송",

"iconPath": "/pages/img/dingdan.png",

"selectedIconPath": "/pages/img/dingdan1.png"

}

]

}

}


回答关注问题邀请回答
收藏

2 个回答

  • 2018-01-25

    是官网不支持2个tabbar么?


    我有两个页面需要各自的tabbar ,那其中一个需要另外自己定制,是吧?


    2018-01-25
    有用
    回复
  • HS
    HS
    2018-01-24

    请保留一个 tabBar 即可。

    2018-01-24
    有用
    回复
登录 后发表内容