Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gdtel-gztel-school-center-ui
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴学德
gdtel-gztel-school-center-ui
Commits
50e11ce8
Commit
50e11ce8
authored
Feb 29, 2020
by
吴学德
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉手机验证码
parent
538f4cb4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
54 deletions
+3
-54
src/components/tools/UserPassword.vue
+2
-48
src/config/router.config.js
+0
-5
src/views/user/Login.vue
+1
-1
src/views/user/register.vue
+0
-0
No files found.
src/components/tools/UserPassword.vue
View file @
50e11ce8
...
@@ -20,23 +20,6 @@
...
@@ -20,23 +20,6 @@
<a-form-item
<a-form-item
:labelCol=
"labelCol"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
:wrapperCol=
"wrapperCol"
label=
"验证码"
>
<a-input
v-decorator=
"['inputCode',validatorRules.inputCode]"
type=
"text"
placeholder=
"请输入验证码"
>
</a-input>
<a-button
type=
"primary"
htmlType=
"submit"
@
click
.
stop
.
prevent=
"getCode"
>
{{
codeMsg
}}
</a-button>
</a-form-item>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"新密码"
>
label=
"新密码"
>
<a-input
type=
"password"
placeholder=
"请输入新密码"
v-decorator=
"[ 'newPwd', validatorRules.newPwd]"
/>
<a-input
type=
"password"
placeholder=
"请输入新密码"
v-decorator=
"[ 'newPwd', validatorRules.newPwd]"
/>
</a-form-item>
</a-form-item>
...
@@ -107,35 +90,6 @@
...
@@ -107,35 +90,6 @@
}
}
},
},
methods
:
{
methods
:
{
getCode
()
{
// 验证码60秒倒计时
if
(
!
this
.
timer
)
{
postAction
(
this
.
codeurl
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
this
.
$notification
.
success
({
message
:
res
.
data
,
});
return
null
;
}
this
.
$notification
.
error
({
message
:
res
.
data
,
});
})
this
.
timer
=
setInterval
(()
=>
{
if
(
this
.
countdown
>
0
&&
this
.
countdown
<=
60
)
{
this
.
countdown
--
;
if
(
this
.
countdown
!==
0
)
{
this
.
codeMsg
=
"重新发送("
+
this
.
countdown
+
")"
;
}
else
{
clearInterval
(
this
.
timer
);
this
.
codeMsg
=
"获取验证码"
;
this
.
countdown
=
60
;
this
.
timer
=
null
;
}
}
},
1000
)
}
},
//密码加密
//密码加密
getPass
(
text
){
getPass
(
text
){
/*let keyss = setMaxDigits(130);
/*let keyss = setMaxDigits(130);
...
@@ -180,11 +134,11 @@
...
@@ -180,11 +134,11 @@
that
.
confirmLoading
=
true
;
that
.
confirmLoading
=
true
;
values
.
oldPwd
=
encodeURIComponent
(
this
.
getPass
(
values
.
oldPwd
))
values
.
oldPwd
=
encodeURIComponent
(
this
.
getPass
(
values
.
oldPwd
))
values
.
newPwd
=
encodeURIComponent
(
this
.
getPass
(
values
.
newPwd
))
values
.
newPwd
=
encodeURIComponent
(
this
.
getPass
(
values
.
newPwd
))
values
.
inputCode
=
encodeURIComponent
(
this
.
getPass
(
values
.
inputCode
))
values
.
inputCode
=
encodeURIComponent
(
this
.
getPass
(
"XXXXXX"
))
values
.
rePwd
=
values
.
newPwd
values
.
rePwd
=
values
.
newPwd
let
params
=
Object
.
assign
(
values
)
let
params
=
Object
.
assign
(
values
)
postAction
(
this
.
url
,
params
).
then
((
res
)
=>
{
postAction
(
this
.
url
,
params
).
then
((
res
)
=>
{
if
(
res
.
code
){
if
(
res
.
code
!=
200
){
that
.
$message
.
error
(
res
.
message
);
that
.
$message
.
error
(
res
.
message
);
that
.
close
();
that
.
close
();
}
else
{
}
else
{
...
...
src/config/router.config.js
View file @
50e11ce8
...
@@ -16,11 +16,6 @@ export const asyncRouterMap = [{
...
@@ -16,11 +16,6 @@ export const asyncRouterMap = [{
component
:
()
=>
import
(
/* webpackChunkName: "user" */
'@/views/user/Login'
)
component
:
()
=>
import
(
/* webpackChunkName: "user" */
'@/views/user/Login'
)
},
},
{
{
path
:
'register'
,
name
:
'register'
,
component
:
()
=>
import
(
/* webpackChunkName: "user" */
'@/views/user/register'
)
},
{
path
:
'ueditor2'
,
path
:
'ueditor2'
,
name
:
'ueditor2'
,
name
:
'ueditor2'
,
component
:
()
=>
import
(
/* webpackChunkName: "user" */
'@/views/user/ueditor2'
)
component
:
()
=>
import
(
/* webpackChunkName: "user" */
'@/views/user/ueditor2'
)
...
...
src/views/user/Login.vue
View file @
50e11ce8
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
<a-icon
slot=
"prefix"
type=
"lock"
:style=
"
{ color: 'rgba(0,0,0,.25)' }"/>
<a-icon
slot=
"prefix"
type=
"lock"
:style=
"
{ color: 'rgba(0,0,0,.25)' }"/>
</a-input>
</a-input>
</a-form-item>
</a-form-item>
<div
class=
"register"
>
忘记密码?
<router-link
:to=
"
{path: '/user/register'}">找回密码
</router-link></div
>
<!--
<div
class=
"register"
>
忘记密码?
<router-link
:to=
"
{path: '/user/register'}">找回密码
</router-link></div>
--
>
<a-form-item
style=
"margin-top:24vw/@vw"
>
<a-form-item
style=
"margin-top:24vw/@vw"
>
<a-button
<a-button
...
...
src/views/user/register.vue
deleted
100644 → 0
View file @
538f4cb4
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