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

支付宝小程序沉浸式导航头部无法点按 #7115

Closed
15997111963 opened this issue Jul 20, 2020 · 2 comments
Closed

支付宝小程序沉浸式导航头部无法点按 #7115

15997111963 opened this issue Jul 20, 2020 · 2 comments

Comments

@15997111963
Copy link

15997111963 commented Jul 20, 2020

相关平台

支付宝小程序

复现仓库

还在开发环节 无法提供开源地址
小程序基础库: 1.5.7
使用框架: React

复现步骤

在pages下的index首页 index.config.js 配置 transparentTitle: "always" 这是支付宝支持的沉浸式头部
自定义头部内容 完全被遮盖住 无法按到头部

期望结果

期望可以按到头部导航 或是不被透明的头部遮住 而不是单纯的transparent

实际结果

点按无效

环境信息

👽 Taro v3.0.2


  Taro CLI 3.0.2 environment info:
    System:
      OS: macOS 10.15.5
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 12.18.2 - /usr/local/bin/node
      Yarn: 1.17.3 - /usr/local/bin/yarn
      npm: 6.14.5 - /usr/local/bin/npm
    npmPackages:
      @tarojs/components: 3.0.2 => 3.0.2 
      @tarojs/mini-runner: 3.0.2 => 3.0.2 
      @tarojs/react: 3.0.2 => 3.0.2 
      @tarojs/runtime: 3.0.2 => 3.0.2 
      @tarojs/taro: 3.0.2 => 3.0.2 
      @tarojs/webpack-runner: 3.0.2 => 3.0.2 
      babel-preset-taro: 3.0.2 => 3.0.2 
      eslint-config-taro: 3.0.2 => 3.0.2 
      react: ^16.10.0 => 16.13.1 


补充信息

考虑支付宝小程序的具体实现只是让导航透明了 但是元素还在 所以被遮挡了 也可能是支付宝本身不支持 但我想知道一个结果 我好反馈确定方案

@vdfor
Copy link
Contributor

vdfor commented Jul 21, 2020

export default { 
   navigationBarTitleText: '',
    transparentTitle: 'always',
    titlePenetrate: 'YES',
}

@15997111963
Copy link
Author

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants