Commit 81a805af by 李伟康

修改账号密码登录数据

1 parent d65cd127
...@@ -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 * 1e3, validTime = 3600 * 24 * 30 * 1e3,
...@@ -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({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!