|
|
|
@ -127,20 +127,27 @@ |
|
|
|
|
this.$toast('请输入验证码') |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
const that = this; |
|
|
|
|
store.dispatch('Login', { |
|
|
|
|
uni.login({ |
|
|
|
|
provider: 'weixin', |
|
|
|
|
success: function(res) { |
|
|
|
|
const that = this; |
|
|
|
|
store.dispatch('Login', { |
|
|
|
|
smsCode: that.semCode, |
|
|
|
|
mobile: that.phoneNum, |
|
|
|
|
refereeId: this.refereeId, |
|
|
|
|
isParty: false, |
|
|
|
|
partyData: {}, |
|
|
|
|
refereeId: false |
|
|
|
|
ucode:res.code |
|
|
|
|
// refereeId: false |
|
|
|
|
}).then(res => { |
|
|
|
|
uni.setStorageSync('token', res.data.token) |
|
|
|
|
that.$toast(res.message) |
|
|
|
|
that.getUserInfo() |
|
|
|
|
setTimeout(() => that.onNavigateBack(1), 2000) |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
getUserInfo() { |
|
|
|
|
UserApi.info() |
|
|
|
|