diff --git a/Host/Controllers/ProductController.cs b/Host/Controllers/ProductController.cs index af67fa6..414401e 100644 --- a/Host/Controllers/ProductController.cs +++ b/Host/Controllers/ProductController.cs @@ -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.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.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) { diff --git a/Host/Views.Mobile/Product/Index.cshtml b/Host/Views.Mobile/Product/Index.cshtml index d236792..7fc9b7f 100644 --- a/Host/Views.Mobile/Product/Index.cshtml +++ b/Host/Views.Mobile/Product/Index.cshtml @@ -51,14 +51,24 @@ { if(item.Product.Id == 6) { } else if(item.Product.Id == 18) { } + else if(item.Product.Id == 1||item.Product.Id == 2||item.Product.Id == 13||item.Product.Id == 14||item.Product.Id == 17||item.Product.Id == 19) { + + } + else if(item.Product.Id == 5) { + + } else{