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

custom-wrapper createIntersectionObserver 在支付宝小程序中表现不一致 #16535

Open
jc840031139 opened this issue Sep 14, 2024 · 1 comment
Labels
F-vue3 Framework - Vue 3 T-alipay Target - 编译到支付宝小程序 V-3 Version - 3.x

Comments

@jc840031139
Copy link

相关平台

支付宝小程序

小程序基础库: 最新
使用框架: Vue 3

复现步骤

在微信小程序中 custom-wrapper 中使用 createIntersectionObserver 需要传递当前实例
在支付宝中传入实例只会响应一次 如果不传则正常监听
但是不传在微信小程序中又无法使用

期望结果

表现一直

实际结果

不一致

环境信息

  Taro CLI 3.6.32 environment info:
    System:
      OS: macOS 14.6.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 20.17.0 - ~/.local/state/fnm_multishells/11251_1726307802287/bin/node
      npm: 10.8.2 - ~/.local/state/fnm_multishells/11251_1726307802287/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.32 => 3.6.32 
      @tarojs/components: 3.6.32 => 3.6.32 
      @tarojs/helper: 3.6.32 => 3.6.32 
      @tarojs/plugin-framework-vue3: 3.6.32 => 3.6.32 
      @tarojs/plugin-html: ^3.6.32 => 3.6.32 
      @tarojs/plugin-platform-alipay: 3.6.32 => 3.6.32 
      @tarojs/plugin-platform-h5: 3.6.32 => 3.6.32 
      @tarojs/plugin-platform-jd: 3.6.32 => 3.6.32 
      @tarojs/plugin-platform-qq: 3.6.32 => 3.6.32 
      @tarojs/plugin-platform-swan: 3.6.32 => 3.6.32 
      @tarojs/plugin-platform-tt: 3.6.32 => 3.6.32 
      @tarojs/plugin-platform-weapp: 3.6.32 => 3.6.32 
      @tarojs/runtime: 3.6.32 => 3.6.32 
      @tarojs/shared: 3.6.32 => 3.6.32 
      @tarojs/taro: 3.6.32 => 3.6.32 
      @tarojs/taro-loader: 3.6.32 => 3.6.32 
      @tarojs/webpack5-runner: 3.6.32 => 3.6.32 
      babel-preset-taro: 3.6.32 => 3.6.32 
      eslint-config-taro: 3.6.32 => 3.6.32 
@jc840031139
Copy link
Author

jc840031139 commented Sep 14, 2024

在支付宝小程序中不正常 微信正常

 observer = Taro.createIntersectionObserver(getCurrentInstance().page, {
      observeAll: true
    });

@TheKonka TheKonka added V-3 Version - 3.x F-vue3 Framework - Vue 3 T-alipay Target - 编译到支付宝小程序 labels Sep 14, 2024
This was referenced Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-vue3 Framework - Vue 3 T-alipay Target - 编译到支付宝小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

2 participants