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();
+ }
+
/// 
客服微信-售后:
- 工作时间:周一到周日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 @@
个人信息
IP账号管理
资金明细
我的订单
退货订单
我的优惠券 
| 用户 | +资金去向 | +金额 | +操作前余额 | +操作后余额 | +备注 | +购买时间 | +
|---|---|---|---|---|---|---|
| {{info.UserName}} | +{{info.ScoreTypeName}} | +{{info.ScoreValue}} | +{{info.RestAmount1}} | +{{info.RestAmount2}} | +{{info.Remark}} | +{{info.CreateTime}} | +

- 本产品目前所有地区都屏蔽QQ微信
- } @if(item.Product.Id == 5){购买须知:本产品目前所有地区都屏蔽QQ微信
} @@ -544,8 +541,8 @@ @if(item.Product.Id == 20){

-
资金明细
+