解绑传参方式修改,隐私协议,用户协议,跳转相对应路径

This commit is contained in:
fengerli
2025-07-14 16:10:57 +08:00
parent dd752d0478
commit 56f05e7eec
9 changed files with 25 additions and 417 deletions

View File

@ -19,8 +19,9 @@
<view class="checkbox-icon" :class="{ checked: isChecked }">
<uni-icons v-if="isChecked" type="checkmarkempty" size="8" color="#fff"></uni-icons>
</view>
<text class="checkbox-label">我已认真阅读理解并同意<a class="agreeT">用户服务协议</a><a
class="agreeT">隐私政策</a></text>
<text class="checkbox-label">我已认真阅读理解并同意<a class="agreeT"
@click.stop="goToPage('agreement')">用户服务协议</a><a class="agreeT"
@click.stop="goToPage('privacy')">隐私政策</a></text>
</view>
</view>
<!-- 登录按钮 -->
@ -61,7 +62,7 @@
return {
showView: false,
//codebtn: '获取验证码',
phone: '17671332251', //手机号码
phone: '13058067817', //手机号码
code: "123456", //验证码
agreed: false,
isCounting: false,
@ -171,19 +172,15 @@
}
},
// 打开具体协议
openProtocol(type) {
if (type === 'user') {
// 跳转到用户协议页面
uni.navigateTo({
url: '/pages/protocol/user'
})
} else {
// 跳转到隐私政策页面
uni.navigateTo({
url: '/pages/protocol/privacy'
})
}
// 跳转到协议页面
goToPage(type) {
const url = type === 'agreement' ?
'/pages/common/userAgreement/index' // 服务协议
:
'/pages/common/privacyAgreement/index'; // 隐私政策
uni.navigateTo({
url: url
});
},
// 不同意