@ -59,7 +59,6 @@
}
if (detail.errMsg == 'getPhoneNumber:ok') {
app.isLoading = true
console.log(1111)
store.dispatch('LoginMpWxMobile', {
code: app.code,
encryptedData: detail.encryptedData,
@ -127,6 +127,9 @@
this.$toast('请输入验证码')
return
uni.login({
provider: 'weixin',
success: function(res) {
const that = this;
store.dispatch('Login', {
smsCode: that.semCode,
@ -134,13 +137,17 @@
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()