@using Hncore.Infrastructure.Data @using Hncore.Pass.Vpn.Domain @using Hncore.Infrastructure.Extension @using ViewComponents @model PageData @{ Layout = "_UserLayout"; Func cut = word => { if (word.Length > 15) return word.Substring(0, 15) + "..."; return word; }; }
日期筛选:
@foreach (var item in Model.List) { }
日期 订单编号 类型 产品 套餐 单价 总连接数 账号 订单金额 优惠券 实付金额
@item.CreateTime.ToString("yyyy.MM.dd") @item.OrderNo @item.OrderType.GetEnumDisplayName() @item.ProductName @item.PackageName @item.DayPrice @(item.ConnectCount*item.AccountCount) @cut(item.Accounts)
@item.Accounts
@item.OrderAmount @item.CouponAmount @item.PaymentAmount
@await Component.InvokeAsync("Pager", new PagerModel() { Total = Model.RowCount, PageIndex = this.Context.Request.GetInt("PageIndex") })