wangguoyu 15 小時之前
父節點
當前提交
21df2eb472
共有 1 個文件被更改,包括 10 次插入1 次删除
  1. 10 1
      pages/Login/clientIndex.vue

+ 10 - 1
pages/Login/clientIndex.vue

@@ -228,7 +228,11 @@
                 cacheManager.set('auth', res.data)
                 store.setIsCanBack(false)
                 gotoPage();
-            }else{
+            }else if(res.data.type ===6){
+				cacheManager.set('auth', res.data)
+				store.setIsCanBack(false)
+				gotoPage2();
+			}else{
                 toast('登录失败,您的身份有误,请联系管理员。')
             }
         }).catch(err => {
@@ -242,6 +246,11 @@
         uni.navigateTo({
             url: `/pages/client/ShouYe/shouye`
         })
+    } 
+	function gotoPage2(){
+        uni.navigateTo({
+            url: `/pages/kehu/shouYe/shouye`
+        })
     }
 
     function getAllImg() {