yangan
2024-08-23 c136669b4990a5276e594425179e3a41a8fcf5b3
pages/login/userPassword.vue
@@ -77,6 +77,7 @@
                  scope: 'server'
               })
               .then(res => {
                  this.submitLoading = false
                  setToken(res.access_token);
                  setRefreshToken(res.refresh_token);
                  if (this.btnText == 0) {
@@ -90,6 +91,7 @@
                        this.$reqGet('getUserEntity')
                           .then(res => {
                    this.$u.toast('登录成功');
               this.submitLoading = false
               this.getLoginInfo(); // 记录登录信息
                    this.setUserTabbar(res.data.type);
                    uni.setStorageSync('roleType', res.data.type);
@@ -119,6 +121,7 @@
                        this.$u.toast(res.msg);
                     }
                  } else {
                     console.log('微信绑定?????')
                     uni.login({
                        success: res => {
                           if (res.code) {
@@ -126,6 +129,7 @@
                           }
                        }
                     });
                     this.submitLoading = false
                     if (uni.getStorageSync('bindcode')) {
                        this.$reqPost('wxBind', { state: 'MINI', code: uni.getStorageSync('bindcode') },
                           'params').then(res => {
@@ -138,6 +142,8 @@
                           } else {
                              this.$u.toast(res.msg ? res.msg : '绑定失败');
                           }
                        }).finally(() => {
                           this.submitLoading = false;
                        });
                     }
                  }