Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
traceSourceMb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yanyanhong
traceSourceMb
Commits
85fb58cb
Commit
85fb58cb
authored
Aug 11, 2020
by
yyh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
md5types
parent
8bc3514d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
blueimp-md5.d.ts
src/types/blueimp-md5.d.ts
+3
-2
Login.vue
src/views/Login.vue
+1
-2
SetPasswd.vue
src/views/userCenter/SetPasswd.vue
+1
-1
No files found.
src/types/blueimp-md5.d.ts
View file @
85fb58cb
declare
module
'blueimp-md5'
{
declare
module
'blueimp-md5'
{
const
blueimpM
d5
:
any
;
const
m
d5
:
any
;
export
default
blueimpM
d5
;
export
default
m
d5
;
}
}
\ No newline at end of file
src/views/Login.vue
View file @
85fb58cb
...
@@ -88,7 +88,6 @@ import { Component, Prop, Vue } from 'vue-property-decorator';
...
@@ -88,7 +88,6 @@ import { Component, Prop, Vue } from 'vue-property-decorator';
import
{
Form
,
Field
,
CellGroup
,
Button
}
from
'vant'
;
import
{
Form
,
Field
,
CellGroup
,
Button
}
from
'vant'
;
import
{
Action
}
from
'vuex-class'
;
import
{
Action
}
from
'vuex-class'
;
import
md5
from
'blueimp-md5'
;
import
md5
from
'blueimp-md5'
;
console
.
log
()
@
Component
({
@
Component
({
components
:
{
components
:
{
[
Form
.
name
]:
Form
,
[
Form
.
name
]:
Form
,
...
@@ -110,7 +109,7 @@ export default class Login extends Vue {
...
@@ -110,7 +109,7 @@ export default class Login extends Vue {
login_type
:
this
.
loginType
,
login_type
:
this
.
loginType
,
phone
:
this
.
phone
,
phone
:
this
.
phone
,
code
:
this
.
code
,
code
:
this
.
code
,
pwd
:
md5
(
this
.
pwd
+
md5
(
this
.
pwd
.
length
)),
pwd
:
md5
(
this
.
pwd
+
md5
(
this
.
pwd
.
length
)),
email
:
this
.
email
,
email
:
this
.
email
,
});
});
localStorage
.
setItem
(
'userInfo'
,
JSON
.
stringify
(
res
));
localStorage
.
setItem
(
'userInfo'
,
JSON
.
stringify
(
res
));
...
...
src/views/userCenter/SetPasswd.vue
View file @
85fb58cb
...
@@ -81,7 +81,7 @@ export default class SetPasswd extends Vue {
...
@@ -81,7 +81,7 @@ export default class SetPasswd extends Vue {
return
;
return
;
}
}
const
account
:
string
=
phone
||
email
;
const
account
:
string
=
phone
||
email
;
await
this
.
$api
.
user
.
setPwd
(
this
.
codeType
,
md5
(
pwd
+
md5
(
pwd
.
length
)),
code
,
{
phone
,
email
});
await
this
.
$api
.
user
.
setPwd
(
this
.
codeType
,
md5
(
pwd
+
md5
(
pwd
.
length
)),
code
,
{
phone
,
email
});
this
.
step
=
'4'
;
this
.
step
=
'4'
;
}
}
}
}
...
...
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