页面优化

This commit is contained in:
“wanyongkang”
2024-02-24 13:58:39 +08:00
parent 95dc0c16be
commit abbef158af
16 changed files with 149 additions and 44 deletions

View File

@@ -844,6 +844,8 @@ namespace Home.Controllers
[HttpGet]
public async Task<IActionResult> ReBuyIndex(string accounts,int productId=0)
{
ViewBag.accounts = "";
ViewBag.errorTip = "";
var model = new ProductWithPackageResponse();
@@ -852,8 +854,15 @@ namespace Home.Controllers
ViewBag.errorTip = "请选择账号";
return View(model);
}
var accountList = await m_ProductAccountService.GetAccounts(accounts);
var flag = true;
if (productId == 26 || productId == 14) {
flag =await m_ProductAccountService.CheckAccountagentExist(productId, accounts.Split(',').ToList());
}
if (productId > 0)
accountList = accountList.Where(m => m.ProductId == productId).ToList();
var productIds = accountList.Select(m => m.ProductId);
@@ -1188,6 +1197,11 @@ namespace Home.Controllers
}
return_list.Packages = package_temp;
if (!flag)
{
ViewBag.errorTip = "1231312";
return View(return_list);
}
return View(return_list);
}