修复水滴不同套餐可以续费问题

This commit is contained in:
“wanyongkang”
2024-08-02 14:44:56 +08:00
parent c4539c86d1
commit 11dda1118a
3 changed files with 32 additions and 4 deletions

View File

@@ -108,7 +108,7 @@
{ {
@if (@item.RestTime == "已过期") { @if (@item.RestTime == "已过期") {
<tr style="color:red"> <tr style="color:red">
<td><input type="checkbox" class="selectAccount" value="@item.Account" a-status="@(item.Status)" a-pid="@(item.ProductId)" a-connectCount="@item.ConnectCount" a-aType="@item.AccountType" style="width: 0.4rem;height: 0.4rem;" /></td> <td><input type="checkbox" class="selectAccount" value="@item.Account" a-package="@(item.PackageName)" a-status="@(item.Status)" a-pid="@(item.ProductId)" a-connectCount="@item.ConnectCount" a-aType="@item.AccountType" style="width: 0.4rem;height: 0.4rem;" /></td>
<td>@item.ProductName/@item.PackageName</td> <td>@item.ProductName/@item.PackageName</td>
<td>@item.Account <a style="cursor:pointer;" v-on:click="copyText('@item.Account')">复制</a><br>@item.Pwd <a style="cursor:pointer;" v-on:click="copyText('@item.Pwd')">复制</a></td> <td>@item.Account <a style="cursor:pointer;" v-on:click="copyText('@item.Account')">复制</a><br>@item.Pwd <a style="cursor:pointer;" v-on:click="copyText('@item.Pwd')">复制</a></td>
<td> <td>
@@ -876,7 +876,17 @@
var accountModels = []; var accountModels = [];
var isTest = false var isTest = false
var isrefund = false; var isrefund = false;
var product_type_shuidi = '';//0:静态 1固态
var flag = 0;
$.each($('input:checkbox:checked'), function () { $.each($('input:checkbox:checked'), function () {
var type = $(this).attr('a-package').split('-')[0];
if (product_type_shuidi != '') {
if (product_type_shuidi != type) {
flag = 1;
}
} else {
product_type_shuidi = type;
}
var account = $(this).val(); var account = $(this).val();
if (account) { if (account) {
var accountItem = { var accountItem = {
@@ -896,6 +906,10 @@
} }
}); });
if (flag) {
alert('静态、固态不同类型无法续费!');
return;
}
if (accountModels.length == 0) { alert('请选择账号'); return; } if (accountModels.length == 0) { alert('请选择账号'); return; }
if (!isSame(accountModels, 'pid')) { alert('必须选择相同的产品'); return; } if (!isSame(accountModels, 'pid')) { alert('必须选择相同的产品'); return; }
if (!isSame(accountModels, 'connectCount')) { alert('必须选择相同的连接数'); return; } if (!isSame(accountModels, 'connectCount')) { alert('必须选择相同的连接数'); return; }

View File

@@ -103,7 +103,7 @@
<a href="https://mp4.juip.com/sstp%20vpn.apk"> <button type="button" class="btn btn-primary" style="width: 100%;padding-left: 0;padding-right: 0;">通用老版sstp安卓客户端</button></a> <a href="https://mp4.juip.com/sstp%20vpn.apk"> <button type="button" class="btn btn-primary" style="width: 100%;padding-left: 0;padding-right: 0;">通用老版sstp安卓客户端</button></a>
</div><br><br> </div><br><br>
<div class="item" style="width: 100%;"> <div class="item" style="width: 100%;">
<a href="https://mp4.juip.com/juipsstp.apk"> <button type="button" class="btn btn-primary" style="width: 100%;padding-left: 0;padding-right: 0;">通用新版sstp安卓客户端</button></a> <a href="https://mp4.juip.com/osstp.apk"> <button type="button" class="btn btn-primary" style="width: 100%;padding-left: 0;padding-right: 0;">通用新版sstp安卓客户端</button></a>
</div> </div>
</div> </div>
@@ -118,7 +118,7 @@
<a href="https://mp4.juip.com/jihu.exe"> <button type="button" class="btn btn-primary" style="width: 99%;margin-right:5px">极狐IP-电脑端</button></a> <a href="https://mp4.juip.com/jihu.exe"> <button type="button" class="btn btn-primary" style="width: 99%;margin-right:5px">极狐IP-电脑端</button></a>
</div> </div>
<div class="item" style="margin-bottom: 5px;width:200px;"> <div class="item" style="margin-bottom: 5px;width:200px;">
<a href="https://mp4.juip.com/jhip-0708.apk"> <button type="button" class="btn btn-primary" style="width: 99%;margin-right:5px">极狐IP-安卓版</button></a> <a href="https://mp4.juip.com/jhip0723.apk"> <button type="button" class="btn btn-primary" style="width: 99%;margin-right:5px">极狐IP-安卓版</button></a>
</div> </div>
<div class="item" style="margin-bottom: 5px;width:200px;"> <div class="item" style="margin-bottom: 5px;width:200px;">
<a href="https://mp4.juip.com/%E8%98%91%E8%8F%87IP-2-17.zip"> <button type="button" class="btn btn-primary" style="width: 99%;margin-right:5px">蘑菇IP-电脑端</button></a> <a href="https://mp4.juip.com/%E8%98%91%E8%8F%87IP-2-17.zip"> <button type="button" class="btn btn-primary" style="width: 99%;margin-right:5px">蘑菇IP-电脑端</button></a>

View File

@@ -385,7 +385,7 @@
{ {
@if(item.Status==AccountStatus.Refund || item.RestTime=="已过期") { @if(item.Status==AccountStatus.Refund || item.RestTime=="已过期") {
<tr style="color:red;"> <tr style="color:red;">
<td><input type="checkbox" class="selectAccount" value="@item.Account" a-status="@(item.Status)" a-pid="@(item.ProductId)" a-connectCount="@item.ConnectCount" a-aType="@item.AccountType" /></td> <td><input type="checkbox" class="selectAccount" value="@item.Account" a-package="@(item.PackageName)" a-status="@(item.Status)" a-pid="@(item.ProductId)" a-connectCount="@item.ConnectCount" a-aType="@item.AccountType" /></td>
<td>@item.CreateTime.ToString("yyyy.MM.dd")</td> <td>@item.CreateTime.ToString("yyyy.MM.dd")</td>
<td>@item.ProductName</td> <td>@item.ProductName</td>
<td>@item.PackageName</td> <td>@item.PackageName</td>
@@ -1300,7 +1300,17 @@
var accountModels = []; var accountModels = [];
var isTest = false var isTest = false
var isrefund = false; var isrefund = false;
var product_type_shuidi = '';//0:静态 1固态
var flag = 0;
$.each($('input:checkbox:checked'), function () { $.each($('input:checkbox:checked'), function () {
var type = $(this).attr('a-package').split('-')[0];
if (product_type_shuidi != '') {
if (product_type_shuidi != type) {
flag = 1;
}
} else {
product_type_shuidi = type;
}
var account = $(this).val(); var account = $(this).val();
if (account) { if (account) {
var accountItem = { var accountItem = {
@@ -1319,6 +1329,10 @@
} }
} }
}); });
if (flag) {
alert('静态、固态不同类型无法续费!');
return;
}
if (accountModels.length == 0) { alert('请选择账号'); return; } if (accountModels.length == 0) { alert('请选择账号'); return; }
if (!isSame(accountModels, 'pid')) { alert('必须选择相同的产品'); return; } if (!isSame(accountModels, 'pid')) { alert('必须选择相同的产品'); return; }
if (!isSame(accountModels, 'connectCount')) { alert('必须选择相同的连接数'); return; } if (!isSame(accountModels, 'connectCount')) { alert('必须选择相同的连接数'); return; }