mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-23 07:33:53 +08:00
add:增加用户协议和隐私政策
This commit is contained in:
@@ -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") {
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user