Commit aeaead04 by liangjianmin

css

parent a81c6c73
Showing with 6 additions and 2 deletions
...@@ -51,8 +51,10 @@ export default { ...@@ -51,8 +51,10 @@ export default {
if (data.err_code === 0) { if (data.err_code === 0) {
uni.setStorageSync('openid', data.data.openid); uni.setStorageSync('openid', data.data.openid);
uni.setStorageSync('session_key', data.data.session_key); uni.setStorageSync('session_key', data.data.session_key);
uni.setStorageSync('unionid', data.data.unionid);
uni.navigateTo({ uni.navigateTo({
url: '/pages/mine/login' url: '/pages/mine/login'
}); });
} else { } else {
uni.showToast({ uni.showToast({
......
...@@ -55,6 +55,7 @@ export default { ...@@ -55,6 +55,7 @@ export default {
let openid = uni.getStorageSync('openid'); let openid = uni.getStorageSync('openid');
let session_key = uni.getStorageSync('session_key'); let session_key = uni.getStorageSync('session_key');
let unionid = uni.getStorageSync('unionid');
this.request( this.request(
API.Login, API.Login,
'POST', 'POST',
...@@ -62,7 +63,8 @@ export default { ...@@ -62,7 +63,8 @@ export default {
account: this.account, account: this.account,
pwd: this.pwd, pwd: this.pwd,
openid: openid, openid: openid,
session_key: session_key session_key: session_key,
unionid: unionid
}, },
true true
).then(res => { ).then(res => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment