Browse Source

区分微信与APP到页面跳转处理

xiaoyanpeng 6 years ago
parent
commit
1abb6f4ef1
3 changed files with 16 additions and 3 deletions
  1. 6 1
      html/profile/html/index_0.html
  2. 5 1
      html/profile/html/index_1.html
  3. 5 1
      html/profile/html/index_2.html

+ 6 - 1
html/profile/html/index_0.html

@ -52,7 +52,12 @@
		redirectUrl = profileServer+'/gateway/authentication/oauth/sso?response_type=token&client_id=P7dIRS0FvX&state='
						+state+'&scope=read&redirect_uri='+profileServer+'/profile/app/mprofile/html/signin.html?idCardNo='+idCard+'&user=tourists'
		
		location.replace(redirectUrl)
		if(target == "wx") {
			location.replace(redirectUrl)
		} else {
			location.href = redirectUrl
		}
		
	}
	
	function queryInit(){

+ 5 - 1
html/profile/html/index_1.html

@ -52,7 +52,11 @@
		redirectUrl = profileServer+'/gateway/authentication/oauth/sso?response_type=token&client_id=P7dIRS0FvX&state='
						+state+'&scope=read&redirect_uri='+profileServer+'/profile/app/mprofile/html/signin.html?idCardNo='+idCard+'&user=tourists'
		
		location.replace(redirectUrl)
		if(target == "wx") {
			location.replace(redirectUrl)
		} else {
			location.href = redirectUrl
		}
	}
	
	function queryInit(){

+ 5 - 1
html/profile/html/index_2.html

@ -52,7 +52,11 @@
		redirectUrl = profileServer+'/gateway/authentication/oauth/sso?response_type=token&client_id=P7dIRS0FvX&state='
						+state+'&scope=read&redirect_uri='+profileServer+'/profile/app/mprofile/html/signin.html?idCardNo='+idCard+'&user=tourists'
		
		location.replace(redirectUrl)
		if(target == "wx") {
			location.replace(redirectUrl)
		} else {
			location.href = redirectUrl
		}
	}
	
	function queryInit(){