Ver código fonte

Create api_boniu_get_stock_info.html

wanggangtao 5 anos atrás
pai
commit
c223271915
1 arquivos alterados com 95 adições e 0 exclusões
  1. 95 0
      api/v1.0/api_boniu_get_stock_info.html

+ 95 - 0
api/v1.0/api_boniu_get_stock_info.html

@@ -0,0 +1,95 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+    <title>股票信息接口</title>
+    <script type="text/javascript" src="js/jquery.1.9.1.min.js"></script>
+    <script type="text/javascript" src="js/func.common.js"></script>
+    <script type="text/javascript" src="js/func.js"></script>
+    <script type="text/javascript" src="js/jquery.md5.js">//$.md5()</script>
+    <script type="text/javascript" src="js/jquery.base64.js">//$.base64.encode()</script>
+    <script src="js/c.js" type="text/javascript"></script>
+    <script src="js/urchin.js" type="text/javascript"></script>
+    <link href="css/s.css" type="text/css" rel="stylesheet">
+    <link href="css/base.css" type="text/css" rel="stylesheet">
+    <script type="text/javascript">
+        $(function(){
+            $('#btn').click(function(){
+                var method = $('input[name="method"]').val();
+                var pagesize = $('input[name="pagesize"]').val();
+                var count  = $('input[name="count"]').val();
+                var page = $('input[name="page"]').val();
+                var timestamp = $('input[name="timestamp"]').val();
+
+                var sign = $.md5(method+timestamp);
+                $('#sign').val(sign);
+                $.ajax({
+                    type         : 'POST',
+                    data         : {
+                        'method' :method,
+                        'pagesize' :pagesize,
+                        'page'   : page,
+                        'timestamp' :timestamp,
+                        'sign'   : sign
+                    },
+                    url : "../api.php",
+                    beforeSend :  function(data){
+
+                        $('#Canvas').html('<p>请求处理中...</p>');
+                    },
+                    success :     function(data){
+                        alert(data);
+                        Process(data);
+                    },
+                    error :       function(request, errtext, e){
+                        $('#Canvas').html('<p><b>发生错误</b></p><p>'+request.status+'<br/>'+errtext+'</p>');
+                    }
+                });
+            });
+        });
+    </script>
+</head>
+<body>
+<div id="head"><p>数据中心向决策决策系统股票信息</p></div>
+<div id="content">
+    <div id="left">
+        <div class ="message"><p>接口返回:</p></div>
+        <div id="Canvas" class="Canvas"></div>
+    </div>
+    <div id="right">
+        <div class ="message"><p>请求数据:</p></div>
+        <form>
+            <p>
+                <span>method:</span>
+                <input type="text" class="input-text"  name="method" value="api_boniu_get_stock_info"/>
+            </p>
+
+            <p>
+                <span>timestamp:</span>
+                <input type="text" class="input-text"  name="timestamp" value="11111111"/>
+            </p>
+
+            <p>
+                <span>pagesize:</span>
+                <input type="text" class="input-text"  name="pagesize" value="10"/>
+            </p>
+
+            <p>
+                <span>page:</span>
+                <input type="text" class="input-text"  name="page" value="1"/>
+            </p>
+
+
+
+            <p>
+
+            </p>
+            <p><span>校验码:</span><input type="text" class="input-text" id="sign" readonly/></p>
+            <p><button class="button success small" id="btn" type="button">发送请求</button></p>
+        </form>
+    </div>
+</div>
+
+
+</body>
+</html>