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 {