yuyuyu0w0
2022-03-26 15:38
采纳率: 33.3%
浏览 60
已结题

微信小程序运行报错,求解

项目在浏览器中能运行,但是不能运行在微信小程序上
{
    "pages": [
        "pages/index/index",
        "pages/message/message",
        "pages/contact/contact"
    ],
    "subPackages": [],
    "window": {
        "navigationBarTextStyle": "white",
        "navigationBarTitleText": "Hello_World!",
        "navigationBarBackgroundColor": "#FFD700",
        "backgroundColor": "#CDAD00",
        "enablePullDownRefresh": true,
        "backgroundTextStyle": "dark",
        "onReachBottomDistance": "50px"
    },
    "tabBar": {
        "color": "#00ffff",
        "selectedColor": "#00aaff",
        "backgroundColor": "#FFFFFF",
        "borderStyle": "black",
        "position": "bottom",
        "list": [
            {
                "text": "首页",
                "pagePath": "pages/index/index",
                "iconPath": "static/tabs/home.png",
                "selectedIconPath": "static/tabs/home-active.png"
            },
            {
                "text": "信息",
                "pagePath": "pages/message/message",
                "iconPath": "static/tabs/message.png",
                "selectedIconPath": "static/tabs/message-active.png"
            },
            {
                "text": "我们",
                "pagePath": "pages/contact/contact",
                "iconPath": "static/tabs/contact.png",
                "selectedIconPath": "static/tabs/contact-active.png"
            }
        ]
    },
    "usingComponents": {},
    "sitemapLocation": "sitemap.json"
}

[ app.json 文件内容错误] app.json: window.onReachBottomDistance 字段需为 number(env: Windows,mp,1.05.2109101; lib: 2.23.2)

2条回答 默认 最新

相关推荐 更多相似问题