WebContent/WEB-INF/views/home/cart/list.jsp
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@include file="../common/header.jsp"%>
<link rel="stylesheet" href="../resources/home/css/shop_gouwuche.css" type="text/css" />
<script type="text/javascript" src="../resources/home/js/jquery.goodnums.js" ></script>
<script type="text/javascript" src="../resources/home/js/shop_gouwuche.js" ></script>
<div class="shop_gwc_bd clearfix">
<!-- 在具体实现的时候,根据情况选择其中一种情况 -->
<!-- 购物车为空 -->
<c:if test="${empty cartList }">
<div class="empty_cart mb10">
<div class="message">
<p>购物车内暂时没有商品,您可以<a href="../home/index">去首页</a>挑选喜欢的商品</p>
</div>
</div>
</c:if>
<!-- 购物车为空 end-->
<c:if test="${not empty cartList }">
<!-- 购物车有商品 -->
<div class="shop_gwc_bd_contents clearfix">
<!-- 购物流程导航 -->
<div class="shop_gwc_bd_contents_lc clearfix">
<ul>
<li class="step_a hover_a">确认购物清单</li>
<li class="step_b">确认收货人资料及送货方式</li>
<li class="step_c">购买完成</li>
</ul>
</div>
<!-- 购物流程导航 End -->
<!-- 购物车列表 -->
<table style="font-size:12px;">
<thead>
<tr>
<th colspan="2"><span>商品</span></th>
<th><span>单价(元)</span></th>
<th><span>数量</span></th>
<th><span>小计</span></th>
<th><span>操作</span></th>
</tr>
</thead>
<tbody>
<c:forEach items="${cartList }" var="cart">
<tr>
<td class="gwc_list_pic"><a href="../product/detail?id=${cart.productId }"><img src="${cart.imageUrl }" width="60px" /></a></td>
<td class="gwc_list_title"><a href="../product/detail?id=${cart.productId }">${cart.name } </a></td>
<td class="gwc_list_danjia"><span>¥<strong id="danjia_001">${cart.price }</strong></span></td>
<td class="gwc_list_shuliang">
<span>
<a class="good_num_jian" cid="${cart.id }" price="${cart.price }" ty="-" valId="goods_${cart.productId }" href="javascript:void(0);">-</a>
<input style="width:30px;text-align:center" readonly="readonly" type="text" value="${cart.num }" id="goods_${cart.productId }" class="good_nums" />
<a href="javascript:void(0);" cid="${cart.id }" price="${cart.price }" ty="+" class="good_num_jia" valId="goods_${cart.productId }">+</a>
</span>
</td>
<td class="gwc_list_xiaoji"><span>¥<strong class="good_xiaojis">${cart.money }</strong></span></td>
<td class="gwc_list_caozuo"><a href="javascript:void(0);" class="product_favorite" pid="${cart.productId }">收藏</a><a href="javascript:void(0);" class="cart_delete_btn" cid="${cart.id }">删除</a></td>
</tr>
</c:forEach>
</tbody>
<tfoot>
后面还有 121 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。