Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-fe
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-fe
Commits
f627afff
Commit
f627afff
authored
Apr 10, 2025
by
nick zheng
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'beta' into 'master'
chore: 移动端登录页补充用户协议及隐私协议 See merge request
!205
parents
bb549504
301c7d3f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
h5-login.vue
src/views/login/h5-login.vue
+15
-2
No files found.
src/views/login/h5-login.vue
View file @
f627afff
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment