Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.6.17 跳转到非tabbar页面 首页没有隐藏 导致下一个页面没有展示, 底部tabbar高度在非tabbar页面也占据了高度 #14592

Closed
lonelyWalkor opened this issue Sep 25, 2023 · 1 comment · Fixed by #14597, #14688 or #14690
Labels
A-router Area - H5 路由相关 F-vue2 Framework - Vue 2 T-h5 Target - 编译到 H5 V-3 Version - 3.x
Milestone

Comments

@lonelyWalkor
Copy link

相关平台

H5

复现仓库

https://github.com/lonelyWalkor/taro-issus1.git
浏览器版本: chrome 102
使用框架: Vue 2

复现步骤

pnpm i安装依赖
npm run dev:h5
点击首页的按钮即可复现

期望结果

在页面跳转时首页正常隐藏
tabbbar在非tabbar页面不占高度

实际结果

页面一直显示不隐藏
tabbar在非tabbar页面也占用了页面高度

环境信息

Taro v3.6.17


  Taro CLI 3.6.17 environment info:
    System:
      OS: macOS 13.5.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 16.18.1 - /opt/homebrew/opt/nvm/versions/node/v16.18.1/bin/node
      Yarn: 1.22.19 - /opt/homebrew/opt/nvm/versions/node/v16.18.1/bin/yarn
      npm: 8.19.2 - /opt/homebrew/opt/nvm/versions/node/v16.18.1/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.17 => 3.6.17 
      @tarojs/components: 3.6.17 => 3.6.17 
      @tarojs/helper: 3.6.17 => 3.6.17 
      @tarojs/plugin-framework-vue2: 3.6.17 => 3.6.17 
      @tarojs/plugin-html: 3.6.17 => 3.6.17 
      @tarojs/plugin-platform-alipay: 3.6.17 => 3.6.17 
      @tarojs/plugin-platform-h5: 3.6.17 => 3.6.17 
      @tarojs/plugin-platform-jd: 3.6.17 => 3.6.17 
      @tarojs/plugin-platform-qq: 3.6.17 => 3.6.17 
      @tarojs/plugin-platform-swan: 3.6.17 => 3.6.17 
      @tarojs/plugin-platform-tt: 3.6.17 => 3.6.17 
      @tarojs/plugin-platform-weapp: 3.6.17 => 3.6.17 
      @tarojs/runtime: 3.6.17 => 3.6.17 
      @tarojs/shared: 3.6.17 => 3.6.17 
      @tarojs/taro: 3.6.17 => 3.6.17 
      @tarojs/taro-loader: 3.6.17 => 3.6.17 
      @tarojs/webpack5-runner: 3.6.17 => 3.6.17 
      babel-preset-taro: 3.6.17 => 3.6.17 
      eslint-config-taro: 3.6.17 => 3.6.17
@taro-bot2 taro-bot2 bot added F-vue2 Framework - Vue 2 T-h5 Target - 编译到 H5 V-3 Version - 3.x labels Sep 25, 2023
@ZakaryCode ZakaryCode added the A-router Area - H5 路由相关 label Sep 25, 2023
@ZakaryCode
Copy link
Contributor

ZakaryCode commented Sep 25, 2023

页面一直显示不隐藏

click 事件重复调用导致段时间内跳转多次,暂无很好解决方案,可以在 handleClick 外套个 debounce 方法避免过快跳转导致的问题

tabbar在非tabbar页面也占用了页面高度

该问题确实存在,下一个版本修复,可以在 app 增加以下样式跳过该问题

body .taro-tabbar__container > .taro-tabbar__panel {
  overflow: hidden;
  max-height: 100vh;
}

body .taro-tabbar__container > .taro-tabbar__panel > .taro_page.taro_tabbar_page {
  max-height: calc(100vh - 50PX - constant(safe-area-inset-bottom));
  max-height: calc(100vh - 50PX - env(safe-area-inset-bottom));
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-router Area - H5 路由相关 F-vue2 Framework - Vue 2 T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Archived in project
2 participants