54 lines
1.9 KiB
Plaintext
54 lines
1.9 KiB
Plaintext
@using Hncore.Pass.Sells.Model
|
|
@model List<UserCouponModel>
|
|
@{
|
|
Layout = "_UserLayout";
|
|
}
|
|
@foreach (var item in Model)
|
|
{
|
|
<div class="col-lg-3">
|
|
<div class="quan">
|
|
@if (item.Coupon.CouponType == ECouponType.Discount)
|
|
{
|
|
<span class="couponPrice">@(item.Coupon.CouponValue)折</span><span class="couponName">@item.Coupon.Name</span>
|
|
}
|
|
@if (item.Coupon.CouponType == ECouponType.Minus)
|
|
{
|
|
<div class="item">
|
|
¥<span class="couponPrice">@(item.Coupon.CouponValue)</span><span class="couponName">@item.Coupon.Name</span>
|
|
</div>
|
|
}
|
|
<div class="item">
|
|
使用规则:@(item.Coupon.AllowMinAmount > 0 ? $"满{item.Coupon.AllowMinAmount}元可用" : "无限制")
|
|
</div>
|
|
<div class="item">
|
|
有效时间:@(item.Orgin.StartTime.Value.ToString("yyyy.MM.dd"))-@(item.Orgin.EndTime.Value.ToString("yyyy.MM.dd"))
|
|
</div>
|
|
<div class="item">
|
|
获得途径: @item.Orgin.Remark
|
|
</div>
|
|
<div class="item">
|
|
@(item.IsUsed?"已使用":"未使用")
|
|
</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
@*<div class="col-lg-3">
|
|
<div class="quan gray">
|
|
<div class="item">
|
|
¥<span class="couponPrice">3</span><span class="couponName">优惠券名称</span>
|
|
</div>
|
|
<div class="item">
|
|
使用规则:无限制
|
|
</div>
|
|
<div class="item">
|
|
有效时间:<span>2020.1.1-2020.2.3</span>
|
|
</div>
|
|
<div class="item">
|
|
获得途径;淘宝下单赠送
|
|
</div>
|
|
<div class="item">
|
|
已使用
|
|
</div>
|
|
</div>
|
|
</div>*@
|