<u-button id="agree-btn" open-type="agreePrivacyAuthorization" @bindagreeprivacyauthorization="bindagreeprivacyauthorization"
type="success">同意</u-button>

- 发布:2023-08-21 14:26
- 更新:2023-09-04 15:12
- 阅读:867
产品分类: uniapp/小程序/微信
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: 12.2.1
HBuilderX类型: 正式
HBuilderX版本号: 3.8.12
第三方开发者工具版本号: 1.06.2307260
基础库版本号: 2.33.0
项目创建方式: HBuilderX
示例代码:
操作步骤:
<u-button id="agree-btn" open-type="agreePrivacyAuthorization" @bindagreeprivacyauthorization="bindagreeprivacyauthorization"
type="success">同意</u-button>
<u-button id="agree-btn" open-type="agreePrivacyAuthorization" @bindagreeprivacyauthorization="bindagreeprivacyauthorization"
type="success">同意</u-button>
预期结果:
bindagreeprivacyauthorization 事件触发回调
bindagreeprivacyauthorization 事件触发回调
实际结果:
bindagreeprivacyauthorization 事件 无响应
bindagreeprivacyauthorization 事件 无响应
bug描述:
<u-button id="agree-btn" open-type="agreePrivacyAuthorization" @bindagreeprivacyauthorization="bindagreeprivacyauthorization"
type="success">同意</u-button>
2 个回复
zdbxllalt (作者)
bindagreeprivacyauthorization(e) {
console.log(e);
7***@qq.com
不用bind 用 @agreeprivacyauthorization