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

Form组件(留资组件)数据提交时配置参数(clueComponentId、conversionTarget)丢失,导致功能失效 #14881

Open
Felix8029 opened this issue Nov 24, 2023 · 5 comments
Labels
F-react Framework - React T-tt Target - 编译到字节跳动小程序 V-3 Version - 3.x

Comments

@Felix8029
Copy link

相关平台

字节跳动小程序

小程序基础库: 3.5.0.6
使用框架: React

复现步骤

 <Form clueComponentId={'1824d480b19ecbfa91ea8ae854442b18'} conversionTarget={1} onSubmit={(e) => {
        console.log('onSubmit', JSON.stringify(e)) }}>
        <Button openType={'getPhoneNumber'} formType={'submit'} onGetPhoneNumber={(e) => { console.log('onGetPhoneNumber', JSON.stringify(e))}}>获取电话</Button>
      </Form>

期望结果

form组件内可无门槛获取手机号

实际结果

[TaroLog] onGetPhoneNumber:
{"errNo":10101,"errMsg":"getPhoneNumber:fail
platform auth deny"}

环境信息

Taro CLI 3.6.8 environment info:
    System:
      OS: macOS 14.0
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 16.15.1 - ~/.nvm/versions/node/v16.15.1/bin/node
      Yarn: 1.22.19 - /usr/local/bin/yarn
      npm: 8.13.2 - ~/.nvm/versions/node/v16.15.1/bin/npm


补充信息

去抖音开放平台沟通并调试,发现是组件配置参数在提交时丢失了。
img_v3_025f_01688824-fcd6-4416-9f23-885e03dd324g

@taro-bot2 taro-bot2 bot added F-react Framework - React T-tt Target - 编译到字节跳动小程序 V-3 Version - 3.x labels Nov 24, 2023
@Felix8029
Copy link
Author

Felix8029 commented Nov 24, 2023

补充下 ttAppId: tt700e06b3ef3d92d101
尝试最新版本3.6.19,重新初始化最新项目等依旧不行。

@Felix8029
Copy link
Author

@zhiqingchen

@Felix8029
Copy link
Author

@ZakaryCode 有人帮忙看看不

@TheKonka
Copy link
Member

TheKonka commented Jan 2, 2024

根据 taro 目前的方式,所有组件的属性都要在taro源码里面手动添加的,我搜了 taro源码里面 Form组件 好像没有 conversion-target 和 clue-component-id 这2个属性,你可以先用 taro-plugin-inject 尝试自己加下

@Felix8029
Copy link
Author

根据 taro 目前的方式,所有组件的属性都要在taro源码里面手动添加的,我搜了 taro源码里面 Form组件 好像没有 conversion-target 和 clue-component-id 这2个属性,你可以先用 taro-plugin-inject 尝试自己加下

感谢,已经按照这个方式解决了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-tt Target - 编译到字节跳动小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

2 participants