第三方微信小程序发布后ext.json 配置tabBar图标不显示
发布于 5 年前 作者 kfang 10310 次浏览 来自 问答

开发第三方平台小程序的,在开发和测试过程一切都正常,上传代码和发布小程序成功后,打开下程序首页导航栏tabBar图标不见,ext.json里的ext字段里的属性也读取不了,这是怎么回事?求解答

ext.json 配置主要文件如下

{

“extEnable”: true,

“extAppid”: “wx0ba806b9XXXXXX”,

“ext”: {

“name”: “微飞享”,

“extAppid”: “wx0ba806b9XXXXXXX”

},

“extPages”: {

“pages/index/index”:{

“navigationBarTitleText”: “微XX”

},

“pages/logs/logs”:{

“navigationBarTitleText”: “日志”

},

},

“window”: {

“backgroundTextStyle”: “light”,

“navigationBarBackgroundColor”: “#fff”,

“navigationBarTitleText”: “微XX”,

“navigationBarTextStyle”: “black”

},

“tabBar”: {

“color”: “#000”,

“selectedColor”: “#f40”,

“list”: [

{

“pagePath”: “pages/index/index”,

“text”: “首页”,

“iconPath”: “./pages/image/icon/home1.png”,

“selectedIconPath”: “./pages/image/icon/home2.png”

},

{

“pagePath”: “pages/find/find”,

“text”: “发现”,

“iconPath”: “./pages/image/icon/find1.png”,

“selectedIconPath”: “./pages/image/icon/find2.png”

},

{

“pagePath”: “pages/cart/cart”,

“text”: “购物车”,

“iconPath”: “pages/image/icon/cart1.png”,

“selectedIconPath”: “./pages/image/icon/cart2.png”

},

{

“pagePath”: “pages/my/my”,

“text”: “我的”,

“iconPath”: “./pages/image/icon/my1.png”,

“selectedIconPath”: “./pages/image/icon/my2.png”

}

]

},

“networkTimeout”: {

“request”: 10000,

“downloadFile”: 10000

}

}


app.json 主要配置如下

“tabBar”: {

“color”: “#000”,

“selectedColor”: “#f40”,

“list”: [

{

“pagePath”: “pages/index/index”,

“text”: “首页”,

“iconPath”: “./pages/image/icon/home1.png”,

“selectedIconPath”: “./pages/image/icon/home2.png”

},

{

“pagePath”: “pages/find/find”,

“text”: “发现”,

“iconPath”: “./pages/image/icon/find1.png”,

“selectedIconPath”: “./pages/image/icon/find2.png”

},

{

“pagePath”: “pages/cart/cart”,

“text”: “购物车”,

“iconPath”: “pages/image/icon/cart1.png”,

“selectedIconPath”: “./pages/image/icon/cart2.png”

},

{

“pagePath”: “pages/my/my”,

“text”: “我的”,

“iconPath”: “./pages/image/icon/my1.png”,

“selectedIconPath”: “./pages/image/icon/my2.png”

}

]

},

在开发测试过程中,这些TabBar 图标配置是出来,ext.json 的 ext 字段也是正常获取的,上传代码,发布后之后,图标就不显示了

回到顶部