Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 81a805af
authored
Oct 17, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改账号密码登录数据
1 parent
d65cd127
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
login/index/components/Box/Box.js
login/index/components/Box/Box.js
View file @
81a805a
...
@@ -7,7 +7,9 @@ import {
...
@@ -7,7 +7,9 @@ import {
}
from
'~/login/lib/index'
}
from
'~/login/lib/index'
import
md5
from
'~/utils/lib/md5'
import
md5
from
'~/utils/lib/md5'
import
network
from
'~/utils/network'
import
network
from
'~/utils/network'
import
{
imgUrlMixin
}
from
'~/mixins/index'
import
{
imgUrlMixin
}
from
'~/mixins/index'
let
thisPage
let
thisPage
Component
({
Component
({
behaviors
:
[
imgUrlMixin
],
behaviors
:
[
imgUrlMixin
],
...
@@ -169,9 +171,9 @@ Component({
...
@@ -169,9 +171,9 @@ Component({
if
(
loginType
==
1
)
this
.
checkLoginUserInfo
(
data
)
if
(
loginType
==
1
)
this
.
checkLoginUserInfo
(
data
)
else
{
else
{
const
{
const
{
autoLogin
autoLogin
}
=
thisPage
.
data
,
{
}
=
thisPage
.
data
,
{
loginUserInfoList
,
sessionId
sessionId
}
=
data
,
}
=
data
,
validTime
=
3600
*
24
*
30
*
1
e3
,
validTime
=
3600
*
24
*
30
*
1
e3
,
...
@@ -183,7 +185,7 @@ Component({
...
@@ -183,7 +185,7 @@ Component({
password
:
md5
(
formData
.
password
)
password
:
md5
(
formData
.
password
)
})
})
}
else
wx
.
$storage
.
rm
(
'auto_login_object'
)
}
else
wx
.
$storage
.
rm
(
'auto_login_object'
)
setLoginInfo
(
data
,
sessionId
)
setLoginInfo
(
loginUserInfoList
[
0
]
,
sessionId
)
}
}
}
else
{
}
else
{
if
(
loginType
==
1
)
this
.
setData
({
if
(
loginType
==
1
)
this
.
setData
({
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment