|
@@ -4,22 +4,6 @@
|
|
|
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
|
|
|
<jsp:include page="${data._INCLUDE}/header.jsp"></jsp:include>
|
|
|
<script type="text/javascript">
|
|
|
-$( function() {
|
|
|
-// setTimeout( function(){
|
|
|
-// $("#nonface").submit();
|
|
|
-// }, 2000 );
|
|
|
-
|
|
|
-// var gsWin = window.open("","nonface");
|
|
|
-// var frm =document.nonface;
|
|
|
-// frm.action = 'https://lemon.medihere.com/app/vc';
|
|
|
-// frm.target ="nonface";
|
|
|
-// frm.method ="post";
|
|
|
-// frm.submit();
|
|
|
-
|
|
|
-
|
|
|
-// $("#nonface").submit();
|
|
|
-// window.close();
|
|
|
-});
|
|
|
function startClinic(){
|
|
|
var win = window.open("","nonface");
|
|
|
var frm = document.nonface;
|
|
@@ -29,6 +13,36 @@ function startClinic(){
|
|
|
frm.submit();
|
|
|
}
|
|
|
|
|
|
+function loadApp(){
|
|
|
+ var appUrl = "";
|
|
|
+
|
|
|
+ if ( checkDevice() == "android" ) {
|
|
|
+ appUrl = "Intent://ctc.lemonhc.com#Intent;scheme=mcarectc;package=com.lemonhc.ctc;end";
|
|
|
+ } else if ( checkDevice() == "ios" ) {
|
|
|
+ appUrl = "mcarectc://";
|
|
|
+ } else {
|
|
|
+ alertBox({ txt : '지원하지 않는 단말기입니다.' });
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ location.href = appUrl;
|
|
|
+}
|
|
|
+
|
|
|
+function getParameters(key) {
|
|
|
+ let a = window.location.search.substr(1).split('&');
|
|
|
+ if (!a) return {};
|
|
|
+ let b = {};
|
|
|
+ for (let i = 0; i < a.length; ++i) {
|
|
|
+ let p = a[i].split('=', 2);
|
|
|
+ if (p.length === 1) {
|
|
|
+ b[p[0]] = '';
|
|
|
+ } else {
|
|
|
+ b[p[0]] = decodeURIComponent(p[1].replace(/\+/g, ''));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return b[key];
|
|
|
+}
|
|
|
+
|
|
|
</script>
|
|
|
</head>
|
|
|
<body style="overflow:hidden">
|
|
@@ -46,7 +60,7 @@ function startClinic(){
|
|
|
<div class="container">
|
|
|
<div class="header">
|
|
|
<div class="previous">
|
|
|
- <a href="javascript:;" onclick="window.close();">이전</a>
|
|
|
+ <a href="javascript:;" onclick="loadApp();">이전</a>
|
|
|
</div>
|
|
|
<div class="title">비대면 진료</div>
|
|
|
</div>
|
|
@@ -64,9 +78,9 @@ function startClinic(){
|
|
|
|
|
|
<div class="btn_group">
|
|
|
<ul>
|
|
|
- <li style="font-size:0;">
|
|
|
- <button type="button" onclick="startClinic();" class="confirm" style="width:50%;display:inline-block;"><span class="check">진료시작하기</span></button>
|
|
|
- <button type="button" onclick="window.close();" class="confirm" style="width:50%;display:inline-block;background:#DC5353;"><span class="check">종료하기</span></button>
|
|
|
+ <li style="font-size:0;height:50px;">
|
|
|
+ <button type="button" onclick="startClinic();" class="confirm" style="height:52px;width:50%;display:inline-block;"><span class="check">진료시작하기</span></button>
|
|
|
+ <button type="button" onclick="loadApp();" class="confirm" style="height:52px;width:50%;display:inline-block;background:#DC5353;"><span class="check">종료하기</span></button>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|