Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
h5
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9b25bc2a
authored
Feb 19, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
21af6d68
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
2 deletions
src/views/smt/Index.vue
src/views/supplier/Index.vue
view/3.js
view/4.js
src/views/smt/Index.vue
View file @
9b25bc2a
...
...
@@ -280,11 +280,24 @@
...
mapState
({
loading
:
state
=>
state
.
smt
.
loading
}),
linkName
(){
return
this
.
form
.
linkName
;
},
mobileVal
()
{
return
this
.
form
.
mobile
;
}
},
watch
:
{
linkName
(
val
){
var
reg
=
/^
[\u
0391-
\u
FFE5A-Za-z
]
+$/
;
if
(
!
reg
.
test
(
val
)
){
this
.
formError
=
true
;
this
.
formMsg
=
'亲,称呼只能为英文和中文'
;
}
else
{
this
.
formError
=
false
this
.
formMsg
=
''
;
}
},
mobileVal
(
val
)
{
if
(
val
.
length
>=
11
)
{
this
.
verifyCodeFlag
=
true
;
...
...
src/views/supplier/Index.vue
View file @
9b25bc2a
...
...
@@ -271,8 +271,13 @@
}
},
linkName
(
val
)
{
if
(
val
)
{
this
.
formError
=
false
;
var
reg
=
/^
[\u
0391-
\u
FFE5A-Za-z
]
+$/
;
if
(
!
reg
.
test
(
val
)
){
this
.
formError
=
true
;
this
.
formMsg
=
'亲,称呼只能为英文和中文'
;
}
else
{
this
.
formError
=
false
this
.
formMsg
=
''
;
}
},
verifyCode
(
val
)
{
...
...
view/3.js
View file @
9b25bc2a
This diff is collapsed.
Click to expand it.
view/4.js
View file @
9b25bc2a
This diff is collapsed.
Click to expand it.
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