You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
252 lines
9.3 KiB
252 lines
9.3 KiB
5 years ago
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
|
<title>产品介绍</title>
|
||
|
<link href="css/bootstrap.min.css" rel="stylesheet">
|
||
|
<link rel="stylesheet" href="qianduan/css/main.css">
|
||
|
<script src="js/bootstrap.min.js"></script>
|
||
|
<script src="js/jquery-3.3.1.min.js"></script>
|
||
|
<![endif]-->
|
||
|
<script>
|
||
|
function sendAjaxPost(){
|
||
|
let json = {
|
||
|
}
|
||
|
$.ajax({
|
||
|
type: "POST",
|
||
|
url: "loadBooks",
|
||
|
contentType: "application/json; charset=utf-8",
|
||
|
data: JSON.stringify(json), /*传给后端的数据格式json*/
|
||
|
dataType: "json", /*后端返回的数据格式json*/
|
||
|
success: function(data){
|
||
|
json = eval(data);
|
||
|
for (var i = 0; i < json.length; i++) {
|
||
|
//alert(json[i].bookId + " " +json[i].imageurl);
|
||
|
document.getElementById(i).src = json[i].imageurl;
|
||
|
}
|
||
|
},
|
||
|
error: function (message) {
|
||
|
alert(message);
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
</script>
|
||
|
<script>
|
||
|
function sendBook(bookid){
|
||
|
$.ajax({
|
||
|
type: "POST",
|
||
|
url: "bookIntro"+"?BookId="+bookid,
|
||
|
contentType: "application/json; charset=utf-8",
|
||
|
});
|
||
|
}
|
||
|
</script>
|
||
|
</head>
|
||
|
<body onload="sendAjaxPost()">
|
||
|
<div class="top-nav">
|
||
|
<div class="container clear-float">
|
||
|
<div class="fl">
|
||
|
<a class="item" href="#">首页</a>
|
||
|
</div>
|
||
|
<div class="fr">
|
||
|
<a class="item" href="#">购物车</a>
|
||
|
<a class="item" href="#">我的订单</a>
|
||
|
<a class="item" href="#">收藏夹</a>
|
||
|
<a class="item" href="#">登录</a>
|
||
|
<a class="item" href="#">注册</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="header clear-float">
|
||
|
<div class="container">
|
||
|
<div class="col-2 logo">
|
||
|
<!-- <img src="./.idea/img/未标题-1.jpg">-->
|
||
|
<div>
|
||
|
<div class="span-1" style="line-height: 32px;font-size: 40px;color:#dd182b ;font-weight: 800;margin-top: 5px;">闲书网</div>
|
||
|
<div class="span-2" style="font-size: 12px;color:black ;font-weight: 600;">买旧书,上闲书</div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
<div class="col-5 search-bar">
|
||
|
<input type="text">
|
||
|
<button>搜索</button>
|
||
|
</div>
|
||
|
<div class="col-3 cart">
|
||
|
<a href="#">我的购物车</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="main-promote clear-float">
|
||
|
<div class="container">
|
||
|
<div class="col-2 cat">
|
||
|
<div class="item"><a href="#" >小说</a> / <a href="#">文学</a> </div>
|
||
|
<div class="item"><a href="#" >期刊</a> / <a href="#">报纸</a> </div>
|
||
|
<div class="item"><a href="#" >历史</a> / <a href="#">地理</a> </div>
|
||
|
<div class="item"><a href="#" >政治</a> / <a href="#">法律</a> </div>
|
||
|
<div class="item"><a href="#" >哲学</a> / <a href="#">心理</a> </div>
|
||
|
<div class="item"><a href="#" >经济</a> / <a href="#">社科</a> </div>
|
||
|
<div class="item"><a href="#" >童书</a> / <a href="#">生活</a> </div>
|
||
|
<div class="item"><a href="#" >工程技术</a> / <a href="#">互联网</a> </div>
|
||
|
<div class="item"><a href="#" >自然科学</a> / <a href="#">医药卫生</a> </div>
|
||
|
<div class="item"><a href="#" >教材</a> / <a href="#">教辅</a> </div>
|
||
|
<div class="item"><a href="#" >考试</a> / <a href="#">计算机</a> </div>
|
||
|
</div>
|
||
|
<div class="col-6">
|
||
|
<div class="slider">
|
||
|
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
|
||
|
<!-- Indicators -->
|
||
|
<ol class="carousel-indicators">
|
||
|
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
|
||
|
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
|
||
|
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
|
||
|
</ol>
|
||
|
|
||
|
<!-- Wrapper for slides -->
|
||
|
<div class="carousel-inner" role="listbox">
|
||
|
<div class="item active">
|
||
|
<img src="qianduan/img/zhu.jpg" alt="...">
|
||
|
<p>pige </p>
|
||
|
</div>
|
||
|
<div class="item">
|
||
|
<img src="qianduan/img/zhu_02.jpg" alt="...">
|
||
|
<div class="carousel-caption">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="item">
|
||
|
<img src="qianduan/img/zhu_03.jpg" alt="...">
|
||
|
<div class="carousel-caption">
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<!-- Controls -->
|
||
|
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
|
||
|
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
|
||
|
<span class="sr-only">Previous</span>
|
||
|
</a>
|
||
|
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
|
||
|
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
|
||
|
<span class="sr-only">Next</span>
|
||
|
</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="sub-promote">
|
||
|
<div class="col-5">
|
||
|
<a href="pro-int.html"><img src="qianduan/img/zhucuxiao_01.jpg"></a>
|
||
|
</div>
|
||
|
<div class="col-5">
|
||
|
<img src="qianduan/img/zhucuxiao_02.jpg">
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-2 info" >
|
||
|
<div class="auth clear-float">
|
||
|
<div class="avatar"></div>
|
||
|
你好,欢迎剁手~
|
||
|
</div>
|
||
|
<div class="anno">
|
||
|
<div class="title"> 公告</div>
|
||
|
<div class="content">
|
||
|
闲书网目前仅处于测试阶段,很多功能尚未完善,会在后续版本中逐步完善~
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div class="container">
|
||
|
<div class="cat-promote clear-float">
|
||
|
<div class="title" >五折专区</div>
|
||
|
<div class="content">
|
||
|
<div class="col-2 item">
|
||
|
<div class="card">
|
||
|
<img id="0" onclick="sendBook(0)" alt="...">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-3 item">
|
||
|
<div class="card">
|
||
|
<img id="1" alt="...">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-2 item">
|
||
|
<div class="card">
|
||
|
<img id="2" alt="...">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-3 item">
|
||
|
<div class="card">
|
||
|
<img id="3" alt="...">
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
<div class="cat-promote clear-float">
|
||
|
<div class="title" >必读经典</div>
|
||
|
<div class="content">
|
||
|
<div class="col-2 item">
|
||
|
<div class="card">
|
||
|
<img id="4" alt="...">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-3 item">
|
||
|
<div class="card">
|
||
|
<img id="5" alt="...">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-2 item">
|
||
|
<div class="card">
|
||
|
<img id="6" alt="...">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-3 item">
|
||
|
<div class="card">
|
||
|
<img id="7" alt="...">
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
<div class="cat-promote clear-float">
|
||
|
<div class="title" >9.9元包邮</div>
|
||
|
<div class="content">
|
||
|
<div class="col-2 item">
|
||
|
<div class="card">
|
||
|
<img id="8" alt="...">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-3 item">
|
||
|
<div class="card">
|
||
|
<img id="9" alt="...">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-2 item">
|
||
|
<div class="card">
|
||
|
<img id="10" alt="...">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-3 item">
|
||
|
<div class="card">
|
||
|
<img id="11" alt="...">
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="footer clear-float">
|
||
|
<div class="container">
|
||
|
<div >
|
||
|
@闲书网
|
||
|
</div>
|
||
|
<a href="#">关于我们</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|