shzxscmvc/Views/Cart/Index.cshtml

(完整代码) 1KB

@model shzxscmvc.Models.CartIndexViewModel

@{
    ViewBag.Title = "Index";
}

<h2>Your Cart</h2>
<table width="90%" align="center">
    <thead><tr>        
        <th align="left">Item</th>
        <th align="center">bassess</th>
        <th align="center">Quantity</th>
        <th align="right">Price</th>
        <th align="left">buildtime</th>
        <th align="right">Subtotal</th>
    </tr></thead>
<tbody>
        @foreach(var line in Model.CartItems) {
            <tr>                
                <td align="left">@line.goods.gname</td>
                <td align="center">@line.bassess</td>
                <td align="center">@line.Count</td>
                <td align="right">@line.goods.price.ToString("c")</td>
                <td align="left">@line.DateCreated.ToString()</td>
                <td align="right">@((line.Count * line.goods.price).ToString("c"))</td>
                <td>
                    @using (Html.BeginForm("RemoveFromCart", "Cart"))
{
                        @Html.Hidden("goodsId", line.goods.Id)
                        @Html.HiddenFor(x => x.ReturnUrl)
                        <input class="actionButtons" type="submit" value="Remove" />
}
                </td>
             </tr>
        }
    </tbody>
    <tfoot><tr>
        <td colspan="4" align="right">Total:</td>
        <td align="right">
            @Model.CartTotal.ToString("c")
        </td>
    </tr></tfoot>
</table>

<p align="center" class="actionButtons">
    <a href="@Model.ReturnUrl">Continue shopping</a>
    @Html.ActionLink("Checkout now", "Checkout")
</p>

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。