From f4918a7273ccc922314eaa46f2f8853297cf9ff6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Tue, 12 Oct 2021 16:53:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=98=E6=89=A3=E4=BB=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Host/Controllers/ProductController.cs | 45 ++++++++++++++++++++++++++ Host/Views.Mobile/Product/Index.cshtml | 14 ++++++-- Host/Views/Product/Index.cshtml | 18 +++++++---- 3 files changed, 69 insertions(+), 8 deletions(-) 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{