wx.showTabBar 在ios下页面上不显示tab?
发布于 7 年前 作者 jun22 5722 次浏览 来自 问答

wx.showTabBar, ios系统下,先隐藏,在跳转页面时,不显示tab,但是wx.showTabBar

方法执行了

2 回复

你好,麻烦具体描述问题流程,提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

iphone8,ios13.3.1 , 7.0.11

onShow() {

      const that = this

      // 显示tab

      wx.showTabBar({

        success(res1) {

          console.log(res1)

        },

        fail(res2) {

          console.log(res2)

        },

        complete(res3) {

          console.log(res3)

        }

      })

      that.$apply()

    }

success和complete都执行了,页面上没有把tab显示出来,但是切换一下页面再返回就出现了

回到顶部