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") {
+9 -2
View File
@@ -107,9 +107,9 @@
<!-- 保持相同的协议声明 -->
<div style="font-size: 14px;color: #979db1;">
{{ $t('register.agreeTo') }}
<div style="display: inline-block;color: #5778FF;cursor: pointer;">{{ $t('register.userAgreement') }}</div>
<div style="display: inline-block;color: #5778FF;cursor: pointer;" @click="openPage('/user-agreement.html')">{{ $t('register.userAgreement') }}</div>
{{ $t('login.and') }}
<div style="display: inline-block;color: #5778FF;cursor: pointer;">{{ $t('register.privacyPolicy') }}</div>
<div style="display: inline-block;color: #5778FF;cursor: pointer;" @click="openPage('/privacy-policy.html')">{{ $t('register.privacyPolicy') }}</div>
</div>
</div>
</el-main>
@@ -198,6 +198,13 @@ export default {
this.fetchCaptcha();
},
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() {
this.form.captchaId = getUUID();
@@ -82,9 +82,9 @@
<!-- 保持相同的协议声明 -->
<div style="font-size: 14px;color: #979db1;">
{{ $t('retrievePassword.agreeTo') }}
<div style="display: inline-block;color: #5778FF;cursor: pointer;">{{ $t('register.userAgreement') }}</div>
<div style="display: inline-block;color: #5778FF;cursor: pointer;" @click="openPage('/user-agreement.html')">{{ $t('register.userAgreement') }}</div>
{{ $t('login.and') }}
<div style="display: inline-block;color: #5778FF;cursor: pointer;">{{ $t('register.privacyPolicy') }}</div>
<div style="display: inline-block;color: #5778FF;cursor: pointer;" @click="openPage('/privacy-policy.html')">{{ $t('register.privacyPolicy') }}</div>
</div>
</div>
</form>
@@ -167,6 +167,13 @@ export default {
this.fetchCaptcha();
},
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() {
this.form.captchaId = getUUID();