Ver Fonte

Merge branch 'bug修复/停用账号还可以登录问题' into 楚楚/楚楚master

# Conflicts:
#	utils/Http.js
xiaohaizhao há 2 anos atrás
pai
commit
4befabfbd8
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      pages/login/modules/login.js

+ 4 - 0
pages/login/modules/login.js

@@ -5,6 +5,10 @@ function loginMsg(res) {
     wx.setStorageSync('account_list', res.account_list);
     if (res.account_list.length == 1) {
         let item = res.account_list[0];
+        if (item.status == "INACTIVE") return wx.showToast({
+            title: '该账号已被停用,无法登录',
+            icon: "none"
+        });
         wx.setStorageSync('userrole', item.usertype == 1 ? '业务员' : '经销商');
         wx.setStorageSync('userMsg', item)
         query_userauth();