| 
					
				 | 
			
			
				@@ -69,6 +69,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     startListening() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		var than = this 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.timer = setInterval(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         var pages = getCurrentPages(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         var page = pages[pages.length - 1]; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -86,12 +87,19 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           tourl = tourl.substring(tourl.indexOf("ticket") + 7, tourl.length); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           var pos = tourl.indexOf("&"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           if (pos != -1) tourl = tourl.substring(0, pos); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          uni.navigateTo({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            url: "/pages/login/login", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.loginCas(tourl); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        console.log("=======ticket======", tourl); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		uni.navigateTo({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		  url: "/pages/login/login?ticket="+tourl, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		  // setTimeout(()=>{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    //       uni.navigateTo({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    //         url: "/pages/index/index", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    //       }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		  // },10000) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          // than.loginCas(tourl); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }, 1000); // 间隔3秒检查一次 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }, 200); // 间隔3秒检查一次 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     stopListening() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       if (this.timer) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -102,12 +110,17 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     loginCas(value) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       var than = this; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      var ser = this.src; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	   
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	  this.$tip.success(configService.apiUrl); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	  var ser = configService.apiUrl; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	  ser = tourl.replace(9999, 8092); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.$tip.success(ser); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       new Promise((resolve, reject) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         api 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           .validateCasLogin("", "?ticket=" + value + "&service=" + ser) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           .then((response) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            debugger; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              than.$tip.success(response.message); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			   
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // console.log("response===>response", JSON.stringify(response)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // if (response.data.code == 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // 	uni.setStorageSync(ACCESS_TOKEN, response.data.result.token); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -118,16 +131,16 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             uni.setStorageSync(ACCESS_TOKEN, result.token); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             uni.setStorageSync(USER_INFO, userInfo); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             console.log("userInfo=" + userInfo); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.$store.commit("SET_TOKEN", result.token); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            than.$store.commit("SET_TOKEN", result.token); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             console.log("result.token=" + result.token); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.$store.commit("SET_DICT", result.sysAllDictItems); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.$store.commit("SET_AVATAR", userInfo.avatar); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.$store.commit("SET_NAME", { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            than.$store.commit("SET_DICT", result.sysAllDictItems); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            than.$store.commit("SET_AVATAR", userInfo.avatar); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            than.$store.commit("SET_NAME", { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               username: userInfo.username, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               realname: userInfo.realname, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            console.log("getPermissionList-----------"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              than.$tip.success("loginCas="); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             than.getPermissionList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           .catch((error) => { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -142,6 +155,8 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //获取权限菜单 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     getPermissionList() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      var than = this; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.$tip.success("getPermissionList"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       console.log("getPermissionList========================="); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       new Promise((resolve, reject) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         api 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -153,7 +168,8 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               let dataBtn = response.data.result.appauth; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               uni.setStorageSync("menuPermission", data); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               uni.setStorageSync("btnPermission", dataBtn); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              this.$tip.success("登录成功!"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              than.$tip.success("登录成功!"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              than.$tip.success("navigateTo="+pages/index/index); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               uni.navigateTo({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 url: "/pages/index/index", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               }); 
			 |