MvcBookStore/Views/ShoppingCart/Index.cshtml
(完整代码) 1KB@model MvcBookStore.ViewModels.ShoppingCartViewModel
@{
ViewBag.Title = "购物车";
}
<h2>
<b>我的购物车:</b>
</h2>
<table>
<tr>
<th>
书名
</th>
<th>
价格
</th>
<th>
数量
</th>
<th></th>
</tr>
@foreach (var item in Model.CartItems)
{
<tr id="row-@item.RecordId">
<td>
@Html.ActionLink(item.Books.Title, "Details", "Store", new { id = item.BookId },null)
</td>
<td>
@item.Books.Price
</td>
<td id="item-count-@item.RecordId">
@item.Count
</td>
<td>
<a class="RemoveLink" href="#" data-id="@item.RecordId">从购物车移除</a>
</td>
</tr>
}
<tr>
<td>总价</td>
<td></td>
<td></td>
<td>
@Model.CartTotal
</td>
</tr>
</table>
<div id="update-message" > </div>
<div id="cart-status"></div>
<p class=" button ">
@Html.ActionLink("去结算","AddressAndPayment","CheckOut")
</p>
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。