From a5cf256780575b9513ea7d7b6104789ee7400b1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Sun, 18 Feb 2024 16:00:29 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E6=AC=BE=E8=B4=A6=E5=8F=B7=E4=B8=8D?= =?UTF-8?q?=E5=85=81=E8=AE=B8=E7=BB=AD=E8=B4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Host/Views.Mobile/User/MyAccounts.cshtml | 9 ++++++++- Host/Views/User/MyAccounts.cshtml | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/Host/Views.Mobile/User/MyAccounts.cshtml b/Host/Views.Mobile/User/MyAccounts.cshtml index bd27270..f676284 100644 --- a/Host/Views.Mobile/User/MyAccounts.cshtml +++ b/Host/Views.Mobile/User/MyAccounts.cshtml @@ -107,7 +107,7 @@ @foreach (var item in Model) { - + @item.ProductName/@item.PackageName @item.Account @@ -818,6 +818,7 @@ var accounts = []; var accountModels = []; var isTest = false + var isrefund = false; $.each($('input:checkbox:checked'), function () { var account = $(this).val(); if (account) { @@ -830,6 +831,11 @@ accountModels.push(accountItem) accounts.push(account) if (accountItem.isTest) isTest = true; + var status = $(this).attr('a-status'); + if (status == 'Refund') { + isrefund = true; + return; + } } }); @@ -837,6 +843,7 @@ if (!isSame(accountModels, 'pid')) { alert('必须选择相同的产品'); return; } if (!isSame(accountModels, 'connectCount')) { alert('必须选择相同的连接数'); return; } if (isTest) { alert('测试账号暂不支持续费,请新开正式账号'); return; } + if (isrefund) { alert('退款账号暂不支持续费,请新开正式账号'); return; } window.location.href = "/product/rebuyindex?productId=" + accountModels[0].pid + "&accounts=" + accounts.join(","); }) diff --git a/Host/Views/User/MyAccounts.cshtml b/Host/Views/User/MyAccounts.cshtml index c9d48bf..3df50ec 100644 --- a/Host/Views/User/MyAccounts.cshtml +++ b/Host/Views/User/MyAccounts.cshtml @@ -384,7 +384,7 @@ @foreach (var item in Model) { - + @item.CreateTime.ToString("yyyy.MM.dd") @item.ProductName @item.PackageName @@ -1251,6 +1251,7 @@ var accounts = []; var accountModels = []; var isTest = false + var isrefund = false; $.each($('input:checkbox:checked'), function () { var account = $(this).val(); if (account) { @@ -1263,12 +1264,18 @@ accountModels.push(accountItem) accounts.push($(this).val()) if (accountItem.isTest) isTest = true; + var status = $(this).attr('a-status'); + if (status == 'Refund') { + isrefund = true; + return; + } } }); if (accountModels.length == 0) { alert('请选择账号'); return; } if (!isSame(accountModels, 'pid')) { alert('必须选择相同的产品'); return; } if (!isSame(accountModels, 'connectCount')) { alert('必须选择相同的连接数'); return; } if (isTest) { alert('测试账号暂不支持续费,请新开正式账号'); return; } + if (isrefund) { alert('退款账号暂不支持续费,请新开正式账号'); return; } window.location.href = "/product/rebuyindex?productId=" + accountModels[0].pid + "&accounts=" + accounts.join(","); })