|
|
@ -8,11 +8,57 @@
|
|
|
|
<meta content="black" name="apple-mobile-web-app-status-bar-style"/>
|
|
|
|
<meta content="black" name="apple-mobile-web-app-status-bar-style"/>
|
|
|
|
<meta content="telephone=no" name="format-detection"/>
|
|
|
|
<meta content="telephone=no" name="format-detection"/>
|
|
|
|
<link href="css/index.css" rel="stylesheet" type="text/css"/>
|
|
|
|
<link href="css/index.css" rel="stylesheet" type="text/css"/>
|
|
|
|
<script type="text/javascript" src="js/jquery.min.js" ></script>
|
|
|
|
<script type="text/javascript" src="http://libs.baidu.com/jquery/2.1.4/jquery.min.js" ></script>
|
|
|
|
<script type="text/javascript" src="js/slider.js" ></script>
|
|
|
|
<script type="text/javascript" src="js/slider.js" ></script>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
$(document).ready(function () {
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
|
|
url: "http://localhost:8080/search/count",
|
|
|
|
|
|
|
|
type: "post",
|
|
|
|
|
|
|
|
dataType: "json",
|
|
|
|
|
|
|
|
success: function(data){
|
|
|
|
|
|
|
|
/*这个方法里是ajax发送请求成功之后执行的代码*/
|
|
|
|
|
|
|
|
showData(data);//我们仅做数据展示
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
error: function(msg){
|
|
|
|
|
|
|
|
alert("ajax连接异常:"+msg);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//展示数据
|
|
|
|
|
|
|
|
function showData(data) {
|
|
|
|
|
|
|
|
$("#num").empty();
|
|
|
|
|
|
|
|
for (var i = 0; i < data.length; i++) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var str=" <h2 >"+data[i].productName+"</h2>"
|
|
|
|
|
|
|
|
//var $h2 =$(str);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#num").append(str);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function AutoScroll(obj) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(obj).find("ul:first").animate({
|
|
|
|
|
|
|
|
marginTop: "-22px"
|
|
|
|
|
|
|
|
}, 500, function() {
|
|
|
|
|
|
|
|
$(this).css({
|
|
|
|
|
|
|
|
marginTop: "0px"
|
|
|
|
|
|
|
|
}).find("li:first").appendTo(this);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
|
|
|
setInterval('AutoScroll("#aui-show")', 3000)
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
|
|
|
|
<section class="aui-flexView">
|
|
|
|
<section class="aui-flexView">
|
|
|
|
<header class="aui-navBar aui-navBar-fixed">
|
|
|
|
<header class="aui-navBar aui-navBar-fixed">
|
|
|
|
<a href="javascript:;" class="aui-navBar-item">
|
|
|
|
<a href="javascript:;" class="aui-navBar-item">
|
|
|
@ -115,9 +161,14 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="divHeight" ></div>
|
|
|
|
<div class="divHeight" ></div>
|
|
|
|
<div>
|
|
|
|
<div class="aui-borrow-head">
|
|
|
|
<table id = "tab"></table>
|
|
|
|
<div class="aui-borrow-head-title">
|
|
|
|
</div>
|
|
|
|
<div id="num"></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="aui-borrow-head-ad">
|
|
|
|
|
|
|
|
<img src="">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>;
|
|
|
|
<!--<div class="aui-borrow-head-title">-->
|
|
|
|
<!--<div class="aui-borrow-head-title">-->
|
|
|
|
<!--<h2>标题1</h2>-->
|
|
|
|
<!--<h2>标题1</h2>-->
|
|
|
|
<!--</div>-->
|
|
|
|
<!--</div>-->
|
|
|
@ -164,55 +215,6 @@
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</footer>
|
|
|
|
</footer>
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
function AutoScroll(obj) {
|
|
|
|
|
|
|
|
$(obj).find("ul:first").animate({
|
|
|
|
|
|
|
|
marginTop: "-22px"
|
|
|
|
|
|
|
|
}, 500, function() {
|
|
|
|
|
|
|
|
$(this).css({
|
|
|
|
|
|
|
|
marginTop: "0px"
|
|
|
|
|
|
|
|
}).find("li:first").appendTo(this);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
|
|
|
setInterval('AutoScroll("#aui-show")', 3000)
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(function () {
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
|
|
url: "/search/showIndex",
|
|
|
|
|
|
|
|
type: "post",
|
|
|
|
|
|
|
|
dataType: "json",
|
|
|
|
|
|
|
|
success: function(data){
|
|
|
|
|
|
|
|
/*这个方法里是ajax发送请求成功之后执行的代码*/
|
|
|
|
|
|
|
|
showData(data);//我们仅做数据展示
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
error: function(msg){
|
|
|
|
|
|
|
|
alert("ajax连接异常:"+msg);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//展示数据
|
|
|
|
|
|
|
|
function showData(data) {
|
|
|
|
|
|
|
|
var str = "";//定义用于拼接的字符串
|
|
|
|
|
|
|
|
for (var i = 0; i < data.length; i++) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
str= " <div class=\"aui-borrow-head\">\n" +
|
|
|
|
|
|
|
|
" <div class=\"aui-borrow-head-title\">\n" +
|
|
|
|
|
|
|
|
" <h2>"+data[i].productNum+"</h2>\n" +
|
|
|
|
|
|
|
|
" </div>\n" +
|
|
|
|
|
|
|
|
" <div class=\"aui-borrow-head-ad\">\n" +
|
|
|
|
|
|
|
|
" <img src=\"\">\n" +
|
|
|
|
|
|
|
|
" </div>\n" +
|
|
|
|
|
|
|
|
" </div>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// str = "<tr><td>"+data[i].productNum+"</td></tr>";
|
|
|
|
|
|
|
|
//追加到table中
|
|
|
|
|
|
|
|
$("#tab").append(str); }
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
</html>
|
|
|
|