Commit c08a35de authored by yangyuxin's avatar yangyuxin

更正index

parent 123e3ed2
......@@ -36,7 +36,6 @@
</select>
</div>
</div> -->
<div style="padding-top: 15px;">
<!-- <span>申报日期起止:</span>
......@@ -72,6 +71,9 @@
</form>
<input type='hidden' name='data' value="${djxh}" id="djxh">
<input type='hidden' name='data' value="${token}" id="token">
</div>
</div>
</div>
<script src="/static/tools/js/jquery-1.11.3.js?v=1.1"></script>
<script src="/static/tools/js/jquery.nicescroll.js?v=1.1"></script>
<script src="/static/tools/js/bootstrap.js?v=1.1"></script>
......@@ -81,14 +83,44 @@
<script src="/static/biz/amend_grid.js?v=1.0"></script>
<script>
// <!-- // 使用 el 表达式,将返回的信息写到此处,然后调用页面绘制方法绘制页面
var companyInfo = ${json};
// var companyInfo = ${json};
// if (companyInfo.success) {
// var initpage = initPage(companyInfo.bean);
// } else {
// alertWarning("请求失败!");
// // 弹出错误对话框
// }
// -->
var initpage;
$(function(){
//
var url = "http://localhost:7070"
$.ajax({
type: "GET",
url: url + "/online_report/declare",
dataType: "json", // 请求方式为jsonp
// async: false,
data: {
djxh: localStorage.getItem("djxh")
},
success: function (data) { //客户端jquery预先定义好的callback函数,成功获取跨域服务器上的json数据后,会动态执行这个callback函数
//el表达式变jq
// $("#token").attr("value","");
var companyInfo = data;
$("#djxh").attr("value", companyInfo.djxh);
if (companyInfo.success) {
var initpage = initPage(companyInfo.bean);
initpage = initPage(companyInfo.bean);
} else {
alertWarning("请求失败!");
// 弹出错误对话框
}
// -->
},
error: function(xhr){
//jsonp 方式此方法不被触发
console.log("=======error======================")
}
})
})
</script>
</body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment