收藏
回答

【已解决】小程序PC端,tabBar图标不显示

线上或开发版本,只要是在手机上是可以正常显示的,唯独在PC端不行,就显示一团红色

AppId:wx125fe174aecf1386

【解决方案】:修改图片大小为81×81px


最后一次编辑于  2021-07-05
回答关注问题邀请回答
收藏

6 个回答

  • 社区技术运营专员-Jahozheng
    社区技术运营专员-Jahozheng
    2021-07-05

    pc是什么版本呢试试测试版https://dldir1.qq.com/weixin/Windows/Beta/WeChat3.3.1.10.exe

    2021-07-05
    有用
    回复 7
    查看更多(2)
  • H
    H
    2022-11-15

    感谢,更换图片尺寸确实好了

    2022-11-15
    有用
    回复
  • 安逸
    安逸
    2021-07-05

    1、不知道是不是因为必须设置文字的问题,文档里文字是必填。(自行测试下)

    2、把图片的尺寸改成官方推荐的来测试下。

    2021-07-05
    有用
    回复 1
    • Alier
      Alier
      2021-07-05
      测试了,text:"",还是不行,且图片大小没超过40kb
      2021-07-05
      回复
  • A哆啦梦
    A哆啦梦
    2021-07-05

    图片路径最开始别用/试试

    2021-07-05
    有用
    回复 3
    • Alier
      Alier
      2021-07-05
      最开始别用?什么意思
      2021-07-05
      回复
    • A哆啦梦
      A哆啦梦
      2021-07-05回复Alier
      {
              "pagePath": "pages/index/dynamic/dynamic",
              "iconPath": "img/icon/index.png",
              "selectedIconPath": "img/icon/sindex.png"
            },
      2021-07-05
      回复
    • Alier
      Alier
      2021-07-05回复A哆啦梦
      不是这个问题,测试了。而且一样的写法,第二个tabBar图标会出现
      2021-07-05
      回复
  • xplee
    xplee
    2021-07-05

    没看出有问题

    2021-07-05
    有用
    回复 1
    • Alier
      Alier
      2021-07-05
      对啊,所以就应该显示图片,但就是在PC端不显示
      2021-07-05
      回复
  • Alier
    Alier
    2021-07-05

    这是配置:"tabBar": {

        "borderStyle": "white",

        "color": "#adadad",

        "selectedColor": "#000000",

        "list": [

          {

            "pagePath": "pages/index/dynamic/dynamic",

            "iconPath": "/img/icon/index.png",

            "selectedIconPath": "/img/icon/sindex.png"

          },

          {

            "pagePath": "pages/star/star/star",

            "iconPath": "/img/icon/star.png",

            "selectedIconPath": "/img/icon/sstar.png"

          },

          {

            "pagePath": "pages/work/work/work",

            "iconPath": "/img/icon/work.png",

            "selectedIconPath": "/img/icon/swork.png"

          },

          {

            "pagePath": "pages/msg/msg/msg",

            "iconPath": "/img/icon/msg.png",

            "selectedIconPath": "/img/icon/smsg.png"

          },

          {

            "pagePath": "pages/me/me/me",

            "iconPath": "/img/icon/me.png",

            "selectedIconPath": "/img/icon/sme.png"

          }

        ]

      }


    2021-07-05
    有用
    回复
登录 后发表内容