add:增加用户协议和隐私政策

This commit is contained in:
rainv123
2026-03-10 14:28:47 +08:00
parent f691e9f0c9
commit f1b2080d99
7 changed files with 844 additions and 6 deletions
+9 -2
View File
@@ -136,11 +136,11 @@
</div>
<div style="font-size: 14px; color: #979db1">
{{ $t("login.agreeTo") }}
<div style="display: inline-block; color: #5778ff; cursor: pointer">
<div style="display: inline-block; color: #5778ff; cursor: pointer" @click="openPage('/user-agreement.html')">
{{ $t("login.userAgreement") }}
</div>
{{ $t("login.and") }}
<div style="display: inline-block; color: #5778ff; cursor: pointer">
<div style="display: inline-block; color: #5778ff; cursor: pointer" @click="openPage('/privacy-policy.html')">
{{ $t("login.privacyPolicy") }}
</div>
</div>
@@ -248,6 +248,13 @@ export default {
});
},
methods: {
openPage(url) {
const lang = this.$i18n ? this.$i18n.locale : 'zh_CN';
if (!lang.startsWith('zh')) {
url = url.replace('.html', '-en.html');
}
window.open(url, '_blank');
},
fetchCaptcha() {
if (this.$store.getters.getToken) {
if (this.$route.path !== "/home") {