购买页面调整

This commit is contained in:
“wanyongkang”
2023-07-12 19:18:21 +08:00
parent 977f533d5e
commit fd91fd6e61
5 changed files with 62 additions and 318 deletions

View File

@@ -107,19 +107,7 @@ namespace Home.Controllers
m.Price = dis_price;
m.Title = discount.Remark;
} else {
m.Title = "9.5";
if (m.ProductId == 1||m.ProductId == 2){
m.Title = "7.5";
}
if (m.ProductId == 18){
m.Title = "7.5";
}
if (m.ProductId == 6||m.ProductId == 5){
m.Title = "9";
}
if (m.ProductId == 23||m.ProductId == 13||m.ProductId == 14||m.ProductId == 17){
m.Title = "8";
}
m.Title = "0";
}
if(m.Price<m.MinPrice){
m.Price = m.MinPrice;
@@ -136,19 +124,7 @@ namespace Home.Controllers
foreach(var product in respList)
{
product.Packages.ForEach(m => {
m.Title = "9.5";
if (m.ProductId == 1||m.ProductId == 2){
m.Title = "7.5";
}
if (m.ProductId == 18){
m.Title = "7.5";
}
if (m.ProductId == 6||m.ProductId == 5){
m.Title = "9";
}
if (m.ProductId == 23||m.ProductId == 13||m.ProductId == 14||m.ProductId == 17){
m.Title = "8";
}
m.Title = "0";
var userPrice = userPrices.FirstOrDefault(p => p.PackageId == m.Id && p.ProductId == m.ProductId);
if (userPrice != null && userPrice.UserPrice > 0)
@@ -165,19 +141,8 @@ namespace Home.Controllers
foreach(var product in respList)
{
product.Packages.ForEach(m => {
m.Title = "9.5";
if (m.ProductId == 1||m.ProductId == 2){
m.Title = "7.5";
}
if (m.ProductId == 18){
m.Title = "7.5";
}
if (m.ProductId == 6||m.ProductId == 5){
m.Title = "9";
}
if (m.ProductId == 23||m.ProductId == 13||m.ProductId == 14||m.ProductId == 17){
m.Title = "8";
}
m.Title = "0";
// if ((m.DayCount == 1||m.DayCount == 2) && m.Id != 1034&&m.Id != 1040 &&m.Id != 1079&&m.Id != 1073){
// m.Price = 0.1M;
// }