|
@@ -179,33 +179,31 @@ export default class Login extends BasePage {
|
|
|
http_user.jumpLogin(this.state.deviceCode, commonutil.getAppCode()).then((result) => {
|
|
|
if (result.code == 200) {
|
|
|
//登陆成功了,可以存储用户数据到本地
|
|
|
- if (result.code == 200) {
|
|
|
- let info = {
|
|
|
- avatar: result.data.user.avatar,
|
|
|
- ageGroup: result.data.visitor.ageGroup,
|
|
|
- birthday: result.data.visitor.birthday,
|
|
|
- channel: result.data.visitor.channel,
|
|
|
- city: result.data.visitor.city,
|
|
|
- country: result.data.visitor.country,
|
|
|
- eid: result.data.visitor.eid,
|
|
|
- gmtCreated: result.data.visitor.gmtCreated,
|
|
|
- gmtModified: result.data.visitor.gmtModified,
|
|
|
- mobile: result.data.visitor.mobile,
|
|
|
- nickName: result.data.visitor.nickName, //=== '' ? '未设置' : result.data.user.nickName,
|
|
|
- province: result.data.visitor.province,
|
|
|
- school: result.data.visitor.school,
|
|
|
- sex: result.data.visitor.sex,
|
|
|
- status: result.data.visitor.status,
|
|
|
- uid: result.data.visitor.uid,
|
|
|
- isVisitor: result.data.isVisitor.toUpperCase() === 'TRUE' ? true : false
|
|
|
- };
|
|
|
- global.userInfo = info;
|
|
|
- console.log('================跳过登录====================');
|
|
|
- console.log('global.userInfo', global.userInfo);
|
|
|
- console.log('====================================');
|
|
|
- commonutil.saveUserInfo();
|
|
|
- this.clearPageToNext('SchoolAge');
|
|
|
- }
|
|
|
+ let info = {
|
|
|
+ avatar: '',
|
|
|
+ ageGroup: 'PRESCHOOL',
|
|
|
+ birthday: '',
|
|
|
+ channel: result.data.visitor.channel,
|
|
|
+ city: '',
|
|
|
+ country: '',
|
|
|
+ eid: '',
|
|
|
+ gmtCreated: result.data.visitor.gmtCreated,
|
|
|
+ gmtModified: result.data.visitor.gmtModified,
|
|
|
+ mobile: '',
|
|
|
+ nickName: result.data.visitor.nickName, //=== '' ? '未设置' : result.data.user.nickName,
|
|
|
+ province: '',
|
|
|
+ school: '',
|
|
|
+ sex: '',
|
|
|
+ status: result.data.visitor.status,
|
|
|
+ uid: '',
|
|
|
+ isVisitor: result.data.isVisitor.toUpperCase() === 'TRUE' ? true : false
|
|
|
+ };
|
|
|
+ global.userInfo = info;
|
|
|
+ console.log('================跳过登录====================');
|
|
|
+ console.log('global.userInfo', global.userInfo);
|
|
|
+ console.log('====================================');
|
|
|
+ commonutil.saveUserInfo();
|
|
|
+ this.clearPageToNext('SchoolAge');
|
|
|
} else {
|
|
|
ToastAndroid.show(result.message, ToastAndroid.SHORT);
|
|
|
}
|