wk
2024-11-14 927e4a7caf46bd073c65ce3b8f14dc1f1582c519
pages/login/userPassword.vue
@@ -148,6 +148,7 @@
                        }
                        //#endif
                    this.$u.toast('登录成功');
               // #ifdef H5
               if(this.isJizhu.length){ //记住密码
                     uni.setStorageSync('remberPassWord',{
                           username: this.username,
@@ -159,6 +160,7 @@
                                    password: '',
                                 });
                              }
                              //#endif
               this.submitLoading = false
               this.getLoginInfo(); // 记录登录信息
                    this.setUserTabbar(res.data.type);
@@ -202,10 +204,7 @@
                           if (res.code) {
                              uni.setStorageSync('bindcode', res.code);
                           }
                        }
                     });
                     this.submitLoading = false
                     if (uni.getStorageSync('bindcode')) {
                           if (uni.getStorageSync('bindcode')) {
                        this.$reqPost('wxBind', { state: 'MINI', code: uni.getStorageSync('bindcode') },
                           'params').then(res => {
                           uni.hideLoading();
@@ -221,6 +220,10 @@
                           this.submitLoading = false;
                        });
                     }
                        }
                     });
                     this.submitLoading = false
                  }
               }).catch(e => {
                  this.submitLoading = false