pages/login/userPassword.vue
@@ -107,7 +107,15 @@ this.$u.toast(res.msg); } } else { this.$reqPost('wxBind', { state: 'MINI', code: uni.getStorageSync('code') }, 'params').then(res => { uni.login({ success: res => { if (res.code) { uni.setStorageSync('bindcode', res.code); } } }); if (uni.getStorageSync('bindcode')) { this.$reqPost('wxBind', { state: 'MINI', code: uni.getStorageSync('bindcode') }, 'params').then(res => { uni.hideLoading(); if (res.code == 0) { this.$u.toast('绑定成功!即将回到登录页!'); @@ -119,6 +127,7 @@ } }); } } }) .catch(e => { this.$u.toast(e);