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
a9e98776
Commit
a9e98776
authored
Jan 02, 2024
by
shilei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注册验证
parent
4c16e803
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
12 deletions
+10
-12
LoginView.vue
src/components/login/LoginView.vue
+4
-6
HomeView.vue
src/views/home/HomeView.vue
+6
-6
No files found.
src/components/login/LoginView.vue
View file @
a9e98776
...
...
@@ -317,14 +317,13 @@ const verify = (type: string = 'all') => {
proxy
.
$refs
.
phoneInput
.
style
.
borderColor
=
'#c0322b'
;
}
errorMsg
.
value
=
'请输入有效的手机号码'
;
if
(
type
===
'all'
)
{
return
false
;
}
else
{
return
true
;
}
}
else
{
if
(
errorMsg
.
value
===
'请输入有效的手机号码'
)
{
errorMsg
.
value
=
null
;
if
(
proxy
.
$refs
.
passWord
?.
style
.
borderColor
===
'rgb(192, 50, 43)'
)
{
errorMsg
.
value
=
'请输入6-20位有效密码'
;
}
}
if
(
proxy
.
$refs
.
phoneInput
)
{
proxy
.
$refs
.
phoneInput
.
style
.
borderColor
=
'rgba(0, 0, 0, 0.15)'
;
...
...
@@ -345,7 +344,7 @@ const verify = (type: string = 'all') => {
if
(
modalType
.
value
!==
'loginByPhone'
)
{
if
(
!
/^.
{6,20}
$/
.
test
(
password
.
value
?.
toString
()
||
''
))
{
if
(
proxy
.
$refs
.
passWord
)
proxy
.
$refs
.
passWord
.
style
.
borderColor
=
'#c0322b'
;
errorMsg
.
value
=
'请输入6-20位有效密码'
;
errorMsg
.
value
=
errorMsg
.
value
||
'请输入6-20位有效密码'
;
if
(
type
===
'all'
)
{
return
false
;
}
...
...
@@ -509,7 +508,6 @@ const handleBlur = (type: string) => {
}
setTimeout
(()
=>
{
console
.
log
(
444
);
if
(
_modalType
===
modalType
.
value
)
{
verify
(
type
);
}
...
...
src/views/home/HomeView.vue
View file @
a9e98776
...
...
@@ -37,17 +37,17 @@
找产业园
</span>
<span
:class=
"
{ active: searchType === '
land
' }"
@click="changeSearchType('
land', '160px', '土地
')"
:class=
"
{ active: searchType === '
carrier
' }"
@click="changeSearchType('
carrier', '175px', '载体
')"
>
找
土地
找
载体
</span>
<span
style=
"margin-right: 28px"
:class=
"
{ active: searchType === '
carrier
' }"
@click="changeSearchType('
carrier', '225px', '载体
')"
:class=
"
{ active: searchType === '
land
' }"
@click="changeSearchType('
land', '240px', '土地
')"
>
找
载体
找
土地
</span>
<span
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