折扣价

This commit is contained in:
“wanyongkang”
2021-10-12 16:53:12 +08:00
parent 0676870204
commit f4918a7273
3 changed files with 69 additions and 8 deletions

View File

@@ -108,6 +108,15 @@ namespace Home.Controllers
m.Title = discount.Remark;
} else {
m.Title = "9.5";
if (m.ProductId == 1||m.ProductId == 2||m.ProductId == 13||m.ProductId == 17||m.ProductId == 14||m.ProductId == 19){
m.Title = "8";
}
if (m.ProductId == 18){
m.Title = "7";
}
if (m.ProductId == 6||m.ProductId == 5){
m.Title = "9";
}
}
if(m.Price<m.MinPrice){
m.Price = m.MinPrice;
@@ -125,6 +134,15 @@ namespace Home.Controllers
{
product.Packages.ForEach(m => {
m.Title = "9.5";
if (m.ProductId == 1||m.ProductId == 2||m.ProductId == 13||m.ProductId == 17||m.ProductId == 14||m.ProductId == 19){
m.Title = "8";
}
if (m.ProductId == 18){
m.Title = "7";
}
if (m.ProductId == 6||m.ProductId == 5){
m.Title = "9";
}
var userPrice = userPrices.FirstOrDefault(p => p.PackageId == m.Id && p.ProductId == m.ProductId);
if (userPrice != null && userPrice.UserPrice > 0)
@@ -142,6 +160,15 @@ namespace Home.Controllers
{
product.Packages.ForEach(m => {
m.Title = "9.5";
if (m.ProductId == 1||m.ProductId == 2||m.ProductId == 13||m.ProductId == 17||m.ProductId == 14||m.ProductId == 19){
m.Title = "8";
}
if (m.ProductId == 18){
m.Title = "7";
}
if (m.ProductId == 6||m.ProductId == 5){
m.Title = "9";
}
if (m.DayCount == 1||m.DayCount == 2 ){
m.Price = 0.1M;
}
@@ -825,6 +852,15 @@ namespace Home.Controllers
m.Title = discount.Remark;
} else {
m.Title = "9.5";
if (m.ProductId == 1||m.ProductId == 2||m.ProductId == 13||m.ProductId == 17||m.ProductId == 14||m.ProductId == 19){
m.Title = "8";
}
if (m.ProductId == 18){
m.Title = "7";
}
if (m.ProductId == 6||m.ProductId == 5){
m.Title = "9";
}
}
if(m.Price<m.MinPrice){
m.Price = m.MinPrice;
@@ -838,6 +874,15 @@ namespace Home.Controllers
respList.Packages.ForEach(m =>
{
m.Title = "9.5";
if (m.ProductId == 1||m.ProductId == 2||m.ProductId == 13||m.ProductId == 17||m.ProductId == 14||m.ProductId == 19){
m.Title = "8";
}
if (m.ProductId == 18){
m.Title = "7";
}
if (m.ProductId == 6||m.ProductId == 5){
m.Title = "9";
}
var userPrice = userPrices.FirstOrDefault(p => p.PackageId == m.Id);
if (userPrice != null && userPrice.UserPrice > 0)
{