随便取的名字呀 2019-01-18 15:55 采纳率: 0%
浏览 1675

微信小程序tarBar配置正常无法显示

{
"pages": [
"pages/index/index",
"pages/logs/logs",
"pages/demo/demo"
],
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#0097ff",
"navigationBarTitleText": "test",
"navigationBarTextStyle": "light"
},
"tarBar": {
"list": [
{
"pagePath": "pages/index/index",
"text": "首页"
},
{
"pagePath": "pages/logs/logs",
"text": "日志"
},
{
"pagePath": "pages/demo/demo",
"text": "demo"
}
]
},
"networkTimeout": {
"request": 20000,
"connectSocket": 20000,
"uploadFile": 20000,
"downloadFile": 20000
},
"debug": true
}

  • 写回答

2条回答 默认 最新

  • winson.online 2019-01-24 13:53
    关注

    "tabBar": {
    "color": "#707070",
    "selectedColor": "#E8672E",
    "list": [
    {
    "pagePath": "pages/index/index",
    "text": "首页",
    "iconPath": "img/tabBar/index.png",
    "selectedIconPath": "img/tabBar/index@2x.png"
    },
    {
    "pagePath": "pages/mall/mall",
    "text": "商城",
    "iconPath": "img/tabBar/baihuo@2x.png",
    "selectedIconPath": "img/tabBar/baihuo@2x1.png"
    },
    {
    "pagePath": "pages/share/share",
    "text": "购物车",
    "iconPath": "img/tabBar/huodong@2x.png",
    "selectedIconPath": "img/tabBar/huodong@2x1.png"
    },
    {
    "pagePath": "pages/mine/mine",
    "text": "我的",
    "iconPath": "img/tabBar/my-icon@2x.png",
    "selectedIconPath": "img/tabBar/mine@2x.png"
    }
    ]
    },

    我是这样写的

    评论

报告相同问题?

悬赏问题

  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法
  • ¥15 可否在不同线程中调用封装数据库操作的类
  • ¥15 微带串馈天线阵列每个阵元宽度计算