添加协议链接

This commit is contained in:
zhouyanli
2026-06-27 07:57:30 +08:00
parent 47079da1a4
commit 5acbc0b154
5 changed files with 60 additions and 22 deletions

View File

@@ -56,11 +56,11 @@
v-else
></uni-icons>
</view>
<text class="agreement-text" >
我已阅读并同意
<text class="agreePrivacy">用户协议</text>
<text @click.stop="goToPrivacy" class="agreePrivacy">隐私政策</text>
</text>
<text class="agreement-text" >我已阅读并同意
<text class="agreePrivacy" @click.stop="goToUserAgreement">用户协议</text>
<text class="agreePrivacy" @click.stop="goToPrivacy">隐私政策</text>
</text>
</view>
<!-- 登录按钮 -->
@@ -128,13 +128,25 @@ const checkForm = () => {
const toggleAgreement = () => {
agreeAgreement.value = !agreeAgreement.value;
};
// 跳转隐私协议
const goToPrivacy = () => {
uni.navigateTo({
url:'/pageSubPack/loginSub/privacy',
})
// 打开用户协议
const goToUserAgreement = () => {
// #ifdef APP-PLUS
plus.runtime.openURL('https://wuye.ckdzkj.com/parivw/ownler_xieyi.html')
// #endif
// #ifdef H5
window.open('https://wuye.ckdzkj.com/parivw/ownler_xieyi.html')
// #endif
}
// 打开隐私政策
const goToPrivacy = () => {
// #ifdef APP-PLUS
plus.runtime.openURL('https://wuye.ckdzkj.com/parivw/owner.html')
// #endif
// #ifdef H5
window.open('https://wuye.ckdzkj.com/parivw/owner.html')
// #endif
}
// 打开隐私弹窗
const openPrivacyPopup = (action) => {
pendingAction.value = action || ''