Browse Source

修复bug

xiaohaizhao 1 year ago
parent
commit
c840cbdc9c
2 changed files with 6 additions and 1 deletions
  1. 4 0
      pages/login/modules/login.js
  2. 2 1
      utils/Http.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();

+ 2 - 1
utils/Http.js

@@ -5,7 +5,8 @@ class HTTP {
 			this.baseUrl = "https://lsa.cnyunl.com";
 		} else {
 			// this.baseUrl = "https://lsa.cnyunl.com";
-			this.baseUrl = "http://61.164.207.46:8300";
+			// this.baseUrl = "http://61.164.207.46:8300";
+			this.baseUrl = "https://cucu.cnyunl.com:8079";
 		}
 		console.log("接口地址:", this.baseUrl)
 	}