|
@@ -26,6 +26,7 @@ function privacyHandler(resolve: any) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
onBeforeMount(() => {
|
|
onBeforeMount(() => {
|
|
|
|
|
+ // #ifdef MP-WEIXIN
|
|
|
// 注册监听
|
|
// 注册监听
|
|
|
if (wx.onNeedPrivacyAuthorization) {
|
|
if (wx.onNeedPrivacyAuthorization) {
|
|
|
wx.onNeedPrivacyAuthorization((resolve: any) => {
|
|
wx.onNeedPrivacyAuthorization((resolve: any) => {
|
|
@@ -34,6 +35,7 @@ onBeforeMount(() => {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
+ // #endif
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -68,7 +70,9 @@ function handleDisagree() {
|
|
|
* 打开隐私协议
|
|
* 打开隐私协议
|
|
|
*/
|
|
*/
|
|
|
function openPrivacyContract() {
|
|
function openPrivacyContract() {
|
|
|
|
|
+ // #ifdef MP-WEIXIN
|
|
|
wx.openPrivacyContract({})
|
|
wx.openPrivacyContract({})
|
|
|
|
|
+ // #endif
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -109,6 +113,7 @@ export default {
|
|
|
<button id="disagree-btn" class="is-block is-round is-medium is-plain wd-privacy-popup__footer-disagree wd-button" @click="handleDisagree">
|
|
<button id="disagree-btn" class="is-block is-round is-medium is-plain wd-privacy-popup__footer-disagree wd-button" @click="handleDisagree">
|
|
|
拒绝
|
|
拒绝
|
|
|
</button>
|
|
</button>
|
|
|
|
|
+ <!-- #ifdef MP-WEIXIN -->
|
|
|
<button
|
|
<button
|
|
|
id="agree-btn"
|
|
id="agree-btn"
|
|
|
class="wd-button is-block is-round is-medium is-primary wd-privacy-popup__footer-agree"
|
|
class="wd-button is-block is-round is-medium is-primary wd-privacy-popup__footer-agree"
|
|
@@ -117,6 +122,16 @@ export default {
|
|
|
>
|
|
>
|
|
|
同意
|
|
同意
|
|
|
</button>
|
|
</button>
|
|
|
|
|
+ <!-- #endif -->
|
|
|
|
|
+ <!-- #ifndef MP-WEIXIN -->
|
|
|
|
|
+ <button
|
|
|
|
|
+ id="agree-btn"
|
|
|
|
|
+ class="wd-button is-block is-round is-medium is-primary wd-privacy-popup__footer-agree"
|
|
|
|
|
+ @click="handleAgree"
|
|
|
|
|
+ >
|
|
|
|
|
+ 同意
|
|
|
|
|
+ </button>
|
|
|
|
|
+ <!-- #endif -->
|
|
|
</view>
|
|
</view>
|
|
|
</wd-popup>
|
|
</wd-popup>
|
|
|
</view>
|
|
</view>
|