收藏
回答

第三方微信小程序发布后ext.json 配置tabBar图标不显示

问题模块
API和组件

开发第三方平台小程序的,在开发和测试过程一切都正常,上传代码和发布小程序成功后,打开下程序首页导航栏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 字段也是正常获取的,上传代码,发布后之后,图标就不显示了

最后一次编辑于  2017-11-21  (未经腾讯允许,不得转载)
回答关注问题邀请回答
收藏

4 个回答

  • oric
    oric
    2017-11-22

    https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1489140610_Uavc4&token=&lang=zh_CN


    2017-11-22
    赞同
    回复
  • oric
    oric
    2017-11-21

    上传后可以通过api拉取二维码进行体验,自查一下post的ext_json和template_id是否正确。

    如没有问题,请提供一下小程序appid,平台号appid和api上传代码时间。

    2017-11-21
    赞同
    回复
  • lazy
    lazy
    2017-11-22

    问题还没解决,api拉取二维码进行体验在那个位置?post的ext_json是后台后台写还是前台写的

    2017-11-22
    赞同
    回复
  • lazy
    lazy
    2017-11-21

    好的,我叫后台看看

    2017-11-21
    赞同
    回复