续费自动勾选
This commit is contained in:
@@ -313,7 +313,7 @@
|
||||
|
||||
@section Scripts{
|
||||
<script type="text/javascript">
|
||||
var currentPkgId =@defaultPackage.Id;
|
||||
var currentPkgId = 0;
|
||||
function selectPackage(id) {
|
||||
currentPkgId = id;
|
||||
var el = "#pkg" + id;
|
||||
@@ -333,6 +333,10 @@
|
||||
selectPackage(currentPkgId)
|
||||
})
|
||||
$(".btn-submit").click(function () {
|
||||
if(currentPkgId == 0){
|
||||
alert("未选择套餐!");
|
||||
return;
|
||||
}
|
||||
window.location.href = "rebuy?packageId=" + currentPkgId+"&accounts=@ViewBag.accounts";
|
||||
})
|
||||
selectPackage(currentPkgId)
|
||||
|
||||
Reference in New Issue
Block a user