From 20474cd13f5ad8c4b7f1d94d2f2242d13e660a47 Mon Sep 17 00:00:00 2001 From: wanyongkang <937888580@qq.com> Date: Mon, 12 Oct 2020 18:08:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=94=AF=E4=BB=98=E5=AE=9D?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Host/Controllers/ProductController.cs | 2 +- Host/Controllers/UserController.cs | 12 ++++- Host/Views.Mobile/Product/buy.cshtml | 6 +-- Host/Views.Mobile/User/CashOut.cshtml | 60 ++++++++++++++++++++++ Host/Views.Mobile/User/Index.cshtml | 1 + Host/Views.Mobile/User/IndexInfo.cshtml | 2 +- Host/Views/Product/buy.cshtml | 10 ++-- Host/Views/Product/rebuy.cshtml | 6 +-- Host/Views/Shared/_UserLayout.cshtml | 3 ++ Host/Views/User/CashOut.cshtml | 66 +++++++++++++++++++++++++ Host/Views/User/Index.cshtml | 2 +- 11 files changed, 154 insertions(+), 16 deletions(-) create mode 100644 Host/Views.Mobile/User/CashOut.cshtml create mode 100644 Host/Views/User/CashOut.cshtml diff --git a/Host/Controllers/ProductController.cs b/Host/Controllers/ProductController.cs index bffaaf0..f90fdb1 100644 --- a/Host/Controllers/ProductController.cs +++ b/Host/Controllers/ProductController.cs @@ -295,7 +295,7 @@ namespace Home.Controllers { Body = request.PackageName, Subject = oName, - TotalAmount = request.OtherPayAmount.ToString(), + TotalAmount = decimal.Round(decimal.Parse(request.OtherPayAmount.ToString()),2).ToString(), OutTradeNo = request.OrderNo, ProductCode = "FAST_INSTANT_TRADE_PAY",//QUICK_WAP_PAY TimeoutExpress="15m" diff --git a/Host/Controllers/UserController.cs b/Host/Controllers/UserController.cs index f6c3006..136b4a3 100644 --- a/Host/Controllers/UserController.cs +++ b/Host/Controllers/UserController.cs @@ -534,10 +534,18 @@ namespace Home.Controllers public async Task MyCoupons() { var userId =this.Request.GetUserInfo().UserId; - var model = await m_CouponService.GetUserCoupon(userId); + var model = await m_CouponService.GetUserCoupon(userId); return View(model); } + [HttpGet] + [UserAuth] + public IActionResult CashOut() + { + var userId =this.Request.GetUserInfo().UserId; + return View(); + } + /// /// 发送手机验证码 /// @@ -598,7 +606,7 @@ namespace Home.Controllers }; var retAmount = await m_UserService.UpdateAmount(amountInfo); - await m_CouponService.TaoBaoGive(userEntity.Id, 1, userEntity.TaoBao); + await m_CouponService.TaoBaoGive(userEntity.Id, 9, userEntity.TaoBao); var taobaoEntity = notifyOrder.MapTo(); diff --git a/Host/Views.Mobile/Product/buy.cshtml b/Host/Views.Mobile/Product/buy.cshtml index 49567c6..046aaf2 100644 --- a/Host/Views.Mobile/Product/buy.cshtml +++ b/Host/Views.Mobile/Product/buy.cshtml @@ -180,20 +180,20 @@
- 应付款: + 总金额:
{{OneTotalAmount}}
- @*
+
应付款:
{{OnePayAmount}}
-
*@ +

每隔30天淘宝下单可获得一张优惠券

{{Tip}}

diff --git a/Host/Views.Mobile/User/CashOut.cshtml b/Host/Views.Mobile/User/CashOut.cshtml new file mode 100644 index 0000000..1e21aa8 --- /dev/null +++ b/Host/Views.Mobile/User/CashOut.cshtml @@ -0,0 +1,60 @@ + +@{ + Layout = "_Layout"; +} +
+ + + + + + + + + + + + + + + + +
提现管理
提现金额支付宝账号状态
{{info.money}}{{info.alipay_account}}{{info.status}}
+
+ \ No newline at end of file diff --git a/Host/Views.Mobile/User/Index.cshtml b/Host/Views.Mobile/User/Index.cshtml index 93ccc37..e427f93 100644 --- a/Host/Views.Mobile/User/Index.cshtml +++ b/Host/Views.Mobile/User/Index.cshtml @@ -15,5 +15,6 @@
  • 退货订单
  • PPTP账号管理
  • 我的优惠券
  • + @*
  • 提现管理
  • *@ diff --git a/Host/Views.Mobile/User/IndexInfo.cshtml b/Host/Views.Mobile/User/IndexInfo.cshtml index a30e15e..e40d63d 100644 --- a/Host/Views.Mobile/User/IndexInfo.cshtml +++ b/Host/Views.Mobile/User/IndexInfo.cshtml @@ -112,7 +112,7 @@
    余额 - + @* *@
    diff --git a/Host/Views/Product/buy.cshtml b/Host/Views/Product/buy.cshtml index 0b9ea89..ab2588a 100644 --- a/Host/Views/Product/buy.cshtml +++ b/Host/Views/Product/buy.cshtml @@ -199,7 +199,7 @@
    - 应付款: + 总金额:
    {{OneTotalAmount}}元 @@ -208,7 +208,7 @@
    - @*
    +
    应付款:
    @@ -218,7 +218,7 @@
    -
    *@ +

    {{Tip}}

    @@ -351,7 +351,7 @@
    - @*
    +
    应付款:
    @@ -361,7 +361,7 @@
    -
    *@ +

    {{Tip}}

    diff --git a/Host/Views/Product/rebuy.cshtml b/Host/Views/Product/rebuy.cshtml index 33ae7bc..e021365 100644 --- a/Host/Views/Product/rebuy.cshtml +++ b/Host/Views/Product/rebuy.cshtml @@ -167,7 +167,7 @@
    - 应付款: + 总金额:
    {{TotalAmount}}元 @@ -176,7 +176,7 @@
    - @*
    +
    应付款:
    @@ -186,7 +186,7 @@
    -
    *@ +

    {{Tip}}

    diff --git a/Host/Views/Shared/_UserLayout.cshtml b/Host/Views/Shared/_UserLayout.cshtml index 85db074..30adb2c 100644 --- a/Host/Views/Shared/_UserLayout.cshtml +++ b/Host/Views/Shared/_UserLayout.cshtml @@ -76,6 +76,9 @@ + @* *@
    diff --git a/Host/Views/User/CashOut.cshtml b/Host/Views/User/CashOut.cshtml new file mode 100644 index 0000000..e4e9440 --- /dev/null +++ b/Host/Views/User/CashOut.cshtml @@ -0,0 +1,66 @@ + +@{ + Layout = "_UserLayout"; +} +
    + + + + + + + + + + + + + + + + + + + + + + +
    提现管理
    用户提现金额提现理由支付宝账号状态提现时间
    {{info.username}}{{info.money}}{{info.reason}}{{info.alipay_account}}{{info.status}}{{info.create_time}}
    +
    + \ No newline at end of file diff --git a/Host/Views/User/Index.cshtml b/Host/Views/User/Index.cshtml index bfd95aa..5fc9746 100644 --- a/Host/Views/User/Index.cshtml +++ b/Host/Views/User/Index.cshtml @@ -268,7 +268,7 @@
    余额
    -

    提现

    + @*

    提现

    *@

    充值

    ¥@Model.UserModel.RestAmount

    可通过淘宝充值,或联系管理员充值