Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
party-build-cloud
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
wangqinghua
party-build-cloud
Commits
887144ad
Commit
887144ad
authored
Nov 13, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改密码 限制
parent
9e86dd1a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
8 deletions
+14
-8
forget-pwd.html
src/pages/forget-pwd/forget-pwd.html
+1
-1
forget-pwd.scss
src/pages/forget-pwd/forget-pwd.scss
+3
-0
forget-pwd.ts
src/pages/forget-pwd/forget-pwd.ts
+3
-3
version.ts
src/pages/version/version.ts
+6
-3
http.service.ts
src/service/http.service.ts
+1
-1
No files found.
src/pages/forget-pwd/forget-pwd.html
View file @
887144ad
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
<ng-container
*
ngIf=
"isSend"
>
<ng-container
*
ngIf=
"isSend"
>
<div
class=
"pwd-item"
>
<div
class=
"pwd-item"
>
<img
src=
"./assets/imgs/icon-password-new.png"
class=
"pwd-img"
>
<img
src=
"./assets/imgs/icon-password-new.png"
class=
"pwd-img"
>
<input
[(
ngModel
)]="
passwordInfo
.
modifyPassword
"
class=
"pwd-content"
type=
"password"
required
placeholder=
"新密码
(8到16位,包含字母与数字)
"
<input
[(
ngModel
)]="
passwordInfo
.
modifyPassword
"
class=
"pwd-content"
type=
"password"
required
placeholder=
"新密码
以英文字母开头,同时包含数字,长度8-20位
"
/>
/>
</div>
</div>
<div
class=
"pwd-item"
>
<div
class=
"pwd-item"
>
...
...
src/pages/forget-pwd/forget-pwd.scss
View file @
887144ad
...
@@ -72,4 +72,7 @@ page-forget-pwd {
...
@@ -72,4 +72,7 @@ page-forget-pwd {
border
:
1px
solid
#e42417
;
border
:
1px
solid
#e42417
;
background-color
:
#e42417
;
background-color
:
#e42417
;
}
}
input
:
:-
webkit-input-placeholder
{
font-size
:
12px
;
}
}
}
src/pages/forget-pwd/forget-pwd.ts
View file @
887144ad
...
@@ -13,7 +13,7 @@ import {CommonService} from "../../provide/common.service";
...
@@ -13,7 +13,7 @@ import {CommonService} from "../../provide/common.service";
})
})
export
class
ForgetPwdPage
{
export
class
ForgetPwdPage
{
myreg
=
/^
(?
![^
a-zA-Z
]
+$
)(?!\\
D+$
)
.
{8,16
}
$/
;
myreg
=
/^
(?
=[
a-zA-Z
]
+
\d
+
)\w{8,20
}
$/
;
user
=
{
user
=
{
phone
:
''
,
phone
:
''
,
...
@@ -25,7 +25,7 @@ export class ForgetPwdPage {
...
@@ -25,7 +25,7 @@ export class ForgetPwdPage {
sureModifyPassword
:
''
sureModifyPassword
:
''
};
};
isSend
=
fals
e
;
isSend
=
tru
e
;
disabledClick
=
false
;
disabledClick
=
false
;
verifyText
=
'获取验证码'
;
verifyText
=
'获取验证码'
;
...
@@ -130,7 +130,7 @@ export class ForgetPwdPage {
...
@@ -130,7 +130,7 @@ export class ForgetPwdPage {
return
false
;
return
false
;
}
}
if
(
!
this
.
myreg
.
test
(
this
.
passwordInfo
.
modifyPassword
))
{
if
(
!
this
.
myreg
.
test
(
this
.
passwordInfo
.
modifyPassword
))
{
this
.
appService
.
popToastView
(
'新密码
由8到16位数字和字母组成
!'
,
'top'
,
2000
);
this
.
appService
.
popToastView
(
'新密码
以英文字母开头,同时包含数字,长度8-20位
!'
,
'top'
,
2000
);
return
false
;
return
false
;
}
}
if
(
this
.
passwordInfo
.
modifyPassword
!=
this
.
passwordInfo
.
sureModifyPassword
)
{
if
(
this
.
passwordInfo
.
modifyPassword
!=
this
.
passwordInfo
.
sureModifyPassword
)
{
...
...
src/pages/version/version.ts
View file @
887144ad
...
@@ -28,7 +28,7 @@ export class VersionPage {
...
@@ -28,7 +28,7 @@ export class VersionPage {
private
appUpdateService
:
AppUpdateService
,
private
appUpdateService
:
AppUpdateService
,
private
appVersion
:
AppVersion
,
private
appVersion
:
AppVersion
,
private
storage
:
Storage
,
private
storage
:
Storage
,
private
file
:
File
,
private
file
:
File
,
private
commonSer
:
CommonService
,
private
commonSer
:
CommonService
,
private
app
:
App
,
private
tabSer
:
TabsService
,
private
app
:
App
,
private
tabSer
:
TabsService
,
private
alertCtrl
:
AlertController
)
{
private
alertCtrl
:
AlertController
)
{
...
@@ -125,8 +125,11 @@ export class VersionPage {
...
@@ -125,8 +125,11 @@ export class VersionPage {
//清除缓存
//清除缓存
clearSotrage
()
{
clearSotrage
()
{
this
.
file
.
removeRecursively
(
this
.
file
.
cacheDirectory
,
'io.ionic.smart19.starter'
).
then
(
e
=>
this
.
file
.
removeRecursively
(
this
.
file
.
cacheDirectory
,
'io.ionic.smart19.starter'
).
then
(
e
=>
alert
(
JSON
.
stringify
(
e
))).
catch
(
err
=>
alert
(
err
));
console
.
log
(
JSON
.
stringify
(
e
)
)).
catch
(
err
=>
console
.
log
(
err
)
);
window
.
location
.
reload
(
true
);
window
.
location
.
reload
(
true
);
this
.
commonSer
.
toast
(
'缓存清除成功'
);
this
.
commonSer
.
toast
(
'缓存清除成功'
);
}
}
...
...
src/service/http.service.ts
View file @
887144ad
...
@@ -29,7 +29,7 @@ export class AppGlobal {
...
@@ -29,7 +29,7 @@ export class AppGlobal {
//默认版本
//默认版本
static
defaultVersion
=
"4.6.0"
;
//dev
static
defaultVersion
=
"4.6.0"
;
//dev
// static defaultVersion; //pr
r
od
// static defaultVersion; //prod
//接口地址
//接口地址
static
API
:
any
=
{
static
API
:
any
=
{
...
...
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