Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
shop_mobile_uni
Project
Project
Details
Activity
Releases
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
郑秀明
shop_mobile_uni
Commits
42ae619c
Commit
42ae619c
authored
Jun 02, 2020
by
王建威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改密码正则
parent
68843985
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
manifest.json
manifest.json
+1
-1
changeLoginPass.vue
pages/setinfo/components/changeLoginPass.vue
+2
-2
No files found.
manifest.json
View file @
42ae619c
...
...
@@ -51,7 +51,7 @@
"mode"
:
"history"
,
"base"
:
"/uni"
},
"publicPath"
:
"https://dbc-static.oss-cn-beijing.aliyuncs.com/dbc-shop/uni/
test
/1.0.13/"
,
"publicPath"
:
"https://dbc-static.oss-cn-beijing.aliyuncs.com/dbc-shop/uni/
mirror
/1.0.13/"
,
"optimization"
:
{
"treeShaking"
:
{
"enable"
:
true
...
...
pages/setinfo/components/changeLoginPass.vue
View file @
42ae619c
...
...
@@ -33,7 +33,7 @@
},
methods
:
{
checkPass
()
{
const
reg
=
/^
(?![
0-9
]
+$
)(?![
a-zA-Z
]
+$
)[
0-9A-Za-z
]{6,}
$/
;
const
reg
=
/^
[
0-9a-zA-Z_
]{6,}
$/
;
if
(
this
.
new_password
!==
this
.
new_password_repeat
)
{
uni
.
showToast
({
title
:
'两次密码输入不一致'
,
...
...
@@ -43,7 +43,7 @@
}
if
(
!
reg
.
test
(
this
.
new_password
))
{
uni
.
showToast
({
title
:
'密码
至少包含字母/数字
,长度不小于6位'
,
title
:
'密码
由字母、数字或下划线组成
,长度不小于6位'
,
icon
:
'none'
,
duration
:
2000
});
...
...
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