From 06e32328f7eb5cdec995994758ea533f398f4007 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Sun, 11 Jun 2023 18:03:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Host/Controllers/ProductController.cs | 77 +++--- Host/Views.Mobile/Home/Index.cshtml | 6 +- Host/Views.Mobile/Product/Index.cshtml | 10 +- Host/Views.Mobile/Product/Routeros.cshtml | 2 +- Host/Views.Mobile/Product/buy.cshtml | 8 +- Host/Views.Mobile/Product/rebuy.cshtml | 4 +- Host/Views.Mobile/User/IndexInfo.cshtml | 2 +- Host/Views/Home/Index.cshtml | 9 +- Host/Views/Product/Index.cshtml | 38 +-- Host/Views/Product/Routeros.cshtml | 3 +- Host/Views/Product/buy.cshtml | 4 +- Host/Views/Product/rebuy.cshtml | 2 +- Host/Views/User/Index.cshtml | 2 +- .../Service/ProductOrderService.cs | 252 +++++++++++++++++- 14 files changed, 339 insertions(+), 80 deletions(-) diff --git a/Host/Controllers/ProductController.cs b/Host/Controllers/ProductController.cs index 6ee9f2e..3ae5c05 100644 --- a/Host/Controllers/ProductController.cs +++ b/Host/Controllers/ProductController.cs @@ -107,16 +107,19 @@ namespace Home.Controllers m.Price = dis_price; 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 = "8"; - } - if (m.ProductId == 6||m.ProductId == 5||m.ProductId == 23){ - m.Title = "9"; - } + 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"; + } } 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 = "8"; - } - if (m.ProductId == 6||m.ProductId == 5||m.ProductId == 23){ - m.Title = "9"; - } + 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"; + } var userPrice = userPrices.FirstOrDefault(p => p.PackageId == m.Id && p.ProductId == m.ProductId); if (userPrice != null && userPrice.UserPrice > 0) @@ -160,15 +166,18 @@ 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 == 1||m.ProductId == 2){ + m.Title = "7.5"; } if (m.ProductId == 18){ - m.Title = "8"; + m.Title = "7.5"; } - if (m.ProductId == 6||m.ProductId == 5||m.ProductId == 23){ + 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"; + } // if ((m.DayCount == 1||m.DayCount == 2) && m.Id != 1034&&m.Id != 1040 &&m.Id != 1079&&m.Id != 1073){ // m.Price = 0.1M; // } @@ -918,15 +927,18 @@ 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 == 1||m.ProductId == 2){ + m.Title = "7.5"; } if (m.ProductId == 18){ - m.Title = "8"; + m.Title = "7.5"; } - if (m.ProductId == 6||m.ProductId == 5||m.ProductId == 23){ + 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"; + } } if(m.Price p.PackageId == m.Id); if (userPrice != null && userPrice.UserPrice > 0) { diff --git a/Host/Views.Mobile/Home/Index.cshtml b/Host/Views.Mobile/Home/Index.cshtml index c06564e..ce7b11b 100644 --- a/Host/Views.Mobile/Home/Index.cshtml +++ b/Host/Views.Mobile/Home/Index.cshtml @@ -331,11 +331,11 @@

所有IP产品已记录日志,均保留6个月以上

发现违法行为直接提交网监部门处理

-

聚IP虎年新春复工助力活动:

+

聚IP兔年新春复工助力活动:

@*

1.动态IP一毛钱一天,每用户限一次~

*@ -

1.新上蘑菇IP,天卡送天卡,周卡送3天,月卡送10天,双月卡送1个月,多买多送~

-

2.其他产品均有8折活动~

+

1.新上蘑菇IP,周卡送1天,月卡送5天,双月卡送1个月,多买多送~

+

2.其他产品均有7.5折活动~

3.需求5个以上可联系客服设置优惠折扣!

diff --git a/Host/Views.Mobile/Product/Index.cshtml b/Host/Views.Mobile/Product/Index.cshtml index 5d5c3e1..915b619 100644 --- a/Host/Views.Mobile/Product/Index.cshtml +++ b/Host/Views.Mobile/Product/Index.cshtml @@ -59,12 +59,12 @@ } else if(item.Product.Id == 18) { } - else if(item.Product.Id == 1||item.Product.Id == 2||item.Product.Id == 13||item.Product.Id == 17||item.Product.Id == 19) { + else if(item.Product.Id == 1||item.Product.Id == 2) { } else if(item.Product.Id == 5) { @@ -72,9 +72,9 @@ @item.Product.Name9折 } - else if(item.Product.Id == 23) { + else if(item.Product.Id == 23||item.Product.Id == 13||item.Product.Id == 17) { } else if(item.Product.Id == 14) { diff --git a/Host/Views.Mobile/Product/Routeros.cshtml b/Host/Views.Mobile/Product/Routeros.cshtml index 99b2f94..ede3cc4 100644 --- a/Host/Views.Mobile/Product/Routeros.cshtml +++ b/Host/Views.Mobile/Product/Routeros.cshtml @@ -79,7 +79,7 @@
- + @* *@
diff --git a/Host/Views.Mobile/Product/buy.cshtml b/Host/Views.Mobile/Product/buy.cshtml index 8e4819f..de23403 100644 --- a/Host/Views.Mobile/Product/buy.cshtml +++ b/Host/Views.Mobile/Product/buy.cshtml @@ -199,10 +199,10 @@ 支付方式:
-
+ @*
-
+
*@
@@ -345,10 +345,10 @@ 支付方式:
-
+ @*
-
+
*@
diff --git a/Host/Views.Mobile/Product/rebuy.cshtml b/Host/Views.Mobile/Product/rebuy.cshtml index 92c066d..ec430a9 100644 --- a/Host/Views.Mobile/Product/rebuy.cshtml +++ b/Host/Views.Mobile/Product/rebuy.cshtml @@ -142,10 +142,10 @@ 支付方式:
-
+ @*
-
+
*@
diff --git a/Host/Views.Mobile/User/IndexInfo.cshtml b/Host/Views.Mobile/User/IndexInfo.cshtml index 860c40e..de425da 100644 --- a/Host/Views.Mobile/User/IndexInfo.cshtml +++ b/Host/Views.Mobile/User/IndexInfo.cshtml @@ -277,7 +277,7 @@ 支付方式: - 支付宝支付
+ @* 支付宝支付
*@ 微信支付 diff --git a/Host/Views/Home/Index.cshtml b/Host/Views/Home/Index.cshtml index 0d60729..4b5372c 100644 --- a/Host/Views/Home/Index.cshtml +++ b/Host/Views/Home/Index.cshtml @@ -711,13 +711,16 @@

所有IP产品已记录日志,均保留6个月以上

发现违法行为直接提交网监部门处理

-

聚IP虎年新春复工助力活动:

+

聚IP兔年新春复工助力活动:

@*

1.动态IP一毛钱一天,每用户限一次~

*@ -

1.新上蘑菇IP,天卡送天卡,周卡送3天,月卡送10天,双月卡送1个月,多买多送~

-

2.其他产品均有8折活动~

+

1.新上蘑菇IP,周卡送1天,月卡送5天,双月卡送1个月,多买多送~

+

2.其他产品均有7.5折活动~

3.需求5个以上可联系客服设置优惠折扣!

+
+

因支付宝审核等问题,暂时无法进行支付宝支付、充值等功能,建议使用微信支付,如确实需要支付宝支付,请联系相关人员:17719092232(微信同号)

+

diff --git a/Host/Views/Product/Index.cshtml b/Host/Views/Product/Index.cshtml index ed23ee0..3e18999 100644 --- a/Host/Views/Product/Index.cshtml +++ b/Host/Views/Product/Index.cshtml @@ -202,7 +202,7 @@ height: 0px; border: 1.0rem solid #FF9933; border-right-color: transparent; - content: "8折+送 1 天"; + content: "7.5折+送 1 天"; box-shadow: 0px 0.3125rem 0.3125rem -0.3125rem #000; } @@ -231,7 +231,7 @@ height: 0px; border: 1.0rem solid #FF9933; border-right-color: transparent; - content: "8折+送 5 天"; + content: "7.5折+送 5 天"; box-shadow: 0px 0.3125rem 0.3125rem -0.3125rem #000; } @@ -260,7 +260,7 @@ height: 0px; border: 1.0rem solid #FF9933; border-right-color: transparent; - content: "8折+送 1 月"; + content: "7.5折+送 1 月"; box-shadow: 0px 0.3125rem 0.3125rem -0.3125rem #000; } @@ -364,19 +364,19 @@ @foreach (var item in Model) { if(item.Product.Id == 18) { -

@item.Product.Name8折
+
@item.Product.Name7.5折
} else if(item.Product.Id == 6) {
@item.Product.Name9折
} - else if(item.Product.Id == 1||item.Product.Id == 2||item.Product.Id == 13||item.Product.Id == 17||item.Product.Id == 19) { -
@item.Product.Name8折
+ else if(item.Product.Id == 1||item.Product.Id == 2) { +
@item.Product.Name7.5折
} else if(item.Product.Id == 5) {
@item.Product.Name9折
} - else if(item.Product.Id == 23) { -
@item.Product.Name9折
+ else if(item.Product.Id == 23||item.Product.Id == 13||item.Product.Id == 17) { +
@item.Product.Name8折
} else if(item.Product.Id == 14) {