Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
liyeyun
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
cfld-frontend
liyeyun
Commits
8bcb2e38
Commit
8bcb2e38
authored
Jan 02, 2024
by
shilei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '20240102_fix_1000646' into 'dev'
注册验证 See merge request
!4
parents
530698a2
a9e98776
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
13 deletions
+11
-13
LoginView.vue
src/components/login/LoginView.vue
+5
-7
HomeView.vue
src/views/home/HomeView.vue
+6
-6
No files found.
src/components/login/LoginView.vue
View file @
8bcb2e38
...
@@ -317,14 +317,13 @@ const verify = (type: string = 'all') => {
...
@@ -317,14 +317,13 @@ const verify = (type: string = 'all') => {
proxy
.
$refs
.
phoneInput
.
style
.
borderColor
=
'#c0322b'
;
proxy
.
$refs
.
phoneInput
.
style
.
borderColor
=
'#c0322b'
;
}
}
errorMsg
.
value
=
'请输入有效的手机号码'
;
errorMsg
.
value
=
'请输入有效的手机号码'
;
if
(
type
===
'all'
)
{
return
false
;
return
false
;
}
else
{
return
true
;
}
}
else
{
}
else
{
if
(
errorMsg
.
value
===
'请输入有效的手机号码'
)
{
if
(
errorMsg
.
value
===
'请输入有效的手机号码'
)
{
errorMsg
.
value
=
null
;
errorMsg
.
value
=
null
;
if
(
proxy
.
$refs
.
passWord
?.
style
.
borderColor
===
'rgb(192, 50, 43)'
)
{
errorMsg
.
value
=
'请输入6-20位有效密码'
;
}
}
}
if
(
proxy
.
$refs
.
phoneInput
)
{
if
(
proxy
.
$refs
.
phoneInput
)
{
proxy
.
$refs
.
phoneInput
.
style
.
borderColor
=
'rgba(0, 0, 0, 0.15)'
;
proxy
.
$refs
.
phoneInput
.
style
.
borderColor
=
'rgba(0, 0, 0, 0.15)'
;
...
@@ -345,7 +344,7 @@ const verify = (type: string = 'all') => {
...
@@ -345,7 +344,7 @@ const verify = (type: string = 'all') => {
if
(
modalType
.
value
!==
'loginByPhone'
)
{
if
(
modalType
.
value
!==
'loginByPhone'
)
{
if
(
!
/^.
{6,20}
$/
.
test
(
password
.
value
?.
toString
()
||
''
))
{
if
(
!
/^.
{6,20}
$/
.
test
(
password
.
value
?.
toString
()
||
''
))
{
if
(
proxy
.
$refs
.
passWord
)
proxy
.
$refs
.
passWord
.
style
.
borderColor
=
'#c0322b'
;
if
(
proxy
.
$refs
.
passWord
)
proxy
.
$refs
.
passWord
.
style
.
borderColor
=
'#c0322b'
;
errorMsg
.
value
=
'请输入6-20位有效密码'
;
errorMsg
.
value
=
errorMsg
.
value
||
'请输入6-20位有效密码'
;
if
(
type
===
'all'
)
{
if
(
type
===
'all'
)
{
return
false
;
return
false
;
}
}
...
@@ -509,7 +508,6 @@ const handleBlur = (type: string) => {
...
@@ -509,7 +508,6 @@ const handleBlur = (type: string) => {
}
}
setTimeout
(()
=>
{
setTimeout
(()
=>
{
console
.
log
(
444
);
if
(
_modalType
===
modalType
.
value
)
{
if
(
_modalType
===
modalType
.
value
)
{
verify
(
type
);
verify
(
type
);
}
}
...
...
src/views/home/HomeView.vue
View file @
8bcb2e38
...
@@ -37,17 +37,17 @@
...
@@ -37,17 +37,17 @@
找产业园
找产业园
</span>
</span>
<span
<span
:class=
"
{ active: searchType === '
land
' }"
:class=
"
{ active: searchType === '
carrier
' }"
@click="changeSearchType('
land', '160px', '土地
')"
@click="changeSearchType('
carrier', '175px', '载体
')"
>
>
找
土地
找
载体
</span>
</span>
<span
<span
style=
"margin-right: 28px"
style=
"margin-right: 28px"
:class=
"
{ active: searchType === '
carrier
' }"
:class=
"
{ active: searchType === '
land
' }"
@click="changeSearchType('
carrier', '225px', '载体
')"
@click="changeSearchType('
land', '240px', '土地
')"
>
>
找
载体
找
土地
</span>
</span>
<span
<span
style=
"margin-right: 46px"
style=
"margin-right: 46px"
...
...
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