Commit f627afff authored by nick zheng's avatar nick zheng

Merge branch 'beta' into 'master'

chore: 移动端登录页补充用户协议及隐私协议

See merge request !205
parents bb549504 301c7d3f
...@@ -66,6 +66,9 @@ const countdownActive = ref(true) ...@@ -66,6 +66,9 @@ const countdownActive = ref(true)
const isShowCountdown = ref(false) const isShowCountdown = ref(false)
const countdownDuration = ref<number>(60000) const countdownDuration = ref<number>(60000)
const userAgreementUrl = ref('https://tcn9nhw8kfwe.feishu.cn/wiki/Y1ELwRVESi9jw9kshc0chT2ZnSf?fromScene=spaceOverview')
const privacyPolicyUrl = ref('https://tcn9nhw8kfwe.feishu.cn/wiki/OBzxwhGBviHP8lk9ca0chUh9nCc?fromScene=spaceOverview')
const passwordLoginFormRules = shallowReadonly<FormRules>({ const passwordLoginFormRules = shallowReadonly<FormRules>({
account: { required: true, message: t('login_module.please_enter_your_account_number'), trigger: 'blur' }, account: { required: true, message: t('login_module.please_enter_your_account_number'), trigger: 'blur' },
password: { required: true, message: t('login_module.please_enter_your_password'), trigger: 'blur' }, password: { required: true, message: t('login_module.please_enter_your_password'), trigger: 'blur' },
...@@ -355,6 +358,16 @@ function handleLoginSubmit(method: LoginMethod) { ...@@ -355,6 +358,16 @@ function handleLoginSubmit(method: LoginMethod) {
}) })
}) })
} }
// 打开用户协议
function handleOpenUserAgreement() {
window.open(userAgreementUrl.value, '_blank')
}
// 打开隐私协议
function handleOpenPrivacyPolicy() {
window.open(privacyPolicyUrl.value, '_blank')
}
</script> </script>
<template> <template>
...@@ -566,9 +579,9 @@ function handleLoginSubmit(method: LoginMethod) { ...@@ -566,9 +579,9 @@ function handleLoginSubmit(method: LoginMethod) {
<n-checkbox v-model:checked="isAgreeTerms" class="h-[12px] w-[12px]" /> <n-checkbox v-model:checked="isAgreeTerms" class="h-[12px] w-[12px]" />
<div> <div>
{{ t('login_module.agreement_prefix') }} {{ t('login_module.agreement_prefix') }}
<span class="text-[#518AFF]">{{ t('login_module.agreement_terms') }}</span> <span class="text-[#518AFF]" @click="handleOpenUserAgreement">{{ t('login_module.agreement_terms') }}</span>
{{ t('login_module.agreement_and') }} {{ t('login_module.agreement_and') }}
<span class="text-[#518AFF]">{{ t('login_module.agreement_privacy') }}</span> <span class="text-[#518AFF]" @click="handleOpenPrivacyPolicy">{{ t('login_module.agreement_privacy') }}</span>
</div> </div>
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment