八折活动

This commit is contained in:
“wanyongkang”
2020-12-27 18:44:04 +08:00
parent ebfd3a5106
commit 16bf7659f5
2 changed files with 9 additions and 9 deletions

View File

@@ -33,10 +33,10 @@
<ul class="nav nav-tabs cpName" role="tablist"> <ul class="nav nav-tabs cpName" role="tablist">
@foreach (var item in Model) @foreach (var item in Model)
{ {
@if(item.Product.Id == 14){ @if(item.Product.Id == 1||item.Product.Id == 2||item.Product.Id == 4||item.Product.Id == 6||item.Product.Id == 13||item.Product.Id == 5){
<li role="presentation" class="@(item.Product.Id==defaultProduct.Id?"active":"")"> <li role="presentation" class="@(item.Product.Id==defaultProduct.Id?"active":"")">
<a href="#@item.Product.Id" role="tab" data-toggle="tab" style="font-size: 25px;">@item.Product.Name<span style="color: #f64e3d;font-weight:bold;float:right;padding-right: 5px;">送1月</span></a> <a href="#@item.Product.Id" role="tab" data-toggle="tab" style="font-size: 25px;">@item.Product.Name<span style="color: #f64e3d;font-weight:bold;float:right;padding-right: 5px;">活动</span></a>
</li> </li>
} }
@* else if(item.Product.Id == 4 || item.Product.Id == 13) { @* else if(item.Product.Id == 4 || item.Product.Id == 13) {
@@ -47,7 +47,7 @@
else{ else{
<li role="presentation" class="@(item.Product.Id==defaultProduct.Id?"active":"")"> <li role="presentation" class="@(item.Product.Id==defaultProduct.Id?"active":"")">
<a href="#@item.Product.Id" role="tab" data-toggle="tab" style="font-size: 25px;">@item.Product.Name</a> <a href="#@item.Product.Id" role="tab" data-toggle="tab" style="font-size: 25px;">@item.Product.Name </a>
</li> </li>
} }
} }

View File

@@ -287,15 +287,15 @@
<div class="nav" style="width:175px;"> <div class="nav" style="width:175px;">
@foreach (var item in Model) @foreach (var item in Model)
{ {
@* @if( item.Product.Id == 14){ @if( item.Product.Id == 1||item.Product.Id == 2||item.Product.Id == 4||item.Product.Id == 6||item.Product.Id == 13||item.Product.Id == 5){
<div class="productItem" id="@("p"+item.Product.Id)" a-pid="@item.Product.Id" a-pkg-id="@(item.Packages.FirstOrDefault(m=>m.Status==1).Id)">@item.Product.Name <span style="color: #f64e3d;font-weight:bold;font-size:12px;float:right;padding-right: 5px;">送1月</span></div> <div class="productItem" id="@("p"+item.Product.Id)" a-pid="@item.Product.Id" a-pkg-id="@(item.Packages.FirstOrDefault(m=>m.Status==1).Id)">@item.Product.Name <span style="color: #f64e3d;font-weight:bold;font-size:12px;float:right;padding-right: 5px;">活动</span></div>
} }
else if(item.Product.Id == 4 || item.Product.Id == 13) { @* else if(item.Product.Id == 4 || item.Product.Id == 13) {
<div class="productItem" id="@("p"+item.Product.Id)" a-pid="@item.Product.Id" a-pkg-id="@(item.Packages.FirstOrDefault(m=>m.Status==1).Id)">@item.Product.Name <span style="color: #f64e3d;font-weight:bold;font-size:12px;float:right;padding-right: 5px;">八折</span></div> <div class="productItem" id="@("p"+item.Product.Id)" a-pid="@item.Product.Id" a-pkg-id="@(item.Packages.FirstOrDefault(m=>m.Status==1).Id)">@item.Product.Name <span style="color: #f64e3d;font-weight:bold;font-size:12px;float:right;padding-right: 5px;">八折</span></div>
} } *@
else { *@ else {
<div class="productItem" id="@("p"+item.Product.Id)" a-pid="@item.Product.Id" a-pkg-id="@(item.Packages.FirstOrDefault(m=>m.Status==1).Id)">@item.Product.Name </div> <div class="productItem" id="@("p"+item.Product.Id)" a-pid="@item.Product.Id" a-pkg-id="@(item.Packages.FirstOrDefault(m=>m.Status==1).Id)">@item.Product.Name </div>
@* } *@ }
} }
</div> </div>