123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- <!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 accessToken = ""
-
- var target = "wx", idCard = ""
- if(queryParam.target == "app") {
- target = queryParam.target
- }
-
- if(target == "wx") {
- checkUserAgent();
- } else {
- idCard = queryParam.demographic_id
- getReqPromises([
- {
- url: profileServer+'/gateway/authentication/oauth/login',
- data: {client_id:'P7dIRS0FvX', username: 'tourists', password: 'tourists123'},
- reqType: 'post'
- }
- ]).then(function(ress) {
- var res0 = ress[0];
- accessToken = res0.accessToken
- redirect()
- }).catch(function(e) {
- console && console.error(e)
- })
- }
-
- function redirect() {
- var state = encodeURIComponent(JSON.stringify({
- itemIndex: 1,
- target: target,
- filter: "org_code%3D49229004X"
- }))
- redirectUrl = profileServer+'/gateway/authentication/oauth/sso?response_type=token&client_id=P7dIRS0FvX&state='
- +state+'&scope=read&redirect_uri=http://jksr.srswjw.gov.cn:1235/profile/app/mprofile/html/signin.html?idCardNo='+idCard+'&token='+accessToken
-
- location.replace(redirectUrl)
- }
-
- function queryInit(){
- // 验证居民信息是否完善
- checkBaseInfo()
-
- getReqPromises([
- {
- url: profileServer+'/gateway/authentication/oauth/login',
- data: {client_id:'P7dIRS0FvX', username: 'tourists', password: 'tourists123'},
- reqType: 'post'
- },
- {
- url: 'patient/baseinfo',
- data: {},
- reqType: 'post'
- }
- ]).then(function(ress) {
- var res0 = ress[0], res1 = ress[1]
-
- accessToken = res0.accessToken
-
- if(res1.status == 200) {
- idCard = res1.data && res1.data.idcardAll
- redirect()
- } else {
- dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:res1.msg}).show();
- }
- }).catch(function(e) {
- console && console.error(e)
- })
- }
- </script>
- </html>
|