收藏
回答

uniapp开发的小程序不支持bindagreeprivacyauthorization事件吗?

uniapp开发的小程序不支持bindagreeprivacyauthorization事件吗?

隐私协议改造

does not have a method "handleAgree" to handle event "bindagreeprivacyauthorization"

回答关注问题邀请回答
收藏

3 个回答

  • optimistic
    optimistic
    2023-09-12

    我的也是uni,写了个方案

    https://developers.weixin.qq.com/community/develop/article/doc/000ca864fa092893d040b419c61413

    2023-09-12
    有用 2
    回复
  • Hlxuan.
    Hlxuan.
    2023-09-12

    试试这样写呢?

    <button id="agree-btn" class="btn-agree" open-type="agreePrivacyAuthorization" @agreeprivacyauthorization="handleAgreePrivacyAuthorization">同意</button>
    
    2023-09-12
    有用 1
    回复 1
    • 小时光
      小时光
      2023-09-12
      可行的,非常感谢。
      2023-09-12
      回复
  • 小时光
    小时光
    2023-09-12
    <button id="agree-btn" class="btn-agree" open-type="agreePrivacyAuthorization"
    
    bindagreeprivacyauthorization="handleAgreePrivacyAuthorization()">同意
    
    2023-09-12
    有用
    回复 2
    • 空白*
      空白*
      2023-09-12
      <button
                id="agree-btn"
                class="item agree"
                open-type="agreePrivacyAuthorization"
                @agreeprivacyauthorization="handleAgreePrivacyAuthorization"
              >
                同意
              </button>
      2023-09-12
      1
      回复
    • 🍭
      🍭
      2023-09-12
      bind改成@
      2023-09-12
      1
      回复
登录 后发表内容