init
This commit is contained in:
67
web/goodsDetail.jsp
Normal file
67
web/goodsDetail.jsp
Normal file
@@ -0,0 +1,67 @@
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
|
||||
<%@ page language="java" contentType="text/html; charset=utf-8"
|
||||
pageEncoding="utf-8"%>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>锋迷网-商品详情页</title>
|
||||
</head>
|
||||
<body>
|
||||
<%@ include file="header.jsp"%>
|
||||
<div style="margin: 0 auto; width: 90%;">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="#">锋迷网</a></li>
|
||||
<li class="active"><a
|
||||
href="getGoodsListByTn?tn=${goods.typeName}">${goods.typeName}</a></li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-xs-6 col-md-6">
|
||||
<a href="#" class="thumbnail"> <img
|
||||
src="./fmwimages/${goods.picture}" width="560" height="560"
|
||||
alt="${goods.name}" />
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-xs-6 col-md-6">
|
||||
<div class="panel panel-default" style="height: 560px">
|
||||
<div class="panel-heading">商品详情</div>
|
||||
<div class="panel-body">
|
||||
<h3>
|
||||
产品名称:<small>${goods.name}</small>
|
||||
</h3>
|
||||
<div style="margin-left: 10px;">
|
||||
|
||||
<p>
|
||||
市场价格: <span class="text-danger"
|
||||
style="font-size: 15px;">${goods.price}</span> <span
|
||||
class="glyphicon glyphicon-yen"></span>
|
||||
</p>
|
||||
<p>上市时间: ${goods.pubdate}</p>
|
||||
<p>
|
||||
热销指数:
|
||||
<c:forEach begin="1" end="${goods.star}">
|
||||
<img src="image/star_red.gif" alt="star" />
|
||||
</c:forEach>
|
||||
</p>
|
||||
<p>详细介绍:</p>
|
||||
<p> ${goods.intro }</p>
|
||||
<a
|
||||
href="${pageContext.request.contextPath}/addCart?gid=${goods.id}&price=${goods.price}"
|
||||
class="btn btn-warning">加入购物车 <span
|
||||
class="glyphicon glyphicon-shopping-cart"></span></a>
|
||||
<a
|
||||
href="${pageContext.request.contextPath}/getDirectOrder?id=${goods.id}&price=${goods.price}&name=${goods.name}"
|
||||
class="btn btn-warning">直接购买 <span
|
||||
class="glyphicon glyphicon-shopping-cart"></span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 底部 -->
|
||||
<%@ include file="footer.jsp"%>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user