欢迎光临本站
我们一直在努力

小程序navigateToMiniProgramAppIdList配置

官方在11月份正式规定小程序跳转小程序最多只能有10个,并且要配置,在app.json文件中新增配置项:navigateToMiniProgramAppIdList 就是新增的配置项目,如果超出了10条数据就会报错。

{
    "pages": [
        "pages/index/index",
        "pages/detail/detail",
        "pages/logs/logs",
        "pages/page/page",
        "pages/about/about",
        "pages/list/list",
        "pages/topic/topic",
        "pages/readlog/readlog",
        "pages/hot/hot",
        "pages/pay/pay",
        "pages/webpage/webpage",
        "pages/comments/comments",
        "pages/poster/poster"
    ],
    "window": {
        "backgroundTextStyle": "light",
        "navigationBarBackgroundColor": "#1296db",
        "navigationBarTitleText": "皮皮软件-学习日志",
        "navigationBarTextStyle": "white",
        "backgroundColor": "#1296db"
    },
    "tabBar": {
        "color": "#515151",
        "selectedColor": "#1296db",
        "list": [
            {
                "pagePath": "pages/index/index",
                "iconPath": "images/tar-home.png",
                "selectedIconPath": "images/tar-home-on.png",
                "text": "首页"
            },
            {
                "pagePath": "pages/topic/topic",
                "iconPath": "images/tar-topic.png",
                "selectedIconPath": "images/tar-topic-on.png",
                "text": "专题"
            },
            {
                "pagePath": "pages/readlog/readlog",
                "iconPath": "images/tar-person.png",
                "selectedIconPath": "images/tar-person-on.png",
                "text": "我的"
            },
            {
                "pagePath": "pages/about/about",
                "iconPath": "images/tar-about.png",
                "selectedIconPath": "images/tar-about-on.png",
                "text": "关于"
            }
        ]
    },
    "networkTimeout": {
        "request": 10000,
        "connectSocket": 10000,
        "uploadFile": 10000,
        "downloadFile": 10000
    },
    "navigateToMiniProgramAppIdList":
    [     
        "wx5a2e5213d68a862e",
        "wx18303ea4782e57ce"
    ]
}
赞(1)
未经允许不得转载:皮皮学习日志 » 小程序navigateToMiniProgramAppIdList配置

相关推荐

  • 暂无文章

更专业 更方便

联系我们联系我们