Commit a2a48787 by 张立顺

修改登录逻辑

1 parent eb8f265a
...@@ -203,11 +203,11 @@ Component({ ...@@ -203,11 +203,11 @@ Component({
/**微信登录 */ /**微信登录 */
wxLogin({ detail }) { wxLogin({ detail }) {
console.log(detail,'detail'); console.log(detail,'detail');
if (detail.errno == 104) return //用户手动拒绝 if (detail.errno == 104 ||!detail.code) return //用户手动拒绝
if (!detail.code) { // if (!detail.code) {
wx.$api.showToast('当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。') // // wx.$api.showToast('当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。')
return // return
} // }
this.setBtnLoading() this.setBtnLoading()
USERAPI.authUserPhone(detail, this.loginToken) USERAPI.authUserPhone(detail, this.loginToken)
.then(({ code, data, message }) => { .then(({ code, data, message }) => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!