Ver Fonte

Merge branch '区域经理不允许登录' into 楚楚/2.4.1

xiaohaizhao há 1 ano atrás
pai
commit
6426d14229
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      pages/login/modules/login.js

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

@@ -9,6 +9,11 @@ function loginMsg(res) {
             title: '该账号已被停用,无法登录',
             title: '该账号已被停用,无法登录',
             icon: "none"
             icon: "none"
         });
         });
+        if (item.usertype == 2) return wx.showModal({
+            title: '提示',
+            content: '该账号为区域经理,请使用云链E营销小程序登录',
+            showCancel: false
+        })
         wx.setStorageSync('userrole', item.usertype == 1 ? '业务员' : '经销商');
         wx.setStorageSync('userrole', item.usertype == 1 ? '业务员' : '经销商');
         wx.setStorageSync('userMsg', item)
         wx.setStorageSync('userMsg', item)
         query_userauth();
         query_userauth();