| | |
| | | url: './setInviteCode' |
| | | }) |
| | | } |
| | | else if (e.data.userinfo.isPwd == 'N') { |
| | | /* else if (e.data.userinfo.isPwd == 'N') { |
| | | uni.redirectTo({ |
| | | url: './setPass' |
| | | }) |
| | | } else { |
| | | } */else { |
| | | uni.switchTab({ |
| | | url: '../index/index' |
| | | }) |
| | |
| | | url: './setInviteCode' |
| | | }) |
| | | } |
| | | else if (e.data.userinfo.isPwd == 'N') { |
| | | /* else if (e.data.userinfo.isPwd == 'N') { |
| | | uni.redirectTo({ |
| | | url: './setPass' |
| | | }) |
| | | } else { |
| | | } */else { |
| | | uni.switchTab({ |
| | | url: '../index/index' |
| | | }) |
| | |
| | | this.$u.api.getUserInfo({}).then(e => { |
| | | console.log(e) |
| | | util.setCache('userInfo', e.data.userinfo); |
| | | if (e.data.userinfo.isPwd == 'N') { |
| | | uni.switchTab({ |
| | | url: '../index/index' |
| | | }) |
| | | /* if (e.data.userinfo.isPwd == 'N') { |
| | | uni.redirectTo({ |
| | | url: './setPass' |
| | | }) |
| | |
| | | uni.switchTab({ |
| | | url: '../index/index' |
| | | }) |
| | | } |
| | | */} |
| | | }).catch(function (err) { |
| | | console.log(err) |
| | | }) |
| | |
| | | var that = this; |
| | | |
| | | that.login(e.data.userinfo); |
| | | |
| | | that.$alert('登录成功') |
| | | setTimeout(function(){ |
| | | console.log(e.data.userinfo) |
| | | if(!e.data.userinfo.invitation_code) |
| | |
| | | url: './setInviteCode' |
| | | }) |
| | | } |
| | | else if (e.data.userinfo.isPwd == 'N') { |
| | | /* else if (e.data.userinfo.isPwd == 'N') { |
| | | uni.redirectTo({ |
| | | url: './setPass' |
| | | }) |
| | | } else { |
| | | } */ else { |
| | | uni.switchTab({ |
| | | url: '../index/index' |
| | | }) |