Преглед на файлове

就诊记录:index_0.html
检查检验:index_1.html
用药记录:index_2.html

yezehua преди 6 години
родител
ревизия
c20d0bf605
променени са 3 файла, в които са добавени 167 реда и са изтрити 13 реда
  1. 25 13
      html/profile/html/index.html
  2. 71 0
      html/profile/html/index_1.html
  3. 71 0
      html/profile/html/index_2.html

+ 25 - 13
html/profile/html/index.html

@ -30,24 +30,36 @@
	var redirectUrl = ""
	var pagetype = 5;
	var d = dialog({contentType:'load', skin:'bk-popup'});
	checkUserAgent();
	
	function queryInit(){
	var target = "wx", idCard = ""
	if(queryParam.target == "app") {
		target = queryParam.target
	}
	
	if(target == "wx") {
		checkUserAgent();
	} else {
		idCard = queryParam.demographic_id
		redirect()	
	}
	
	function redirect() {
		var state = encodeURIComponent(JSON.stringify({
			itemIndex: 0,
			target: target
		}))
		redirectUrl = 'http://'+profileServer+'/gateway/authentication/oauth/sso?response_type=token&client_id=P7dIRS0FvX&state='
						+state+'&scope=read&redirect_uri=http://'+profileServer+'/profile/app/mprofile/html/signin.html?idCardNo='+idCard+'&user=tourists'
		
		var idCard = ""
		location.reload(redirectUrl)
	}
	
	function queryInit(){
		getReqPromise("patient/baseinfo", {}, 'json', 'post').then(function(res){
			if(res.status == 200) {
				idCard = res.data && res.data.idcardAll
				if(queryParam.target && queryParam.itemIndex) {
					var state = encodeURIComponent(JSON.stringify({
						itemIndex: queryParam.itemIndex,
						target: queryParam.target
					}))
					redirectUrl = 'http://'+profileServer+'/gateway/authentication/oauth/sso?response_type=token&client_id=P7dIRS0FvX&state='
									+state+'&scope=read&redirect_uri=http://'+profileServer+'/profile/app/mprofile/html/signin.html?idCardNo='+idCard+'&user=tourists'
					
					location.reload(redirectUrl)
				}
				redirect()
			} else {
				dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:res.msg}).show();      
			}

+ 71 - 0
html/profile/html/index_1.html

@ -0,0 +1,71 @@
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="format-detection" content="telephone=no"/>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
    <link rel="stylesheet" href="../../../css/cross.css" type="text/css"/>
    <link rel="stylesheet" href="../../../css/cross.ui.css" type="text/css"/>
    <link rel="stylesheet" type="text/css" href="../../../css/ss-style.css">
    <link rel="stylesheet" type="text/css" href="../../../iconfont/iconfont.css" />
</head>
<body>
</body>
<script type="text/javascript" src="../../../js/jquery/2.1.3/jquery.js"></script>
<script type="text/javascript" src="../../../js/app.js" ></script>
<script type="text/javascript" src="../../../js/mui.min.js" ></script>
<script type="text/javascript" src="../../../js/common_http.js" ></script>
<script type="text/javascript" src="../../../js/weixin_common.js" ></script>
<link rel="stylesheet" type="text/css" href="../../../widget/artDialog/6.0.5/css/ui-dialog.min.css">
<script src="../../../widget/artDialog/6.0.5/js/dialog-plus.min.js"></script>
<script src="../../../js/underscore.js"></script>
<script src="../../../js/es6-promise.js"></script>
<script type="text/javascript">
	var queryParam = GetRequest()
	var redirectUrl = ""
	var pagetype = 5;
	var d = dialog({contentType:'load', skin:'bk-popup'});
	
	var target = "wx", idCard = ""
	if(queryParam.target == "app") {
		target = queryParam.target
	}
	
	if(target == "wx") {
		checkUserAgent();
	} else {
		idCard = queryParam.demographic_id
		redirect()	
	}
	
	function redirect() {
		var state = encodeURIComponent(JSON.stringify({
			itemIndex: 1,
			target: target
		}))
		redirectUrl = 'http://'+profileServer+'/gateway/authentication/oauth/sso?response_type=token&client_id=P7dIRS0FvX&state='
						+state+'&scope=read&redirect_uri=http://'+profileServer+'/profile/app/mprofile/html/signin.html?idCardNo='+idCard+'&user=tourists'
		
		location.reload(redirectUrl)
	}
	
	function queryInit(){
		getReqPromise("patient/baseinfo", {}, 'json', 'post').then(function(res){
			if(res.status == 200) {
				idCard = res.data && res.data.idcardAll
				redirect()
			} else {
				dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:res.msg}).show();      
			}
		}).catch(function(e) {
			console && console.error(e)
		})
	}
</script>
</html>

+ 71 - 0
html/profile/html/index_2.html

@ -0,0 +1,71 @@
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="format-detection" content="telephone=no"/>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
    <link rel="stylesheet" href="../../../css/cross.css" type="text/css"/>
    <link rel="stylesheet" href="../../../css/cross.ui.css" type="text/css"/>
    <link rel="stylesheet" type="text/css" href="../../../css/ss-style.css">
    <link rel="stylesheet" type="text/css" href="../../../iconfont/iconfont.css" />
</head>
<body>
</body>
<script type="text/javascript" src="../../../js/jquery/2.1.3/jquery.js"></script>
<script type="text/javascript" src="../../../js/app.js" ></script>
<script type="text/javascript" src="../../../js/mui.min.js" ></script>
<script type="text/javascript" src="../../../js/common_http.js" ></script>
<script type="text/javascript" src="../../../js/weixin_common.js" ></script>
<link rel="stylesheet" type="text/css" href="../../../widget/artDialog/6.0.5/css/ui-dialog.min.css">
<script src="../../../widget/artDialog/6.0.5/js/dialog-plus.min.js"></script>
<script src="../../../js/underscore.js"></script>
<script src="../../../js/es6-promise.js"></script>
<script type="text/javascript">
	var queryParam = GetRequest()
	var redirectUrl = ""
	var pagetype = 5;
	var d = dialog({contentType:'load', skin:'bk-popup'});
	
	var target = "wx", idCard = ""
	if(queryParam.target == "app") {
		target = queryParam.target
	}
	
	if(target == "wx") {
		checkUserAgent();
	} else {
		idCard = queryParam.demographic_id
		redirect()	
	}
	
	function redirect() {
		var state = encodeURIComponent(JSON.stringify({
			itemIndex: 2,
			target: target
		}))
		redirectUrl = 'http://'+profileServer+'/gateway/authentication/oauth/sso?response_type=token&client_id=P7dIRS0FvX&state='
						+state+'&scope=read&redirect_uri=http://'+profileServer+'/profile/app/mprofile/html/signin.html?idCardNo='+idCard+'&user=tourists'
		
		location.reload(redirectUrl)
	}
	
	function queryInit(){
		getReqPromise("patient/baseinfo", {}, 'json', 'post').then(function(res){
			if(res.status == 200) {
				idCard = res.data && res.data.idcardAll
				redirect()
			} else {
				dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:res.msg}).show();      
			}
		}).catch(function(e) {
			console && console.error(e)
		})
	}
</script>
</html>