2017-07-14 15:04:24 +08:00
|
|
|
<!DOCTYPE html>
|
2017-07-12 17:01:27 +08:00
|
|
|
<html>
|
2017-07-14 15:04:24 +08:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
|
<title>my yApi</title>
|
2017-07-14 15:30:22 +08:00
|
|
|
<link rel="stylesheet" href="http://127.0.0.1:4000/yapi/prd/index@dev.css">
|
2017-07-20 15:49:36 +08:00
|
|
|
<script src="https://qsso.corp.qunar.com/lib/qsso-auth.js"></script>
|
2017-07-14 15:04:24 +08:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="yapi" style="height: 100%;"></div>
|
2017-07-14 15:30:22 +08:00
|
|
|
<script src="http://127.0.0.1:4000/yapi/prd/index@dev.js"></script>
|
2017-07-14 15:04:24 +08:00
|
|
|
|
|
|
|
<!--
|
2017-07-12 17:01:27 +08:00
|
|
|
<button id="qsso-login">qsso登录</button>
|
|
|
|
<script src="https://qsso.corp.qunar.com/lib/qsso-auth.js"></script>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
QSSO.attach('qsso-login','/user/login_by_token');
|
|
|
|
var xhr = new XMLHttpRequest();
|
|
|
|
xhr.open('GET', '/user/status')
|
|
|
|
xhr.onload = function(e){
|
|
|
|
if(this.status == 200){
|
|
|
|
alert(this.responseText)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
xhr.send()
|
|
|
|
|
2017-07-14 15:04:24 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<html>
|
2017-07-12 17:01:27 +08:00
|
|
|
|
2017-07-14 15:04:24 +08:00
|
|
|
-->
|
|
|
|
</body>
|
|
|
|
</html>
|