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
aaa0744b
Commit
aaa0744b
authored
Apr 30, 2025
by
nick zheng
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitlab.gsstcloud.com/poc/poc-fe
into beta
parents
e912daad
30536ca7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
3 deletions
+29
-3
login.vue
src/views/login/login.vue
+29
-3
No files found.
src/views/login/login.vue
View file @
aaa0744b
...
...
@@ -103,6 +103,8 @@ const isShowCountdown = ref(false)
const
countdownDuration
=
ref
<
number
>
(
60000
)
const
googleLoginBtnLoading
=
ref
(
false
)
const
isAgreeAgreement
=
ref
(
false
)
const
phoneNumberAreaOptions
=
computed
(()
=>
{
return
[
{
...
...
@@ -192,6 +194,11 @@ function getInputPhoneNumber() {
}
function
handleLoginSubmit
(
method
:
LoginMethod
)
{
if
(
!
isAgreeAgreement
.
value
)
{
window
.
$message
.
warning
(
t
(
'login_module.please_review_and_accept_the_agreement'
))
return
}
let
payload
:
LoginPayload
=
{
loginChannel
:
'MEMBER_PLATFOMR_PW'
,
account
:
''
,
...
...
@@ -376,6 +383,14 @@ function getGoogleLoginClientId() {
return
res
.
data
})
}
function
handleAgreementNavigator
(
name
:
'UserAgreement'
|
'PrivacyPolicy'
)
{
if
(
name
===
'UserAgreement'
)
{
window
.
open
(
'https://tcn9nhw8kfwe.feishu.cn/wiki/Y1ELwRVESi9jw9kshc0chT2ZnSf?fromScene=spaceOverview'
,
'_blank'
)
}
else
if
(
name
===
'PrivacyPolicy'
)
{
window
.
open
(
'https://tcn9nhw8kfwe.feishu.cn/wiki/OBzxwhGBviHP8lk9ca0chUh9nCc?fromScene=spaceOverview'
,
'_blank'
)
}
}
</
script
>
<
template
>
...
...
@@ -647,9 +662,20 @@ function getGoogleLoginClientId() {
</div>
</div>
<!-- <div class="text-center">
<n-checkbox size="small"><span class="text-[12px]">閱讀並同意協議</span></n-checkbox>
</div> -->
<div
class=
"flex-center mt-[16px] flex select-none text-center"
>
<n-checkbox
v-model:checked=
"isAgreeAgreement"
/>
<span
class=
"pl-[5px] text-[12px] leading-[23px]"
>
<span>
{{ t('login_module.agreement_prefix') }}
</span>
<span
class=
"cursor-pointer text-[#518AFF]"
@
click=
"handleAgreementNavigator('UserAgreement')"
>
《{{ t('login_module.agreement_terms') }}》
</span
>
<span>
{{ t('login_module.agreement_and') }}
</span>
<span
class=
"cursor-pointer text-[#518AFF]"
@
click=
"handleAgreementNavigator('PrivacyPolicy')"
>
《{{ t('login_module.agreement_privacy') }}》
</span
>
</span>
</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