From 1aaf2c374b4f2bd8b60a171b9fe5ff8ab11c2ff6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Thu, 31 Mar 2022 15:15:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E9=87=91=E6=98=8E=E7=BB=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Host/Controllers/UserController.cs | 8 ++ Host/Views.Mobile/Home/Index.cshtml | 2 +- Host/Views.Mobile/Product/buy.cshtml | 22 +++ Host/Views.Mobile/Shared/_Layout.cshtml | 14 +- Host/Views.Mobile/User/Index.cshtml | 1 + Host/Views.Mobile/User/MyMoney.cshtml | 125 ++++++++++++++++++ Host/Views/Home/Index.cshtml | 16 +-- Host/Views/Product/Index.cshtml | 81 +++++++----- Host/Views/Product/buy.cshtml | 29 +++- Host/Views/Shared/_Layout.cshtml | 16 +-- Host/Views/Shared/_UserLayout.cshtml | 18 ++- Host/Views/User/MyMoney.cshtml | 125 ++++++++++++++++++ .../Service/ProductOrderService.cs | 2 +- 13 files changed, 393 insertions(+), 66 deletions(-) create mode 100644 Host/Views.Mobile/User/MyMoney.cshtml create mode 100644 Host/Views/User/MyMoney.cshtml diff --git a/Host/Controllers/UserController.cs b/Host/Controllers/UserController.cs index ba7ece5..9e93373 100644 --- a/Host/Controllers/UserController.cs +++ b/Host/Controllers/UserController.cs @@ -577,6 +577,14 @@ namespace Home.Controllers return View(); } + [HttpGet] + [UserAuth] + public IActionResult MyMoney() + { + var userId =this.Request.GetUserInfo().UserId; + return View(); + } + /// /// 发送手机验证码 /// diff --git a/Host/Views.Mobile/Home/Index.cshtml b/Host/Views.Mobile/Home/Index.cshtml index 4da26e1..51043aa 100644 --- a/Host/Views.Mobile/Home/Index.cshtml +++ b/Host/Views.Mobile/Home/Index.cshtml @@ -306,7 +306,7 @@

客服微信-售后:

-

工作时间:周一到周日8:30-23:30

+

工作时间:周一到周日8:30-23:00

大客户/商务合作

diff --git a/Host/Views.Mobile/Product/buy.cshtml b/Host/Views.Mobile/Product/buy.cshtml index 0d9b797..8199319 100644 --- a/Host/Views.Mobile/Product/buy.cshtml +++ b/Host/Views.Mobile/Product/buy.cshtml @@ -496,7 +496,12 @@ }, watch: { 'OneBuyModel.CouponId': { //加引号监听对象里的属性 + handler: function (newValue, oldValue) { + + if( this.OneBuyModel.CouponId == 10000000){ + return; + } var totalAmount = this.OneBuyModel.Price * this.OneBuyModel.ConnectCount; for (var i = 0; i < this.Coupons.length; i++) { var item = this.Coupons[i]; @@ -525,6 +530,10 @@ }, 'MoreBuyModel.CouponId': { //加引号监听对象里的属性 handler: function (newValue, oldValue) { + + if( this.MoreBuyModel.CouponId == 10000000){ + return; + } var totalAmount = this.MoreBuyModel.Price * this.MoreBuyModel.ConnectCount; for (var i = 0; i < this.Coupons.length; i++) { var item = this.Coupons[i]; @@ -571,6 +580,10 @@ immediate: true } }, + created () { + this.OneBuyModel.CouponId = 10000000 + this.MoreBuyModel.CouponId = 10000000 + }, mounted: function () { if (isWeiXin()) { this.OneBuyModel.PayChannel = 20; @@ -599,6 +612,15 @@ success: function (res) { console.log(res); if (res.Code == 10000) { + if(@(Model.Package.Id) == 64||@(Model.Package.Id) == 1004){ + var coupon_json = { + "Coupon":{ + "Id":10000000, + "Name":"极客-西瓜-满减劵", + } + } + res.Data.push(coupon_json); + } that.Coupons = res.Data.map(m => m.Coupon); } } diff --git a/Host/Views.Mobile/Shared/_Layout.cshtml b/Host/Views.Mobile/Shared/_Layout.cshtml index 2fe1238..1a29a44 100644 --- a/Host/Views.Mobile/Shared/_Layout.cshtml +++ b/Host/Views.Mobile/Shared/_Layout.cshtml @@ -132,7 +132,7 @@
QQ
-

在线时间8:30-23:30

+

在线时间8:30-23:00

diff --git a/Host/Views.Mobile/User/Index.cshtml b/Host/Views.Mobile/User/Index.cshtml index f01930f..eacc38f 100644 --- a/Host/Views.Mobile/User/Index.cshtml +++ b/Host/Views.Mobile/User/Index.cshtml @@ -12,6 +12,7 @@
@@ -513,9 +513,6 @@ " style="color: #000000;">查看详细地区
*@ } - @if(item.Product.Id == 6){ -

本产品目前所有地区都屏蔽QQ微信

- } @if(item.Product.Id == 5){

购买须知:本产品目前所有地区都屏蔽QQ微信

} @@ -544,8 +541,8 @@ @if(item.Product.Id == 20){
} @@ -865,8 +862,10 @@ } } + //1 安卓、苹果 2 pc var wjdxtype = 1; - function wjdxgd() { + function wjdxphone() { + wjdxtype = 1; for (var i=1048;i<1051;i++){ $("#pkg"+i).show(); } @@ -875,7 +874,8 @@ } } - function wjdxpt() { + function wjdxpc() { + wjdxtype = 2; for (var i=1048;i<1054;i++){ $("#pkg"+i).hide(); } @@ -886,32 +886,46 @@ $("#pkg"+i).show(); } } - function wjdxphone() { - for (var i=1052;i<1054;i++){ - $("#pkg"+i).hide(); - } - for (var i=1057;i<1060;i++){ - $("#pkg"+i).hide(); - } - for (var i=1054;i<1057;i++){ - $("#pkg"+i).show(); - } - for (var i=1048;i<1051;i++){ - $("#pkg"+i).show(); + function wjdxpt() { + if (wjdxtype == 1) { + for (var i=1051;i<1060;i++){ + $("#pkg"+i).hide(); + } + for (var i=1048;i<1051;i++){ + $("#pkg"+i).show(); + } + } else if (wjdxtype == 2) { + for (var i=1048;i<1054;i++){ + $("#pkg"+i).hide(); + } + for (var i=1054;i<1057;i++){ + $("#pkg"+i).show(); + } + + for (var i=1057;i<1060;i++){ + $("#pkg"+i).hide(); + } } } - function wjdxpc() { - for (var i=1052;i<1054;i++){ - $("#pkg"+i).show(); - } - for (var i=1057;i<1060;i++){ - $("#pkg"+i).show(); - } - for (var i=1054;i<1057;i++){ - $("#pkg"+i).dide(); - } - for (var i=1048;i<1051;i++){ - $("#pkg"+i).dide(); + function wjdxgj() { + if (wjdxtype == 1) { + for (var i=1048;i<1051;i++){ + $("#pkg"+i).hide(); + } + for (var i=1051;i<1054;i++){ + $("#pkg"+i).show(); + } + + for (var i=1054;i<1060;i++){ + $("#pkg"+i).hide(); + } + } else if (wjdxtype == 2) { + for (var i=1048;i<1057;i++){ + $("#pkg"+i).hide(); + } + for (var i=1057;i<1060;i++){ + $("#pkg"+i).show(); + } } } $(function () { @@ -947,6 +961,7 @@ } } else { $("#p14").removeClass("on"); + $("#p20").removeClass("on"); } select(pid); }); diff --git a/Host/Views/Product/buy.cshtml b/Host/Views/Product/buy.cshtml index 762dcf4..9099b02 100644 --- a/Host/Views/Product/buy.cshtml +++ b/Host/Views/Product/buy.cshtml @@ -27,6 +27,13 @@ var randomAccountMutil = ValidateCodeHelper.MakeCharCode(3).ToLower(); + var product_id = Model.Product.Id; + if (product_id == 20) { + randomAccount1 = ValidateCodeHelper.MakeCharCode(2).ToLower() + ValidateCodeHelper.MakeNumCode(5).ToLower(); + randomAccountMutil = ValidateCodeHelper.MakeCharCode(6).ToLower(); + randomPwd = ValidateCodeHelper.MakeNumCode(6).ToLower(); + } + @* while (m_AccountService.Exist(m =>m.Account.StartsWith(randomAccountMutil))) { randomAccountMutil = ValidateCodeHelper.MakeCharCode(3).ToLower(); @@ -582,7 +589,7 @@ }, 'MoreBuyModel.CouponId': { //加引号监听对象里的属性 handler: function (newValue, oldValue) { - if( this.OneBuyModel.CouponId == 10000000){ + if( this.MoreBuyModel.CouponId == 10000000){ return; } var totalAmount = this.MoreBuyModel.Price * this.MoreBuyModel.ConnectCount; @@ -675,6 +682,16 @@ } }, checkOneAccount() { + if (productId == 20) { + if (this.OneBuyModel.Account.length > 10 || this.OneBuyModel.Account.length < 7 || !this.hasNumAndChar(this.OneBuyModel.Account)) { + alert("此产品账号必须大于6位"); + this.OneChecker.AccountOk = false; + return false; + } + + this.OneChecker.AccountOk = true; + return true; + } if (this.OneBuyModel.Account.length > 10 || this.OneBuyModel.Account.length < 4 || !this.hasNumAndChar(this.OneBuyModel.Account)) { this.OneChecker.AccountOk = false; return false; @@ -691,6 +708,16 @@ return true; }, checkMoreAccount() { + if (productId == 20) { + if (this.MoreBuyModel.Account.length < 6 || this.MoreBuyModel.Account.length > 8 || !this.hasNumAndChar(this.MoreBuyModel.Account)) { + alert("此产品账号必须大于6位"); + this.MoreChecker.AccountOk = false; + return false; + } + + this.MoreChecker.AccountOk = true; + return true; + } if (this.MoreBuyModel.Account.length < 2 || this.MoreBuyModel.Account.length > 8 || !this.hasNumAndChar(this.MoreBuyModel.Account)) { this.MoreChecker.AccountOk = false; return false; diff --git a/Host/Views/Shared/_Layout.cshtml b/Host/Views/Shared/_Layout.cshtml index abc4ca9..39c6014 100644 --- a/Host/Views/Shared/_Layout.cshtml +++ b/Host/Views/Shared/_Layout.cshtml @@ -135,7 +135,7 @@
QQ
-

在线时间8:30-23:30

+

在线时间8:30-23:00

@@ -258,7 +258,7 @@
  • 客服微信-售后:

  • -
  • 工作时间: 8:30-23:30
  • +
  • 工作时间: 8:30-23:00
  • diff --git a/Host/Views/Shared/_UserLayout.cshtml b/Host/Views/Shared/_UserLayout.cshtml index 8e32122..44b2b61 100644 --- a/Host/Views/Shared/_UserLayout.cshtml +++ b/Host/Views/Shared/_UserLayout.cshtml @@ -79,7 +79,7 @@
    QQ
    -

    在线时间8:30-23:30

    +

    在线时间8:30-23:00

    @@ -181,6 +181,10 @@ + + diff --git a/Host/Views/User/MyMoney.cshtml b/Host/Views/User/MyMoney.cshtml new file mode 100644 index 0000000..7c22166 --- /dev/null +++ b/Host/Views/User/MyMoney.cshtml @@ -0,0 +1,125 @@ + +@{ + Layout = "_UserLayout"; +} +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    余额资金明细
    用户资金去向金额操作前余额操作后余额备注购买时间
    {{info.UserName}}{{info.ScoreTypeName}}{{info.ScoreValue}}{{info.RestAmount1}}{{info.RestAmount2}}{{info.Remark}}{{info.CreateTime}}
    + +
    + \ No newline at end of file diff --git a/Services/Hncore.Pass.Vpn/Service/ProductOrderService.cs b/Services/Hncore.Pass.Vpn/Service/ProductOrderService.cs index 808460d..d4dce11 100644 --- a/Services/Hncore.Pass.Vpn/Service/ProductOrderService.cs +++ b/Services/Hncore.Pass.Vpn/Service/ProductOrderService.cs @@ -483,7 +483,7 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel, AttchInfo = order.OrderNo, OperateUserName = order.UserName, }; - var ret = await m_BaseUserService.UpdateAmount(amountInfo); + var ret = await m_BaseUserService.UpdateAmount(amountInfo,order.ProductName,order.PackageName,order.Accounts); if (ret.Code != ResultCode.C_SUCCESS) { order.OtherPayAmount = order.PaymentAmount;