问题描述:
小程序代码包中有ext.json文件,并配置了tabBar.list选项,并且 directCommit 的值为 false
我们有一个小程序第三方平台,小程序第三方平台提交代码的时候,也就是调用
https://api.weixin.qq.com/wxa/commit?access_token=ACCESS_TOKEN 这个接口
其中 ext.json 这个参数也配置 tabBar.list 选项
预期结果:
预期是提交代码的ext.json中的tabBar.list生效
实际结果:
最终生效的小程序代码包中的 ext.json 中的 tabBar.list
请问是有这样的问题吗?从官方的文档来看最终生效的都应该是提交代码,调用接口时候的ext.json中的tabBar.list生效
麻烦把app.json 的pages 列出来
另外,你这个描述我没看懂
=============
预期结果:
预期是提交代码的ext.json中的tabBar.list生效
实际结果:
最终生效的小程序代码包中的 ext.json 中的 tabBar.list
=============
你是想说,预期结果【提交代码的ext.json中的tabBar.list生效】,而实际结果【app.json中的tabBar.list生效了】吗?
{
"pages": [
"page/mainPage/pages/allHouseList/main",
"page/mainPage/pages/my/main",
"page/mainPage/pages/entry/main",
"page/mainPage/pages/signDesk/main",
"page/mainPage/pages/projectList/main",
"page/mainPage/pages/flagshipShop/main",
"page/mainPage/pages/justHouseIndex/main",
"page/mainPage/pages/auth/main",
"page/mainPage/pages/blank/main",
"page/mainPage/pages/blankTab/main",
"page/mainPage/pages/blankTab2/main",
"page/mainPage/pages/webview/main",
"page/mainPage/pages/webview2/main"
],
"subpackages": [
{
"root": "page/otherPage/",
"pages": [
"pages/find/main",
"pages/findDetail/main",
"pages/houseAlbum/main",
"pages/signDesk/main",
"pages/type/main",
"pages/newsList/main",
"pages/poi/main",
"pages/talk/main",
"pages/saleList/main",
{
"extEnable": true,
"ext": {
"key": "test1"
},
"extAppid": "wx4a7187183fcb9aa8",
"window": {},
"directCommit": false,
"tabBar": {
"custom": true,
"list": [
{
"selectedIconPath": "img/xxx.png",
"iconPath": "img/xxx.png",
"pagePath": "pages/home/index",
"text": "首页"
},
{
"selectedIconPath": "img/xxx.png",
"iconPath": "img/xxx.png",
"pagePath": "pages/my/index",
"text": "我的"
}
]
}
}
你好,请提供相关appid、完整请求、返回信息、操作时间
appId:wx8714e23a184fa485
所有参数:
{
"template_id": 332,
"access_token":"34_7sMuJ-zaUbGCE50i2gzr17ksG2Te-i51o7XnwPCSbutu3t2WC_u8d75uyKhtaGZqZblWLC4SZ8HiGnOAx0pvfqFeIgVfpvIXZ5RLoe2Azxg02vlS1uExrol5kwaN3esbCQnGIRb2TJNIkUpJXOCaAIDQHV",
"user_version": "3.12.1.300",
"user_desc": "最新版本,全兼容blankTab/blankTab2",
"ext_json": "{\"extEnable\":true,\"extAppid\":\"wx8714e23a184fa485\",\"ext\":{\"appid\":\"wx8714e23a184fa485\",\"imSdkAppID\":\"1400105755\",\"remote\":\"https://card.iwofang.cn\",\"tabBar\":{\"list\":[{\"iconPath\":\"https://yunke-oss.oss-cn-hangzhou.aliyuncs.com/yued/ai-mp/tabbarIcon/icon_home_nor.png\",\"isBigIcon\":0,\"pagePath\":\"page/mainPage/pages/allHouseList/main\",\"selectedIconPath\":\"https://yunke-oss.oss-cn-hangzhou.aliyuncs.com/yued/ai-mp/tabbarIcon/icon_home_sel.png\",\"text\":\"首页123\"},{\"iconPath\":\"https://yunke-oss.oss-cn-hangzhou.aliyuncs.com/yued/ai-mp/tabbarIcon/icon_custom_10.png\",\"isBigIcon\":0,\"pagePath\":\"page/mainPage/pages/blankTab/main\",\"selectedIconPath\":\"https://yunke-oss.oss-cn-hangzhou.aliyuncs.com/yued/ai-mp/tabbarIcon/icon_custom_10_active.png\",\"text\":\"超多礼券1\"},{\"iconPath\":\"https://yunke-oss.oss-cn-hangzhou.aliyuncs.com/yued/ai-mp/tabbarIcon/icon_custom_6.png\",\"isBigIcon\":1,\"pagePath\":\"page/mainPage/pages/webview/main\",\"selectedIconPath\":\"https://yunke-oss.oss-cn-hangzhou.aliyuncs.com/yued/ai-mp/tabbarIcon/icon_custom_6_active.png\",\"text\":\"更多精彩\"},{\"iconPath\":\"https://yunke-oss.oss-cn-hangzhou.aliyuncs.com/yued/ai-mp/tabbarIcon/icon_floor_nor.png\",\"isBigIcon\":0,\"pagePath\":\"page/mainPage/pages/projectList/main\",\"selectedIconPath\":\"https://yunke-oss.oss-cn-hangzhou.aliyuncs.com/yued/ai-mp/tabbarIcon/icon_floor_sel.png\",\"text\":\"项目123\"},{\"iconPath\":\"https://yunke-oss.oss-cn-hangzhou.aliyuncs.com/yued/ai-mp/tabbarIcon/icon_me_nor.png\",\"isBigIcon\":0,\"pagePath\":\"page/mainPage/pages/my/main\",\"selectedIconPath\":\"https://yunke-oss.oss-cn-hangzhou.aliyuncs.com/yued/ai-mp/tabbarIcon/icon_me_sel.png\",\"text\":\"我的312\"}]},\"tar_bar_param\":[{},{\"id\":\"180437464350720\",\"name\":\"0408全局新页面\"},{\"id\":\"7756\",\"is_big_icon\":true,\"name\":\"积分商城\",\"page_type\":\"webview\"},{},{}],\"yk_org_code\":\"g2kktyadmin\"},\"directCommit\":false,\"tabBar\":{\"backgroundColor\":\"#fff\",\"borderStyle\":\"black\",\"color\":\"#a3a3a3\",\"custom\":true,\"list\":[{\"pagePath\":\"page/mainPage/pages/allHouseList/main\",\"text\":\"首页123\"},{\"pagePath\":\"page/mainPage/pages/blankTab/main\",\"text\":\"超多礼券1\"},{\"pagePath\":\"page/mainPage/pages/webview/main\",\"text\":\"更多精彩\"},{\"pagePath\":\"page/mainPage/pages/projectList/main\",\"text\":\"项目123\"},{\"pagePath\":\"page/mainPage/pages/my/main\",\"text\":\"我的312\"}],\"selectedColor\":\"#1388F5\"},\"navigateToMiniProgramAppIdList\":[\"wx40d8eccb3510aeae\",\"wx4583513fb5b8e86d\",\"wx7c8d593b2c3a7703\",\"wxf4228ebe5b1816b9\"],\"plugins\":{\"live-player-plugin\":{\"provider\":\"wx2b03c6e691cd7370\",\"version\":\"1.0.14\"}}}"
}