|
|
@@ -2,7 +2,7 @@
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
<head>
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
|
- <title>股票信息接口</title>
|
|
|
+ <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>
|
|
|
@@ -16,8 +16,7 @@
|
|
|
$(function(){
|
|
|
$('#btn').click(function(){
|
|
|
var method = $('input[name="method"]').val();
|
|
|
- var index_type = $('input[name="index_type"]').val();
|
|
|
- var date = $('input[name="date"]').val();
|
|
|
+ var code = $('input[name="code"]').val();
|
|
|
var timestamp = $('input[name="timestamp"]').val();
|
|
|
var sign = $.md5(method+timestamp);
|
|
|
$('#sign').val(sign);
|
|
|
@@ -25,9 +24,7 @@
|
|
|
type : 'POST',
|
|
|
data : {
|
|
|
'method' :method,
|
|
|
- 'index_type' :index_type,
|
|
|
- 'date' :date,
|
|
|
-
|
|
|
+ 'code' :code,
|
|
|
'timestamp' :timestamp,
|
|
|
'sign' : sign
|
|
|
},
|
|
|
@@ -68,14 +65,11 @@
|
|
|
</p>
|
|
|
|
|
|
<p>
|
|
|
- <span>1:上证指数,2:深成指数 3:上证50指数 4:沪深300 5:创业板指数 6:科创50指数 </span>
|
|
|
- <input type="text" class="input-text" name="index_type" value=5 />
|
|
|
+ <span>code:</span>
|
|
|
+ <input type="text" class="input-text" name="code" value=399006 />
|
|
|
</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>
|