添加协议链接

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

@@ -72,7 +72,7 @@
class="agreePrivacy">用户隐私政策</text></text> -->
<text class="agreement-text" >我已阅读并同意
<text class="agreePrivacy" @click.stop="">用户协议</text>
<text class="agreePrivacy" @click.stop="goToUserAgreement">用户协议</text>
<text class="agreePrivacy" @click.stop="goToPrivacy">隐私政策</text>
</text>
</view>
@@ -152,12 +152,26 @@
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 checkForm = () => {};