"pages": [
{
"path": "pages/my/my",
"style": {
// #ifdef MP-WEIXIN
"navigationStyle": "custom",
"onReachBottomDistance": 50
// #endif
// #ifdef MP-BAIDU
"navigationBarBackgroundColor": "#00c5bf"
// #endif
}
},
{
"path": "pages/payVip/payVip",
"style": {
// #ifdef MP-WEIXIN
"navigationStyle": "custom"
// #endif
//#ifdef MP-BAIDU
"navigationBarBackgroundColor": "#00c5bf"
//#endif
}
},
]
5***@qq.com (作者)
项目 'xxxx' 编译失败。
2022-07-05 15:43
BoredApe
回复 5***@qq.com: 没有具体报错吗?就这一行字吗?
2022-07-05 15:46
5***@qq.com (作者)
回复 BoredApe:
[JSHINT] 09:32:19.070 D:/WEB/xxx/pages.json: line 127, col 9, Expected '}' and instead saw 'navigationBarBackgroundColor'.
[JSHINT] 09:32:19.095 D:/WEB/xxx/pages.json: line 127, col 39, Expected '}' and instead saw ':'.
[JSHINT] 09:32:19.108 D:/WEB/xxx/pages.json: line 127, col 41, Expected ']' and instead saw '#00c5bf'.
2022-07-07 09:35
BoredApe
回复 5***@qq.com:
pages.json
json格式不正确。请检查2022-07-07 10:31
5***@qq.com (作者)
回复 BoredApe: 我不是把代码放出来了吗,是识别不了条件编译
2022-07-14 09:33
BoredApe
回复 5***@qq.com: 请新建一个项目 。将关键代码贴进去试试。如果还有问题。请上传此测试工程
2022-07-14 09:46
5***@qq.com (作者)
回复 BoredApe: 有bug你们自己不测,让我们来测.我代码都贴出来了.
2022-07-14 14:35