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
@@ -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();