diff --git a/Host/Controllers/UserController.cs b/Host/Controllers/UserController.cs index dc27ba1..deb77fe 100644 --- a/Host/Controllers/UserController.cs +++ b/Host/Controllers/UserController.cs @@ -508,9 +508,9 @@ namespace Home.Controllers exp = exp.And(m => m.ProductId == request.ProductId); } - if (request.PackageId > 0) + if (request.PackageId != "0") { - exp = exp.And(m => m.PackageId == request.PackageId); + exp = exp.And(m => m.PackageName == request.PackageId); } if (request.ExpiredDay > -1) diff --git a/Host/Models/AccountSearchModel.cs b/Host/Models/AccountSearchModel.cs index 44efab8..5b7b911 100644 --- a/Host/Models/AccountSearchModel.cs +++ b/Host/Models/AccountSearchModel.cs @@ -11,7 +11,7 @@ namespace Home.Models public int? ExpiredDay { get; set; } = -1;//OrderType public int ProductId { get; set; } = 0; - public int PackageId { get; set; } = 0; + public string PackageId { get; set; } = "0"; } } diff --git a/Host/Views.Mobile/User/MyAccounts.cshtml b/Host/Views.Mobile/User/MyAccounts.cshtml index 2ad6f74..c554ef1 100644 --- a/Host/Views.Mobile/User/MyAccounts.cshtml +++ b/Host/Views.Mobile/User/MyAccounts.cshtml @@ -37,8 +37,29 @@ @*
为给您带来更好的服务体验,请完善QQ号和微信号
| @@ -318,7 +330,7 @@ searchModel: { ExpiredDay:-1, ProductId:@this.Context.Request.GetInt("ProductId"), - PackageId:@this.Context.Request.GetInt("PackageId"), + PackageId:'0', Keyword:'@this.Context.Request.Get("Keyword")', BTime: '@this.Context.Request.Get("BTime")', ETime: '@this.Context.Request.Get("ETime")', @@ -351,18 +363,7 @@ }, watch: { - 'searchModel.ProductId': { //加引号监听对象里的属性 - handler: function (newValue, oldValue) { - for (var i = 0; i < this.productWithPackage.length; i++) { - var item = this.productWithPackage[i]; - if (item.Product.Id == newValue) { - this.packages = item.Packages - return; - } - } - }, - immediate: true - } + }, mounted: function () { this.getProducts(); diff --git a/Host/Views/User/MyAccounts.cshtml b/Host/Views/User/MyAccounts.cshtml index bc65b8e..d1991d7 100644 --- a/Host/Views/User/MyAccounts.cshtml +++ b/Host/Views/User/MyAccounts.cshtml @@ -349,7 +349,13 @@ |
|---|