From fd91fd6e612c7f79146efbb45864c0a833e2ca2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Wed, 12 Jul 2023 19:18:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=AD=E4=B9=B0=E9=A1=B5=E9=9D=A2=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Host/Controllers/ProductController.cs | 43 +--- Host/Views.Mobile/Product/Index.cshtml | 51 +---- Host/Views.Mobile/Product/Soft.cshtml | 8 +- Host/Views/Product/Index.cshtml | 276 +++++-------------------- Host/Views/Product/Soft.cshtml | 2 +- 5 files changed, 62 insertions(+), 318 deletions(-) diff --git a/Host/Controllers/ProductController.cs b/Host/Controllers/ProductController.cs index 3ae5c05..4a8b15a 100644 --- a/Host/Controllers/ProductController.cs +++ b/Host/Controllers/ProductController.cs @@ -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.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; // } diff --git a/Host/Views.Mobile/Product/Index.cshtml b/Host/Views.Mobile/Product/Index.cshtml index 2938aa2..e035f37 100644 --- a/Host/Views.Mobile/Product/Index.cshtml +++ b/Host/Views.Mobile/Product/Index.cshtml @@ -52,56 +52,11 @@ @foreach (var item in Model) { - if(item.Product.Id == 6) { + if(item.Product.Id == 18) { - } - else if(item.Product.Id == 18) { - - } - else if(item.Product.Id == 1||item.Product.Id == 2) { - - } - else if(item.Product.Id == 5) { - - } - else if(item.Product.Id == 23||item.Product.Id == 13||item.Product.Id == 17) { - - } - else if(item.Product.Id == 14) { - - } - - else if(item.Product.Id == 22) { -
  • - 静态IP -
  • - - - } - else if(item.Product.Id == 21) { - -
  • - 单窗口单IP -
  • - - } - else{ + } else {