|
|
|
@ -29,6 +29,7 @@ |
|
|
|
|
sessionKey: '', |
|
|
|
|
openid: '', |
|
|
|
|
unionid: '', |
|
|
|
|
unionid: '', |
|
|
|
|
submiting: false, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
@ -51,8 +52,10 @@ |
|
|
|
|
const e = data.sessionKey |
|
|
|
|
this.sessionKey = e.session_key |
|
|
|
|
this.openid = e.openid |
|
|
|
|
this.unionid = e.unionid || '' |
|
|
|
|
uni.setStorageSync('sessionKey', e.session_key) |
|
|
|
|
uni.setStorageSync('openid', e.openid) |
|
|
|
|
uni.setStorageSync('unionid', e.unionid || '') |
|
|
|
|
} catch (e) {} |
|
|
|
|
} else { |
|
|
|
|
that.$util.errMsg('登录失败!') |
|
|
|
@ -72,6 +75,7 @@ |
|
|
|
|
uni.setStorageSync('phone', phone) |
|
|
|
|
const { data } = await studentBinding({ |
|
|
|
|
openid: this.openid, |
|
|
|
|
unionid: this.unionid, |
|
|
|
|
phone, |
|
|
|
|
platformId: 1 |
|
|
|
|
}) |
|
|
|
|