Commit 81a805af by 李伟康

修改账号密码登录数据

1 parent d65cd127
......@@ -7,7 +7,9 @@ import {
} from '~/login/lib/index'
import md5 from '~/utils/lib/md5'
import network from '~/utils/network'
import { imgUrlMixin } from '~/mixins/index'
import {
imgUrlMixin
} from '~/mixins/index'
let thisPage
Component({
behaviors: [imgUrlMixin],
......@@ -169,9 +171,9 @@ Component({
if (loginType == 1) this.checkLoginUserInfo(data)
else {
const {
autoLogin
} = thisPage.data, {
loginUserInfoList,
sessionId
} = data,
validTime = 3600 * 24 * 30 * 1e3,
......@@ -183,7 +185,7 @@ Component({
password: md5(formData.password)
})
} else wx.$storage.rm('auto_login_object')
setLoginInfo(data, sessionId)
setLoginInfo(loginUserInfoList[0], sessionId)
}
} else {
if (loginType == 1) this.setData({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!