|
|
@@ -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();
|