Browse Source

健康档案

yezehua 6 years ago
parent
commit
6ac839eddb
2 changed files with 68 additions and 2 deletions
  1. 59 0
      html/profile/html/index.html
  2. 9 2
      js/weixin_common.js

+ 59 - 0
html/profile/html/index.html

@ -0,0 +1,59 @@
<!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'});
	checkUserAgent();
	
	function queryInit(){
		
		var idCard = ""
		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)
				}
			} else {
				dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:res.msg}).show();      
			}
		}).catch(function(e) {
			console && console.error(e)
		})
	}
</script>
</html>

+ 9 - 2
js/weixin_common.js

@ -16,6 +16,8 @@ if(publish_version){
    var wxurl = "http%3a%2f%2fwww.srijk.com%2fwlyy%2fwx%2fhtml";
    var imurl="http://58.22.123.195:3000";
    var imgUrlDomain = 'http://srijk.yihu.com/';
    
    var profileServer = ""
}else{
	//测试环境
@ -25,8 +27,8 @@ if(publish_version){
//	var server = "http://192.168.131.102:8081/";//伟达
//	var server = "http://192.168.131.127:8070/";//逸祥
//	var server = "http://192.168.131.133:8080/";//文杰
//  var server = "http://192.168.131.250:8081/"; 
    // var server = "http://192.168.131.131:8080/"; //文斌 
 	//var server = "http://192.168.131.250:8081/"; 
    //var server = "http://192.168.131.131:8080/"; //文斌 
	var appId = "wx0a06b75a40b28f2a";
    var urlName = "wlyy";
@ -41,6 +43,9 @@ if(publish_version){
    var imurl="http://172.19.103.72:3000";
//  var imurl="http://192.168.131.24:3000";//仕杰
    var imgUrlDomain = 'http://172.19.103.54/';
    
    // 健康档案(上饶)服务地址
    var profileServer = "http://172.19.103.70:1235"
	
}
@ -423,6 +428,8 @@ var pageUrl  = {
    "3": "../../yszx/html/select-consult-doctor.html",
    //个人中心
    "4": "../../grzx/html/my-detail.html",
    // 健康档案
    "5": "../../profile/html/index.html"
///**签约管理首页**/  "-1":"../../qygl/html/signing-doctors.html",//签约管理首页
///**医生咨询首页**/     1:"../../yszx/html/doctor-consultation.html",
///**医生指导首页**/     3:"../../yszd/html/doctor-guidance.html",//医生指导首页