|
@@ -227,7 +227,7 @@
|
|
username: "13333333333"}).then(res => {})
|
|
username: "13333333333"}).then(res => {})
|
|
uni.setStorageSync('userInfo', res.data)
|
|
uni.setStorageSync('userInfo', res.data)
|
|
that.$store.commit('login', res.data)
|
|
that.$store.commit('login', res.data)
|
|
- that.liangxinLogin()
|
|
|
|
|
|
+ // that.liangxinLogin()
|
|
uni.switchTab({
|
|
uni.switchTab({
|
|
url: '/pages/sale/information'
|
|
url: '/pages/sale/information'
|
|
});
|
|
});
|
|
@@ -291,7 +291,7 @@
|
|
console.log(res)
|
|
console.log(res)
|
|
uni.setStorageSync('userInfo', res.data)
|
|
uni.setStorageSync('userInfo', res.data)
|
|
that.$store.commit('login', res.data)
|
|
that.$store.commit('login', res.data)
|
|
- that.liangxinLogin()
|
|
|
|
|
|
+ // that.liangxinLogin()
|
|
uni.switchTab({
|
|
uni.switchTab({
|
|
url: '/pages/sale/information'
|
|
url: '/pages/sale/information'
|
|
});
|
|
});
|
|
@@ -461,7 +461,7 @@
|
|
res.data.phone = e.userInfo.phone
|
|
res.data.phone = e.userInfo.phone
|
|
uni.setStorageSync('userInfo', res.data)
|
|
uni.setStorageSync('userInfo', res.data)
|
|
that.$store.commit('login', res.data)
|
|
that.$store.commit('login', res.data)
|
|
- that.liangxinLogin()
|
|
|
|
|
|
+ // that.liangxinLogin()
|
|
})
|
|
})
|
|
},
|
|
},
|
|
complete: (e) => {
|
|
complete: (e) => {
|
|
@@ -542,7 +542,7 @@
|
|
that.$store.commit('login', that.userInfo)
|
|
that.$store.commit('login', that.userInfo)
|
|
that.$api.setUserInfo(that.userInfo)
|
|
that.$api.setUserInfo(that.userInfo)
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
- that.liangxinLogin()
|
|
|
|
|
|
+ // that.liangxinLogin()
|
|
})
|
|
})
|
|
if(res.data.phoneNumber){
|
|
if(res.data.phoneNumber){
|
|
uni.switchTab({
|
|
uni.switchTab({
|
|
@@ -670,7 +670,7 @@
|
|
res.data.gender = userInfo.gender
|
|
res.data.gender = userInfo.gender
|
|
if(userInfo.phone){
|
|
if(userInfo.phone){
|
|
res.data.phone = userInfo.phone
|
|
res.data.phone = userInfo.phone
|
|
- that.liangxinLogin()
|
|
|
|
|
|
+ // that.liangxinLogin()
|
|
}
|
|
}
|
|
uni.setStorageSync('userInfo', res.data)
|
|
uni.setStorageSync('userInfo', res.data)
|
|
that.$store.commit('login', res.data)
|
|
that.$store.commit('login', res.data)
|
|
@@ -773,7 +773,7 @@
|
|
url: '/pages/sale/information'
|
|
url: '/pages/sale/information'
|
|
});
|
|
});
|
|
console.log("complete")
|
|
console.log("complete")
|
|
- that.liangxinLogin()
|
|
|
|
|
|
+ // that.liangxinLogin()
|
|
}
|
|
}
|
|
})
|
|
})
|
|
console.log( 'wx.getUserProfile=>用户允许了授权' );
|
|
console.log( 'wx.getUserProfile=>用户允许了授权' );
|
|
@@ -873,7 +873,7 @@
|
|
res.data.gender = e.userInfo.gender
|
|
res.data.gender = e.userInfo.gender
|
|
if(res.data.phone){
|
|
if(res.data.phone){
|
|
res.data.phone = e.userInfo.phone
|
|
res.data.phone = e.userInfo.phone
|
|
- that.liangxinLogin()
|
|
|
|
|
|
+ // that.liangxinLogin()
|
|
}
|
|
}
|
|
|
|
|
|
uni.setStorageSync('userInfo', res.data)
|
|
uni.setStorageSync('userInfo', res.data)
|