feat(protocol): add dedicated full-text legal protocol page with smooth scroll view and link from login and user center

这个提交包含在:
xcbyy
2026-10-13 08:35:47 +08:00
父节点 ecde03f02c
当前提交 8d85ed54b2
共有 5 个文件被更改,包括 492 次插入 和 23 次删除

查看文件

@@ -249,20 +249,30 @@ const loginWithDemo = (acc) => {
};
const openUserAgreement = () => {
uni.showModal({
title: platformProtocol.value.userAgreementTitle || '用户服务协议',
content: platformProtocol.value.userAgreementContent,
showCancel: false,
confirmText: '我知道了'
uni.navigateTo({
url: '/pages/common/protocol?type=service',
fail: () => {
uni.showModal({
title: platformProtocol.value.userAgreementTitle || '用户服务协议',
content: platformProtocol.value.userAgreementContent,
showCancel: false,
confirmText: '我知道了'
});
}
});
};
const openPrivacyAgreement = () => {
uni.showModal({
title: platformProtocol.value.privacyPolicyTitle || '隐私保护指引',
content: platformProtocol.value.privacyPolicyContent,
showCancel: false,
confirmText: '我知道了'
uni.navigateTo({
url: '/pages/common/protocol?type=privacy',
fail: () => {
uni.showModal({
title: platformProtocol.value.privacyPolicyTitle || '隐私保护指引',
content: platformProtocol.value.privacyPolicyContent,
showCancel: false,
confirmText: '我知道了'
});
}
});
};
</script>