<wx-button id="disagree-btn" class="pri_item pri_reject" @tap="exitMiniProgram">拒绝</wx-button>
<wx-button id="agree-btn" type="default" class="pri_item pri_agree"
open-type="agreePrivacyAuthorization"
@agreeprivacyauthorization="handleAgreePrivacyAuthorization">同意</wx-button>
// 同意隐私协议
handleAgreePrivacyAuthorization() {
console.log('========handleAgreePrivacyAuthorization')
this.showPrivacy= false
},
写@agreeprivacyauthorization或者bindagreeprivacyauthorization都不会执行里面的打印语句,要怎么写才会打印啊
小程序是用vue写的,引入了kbone框架
真机和PC端点击都不会执行
uni-app 里,可以使用 @agreeprivacyauthorization 触发,这个估计你要去找kbone框架的开发者,让他们支持一下
直接@click <button class="mack-box-show-info-btn-spe" id="agree-btn" open-type="agreePrivacyAuthorization" @click="handleAgreePrivacyAuthorization">同意</button> handleAgreePrivacyAuthorization(e){ console.info(1) this.showPrivacy = false this.resolvePrivacyAuthorization({ buttonId: 'agree-btn', event: 'agree' }) },
Taro怎么监听这个回调?在taro里面点击同意之后没有走回调函数。
解决了吗?解决了吗?我这边用封装的u-button也是没法触发,但是直接用button就可以触发了,你要不试试?
难道要再加个click方法吗,我试了确实可以,但是我是想放到@agreeprivacyauthorization方法里面,不知道行得通吗?
@agreeprivacyauthorization="handleAgree"
wx-button 是什么框架的组件