购买页面优化
This commit is contained in:
@@ -361,7 +361,7 @@
|
||||
@*<p class="text-center nameSmall">—<span>@item.Product.Name</span>—</p>*@
|
||||
<div class="card" style="margin-top:30px;">
|
||||
|
||||
<div class="item packageitem" a-test="true" id="@("pkg"+item.Product.Id)" a-pkg-id="@item.Product.Id">
|
||||
<div class="item packageitem" a-test="true" id="@("pkgtest"+item.Product.Id)" a-pkg-id="@item.Product.Id">
|
||||
<p><span class="price">免费</span></p>
|
||||
<p class="yuanjia" style="color: #FF9900;text-decoration:none;"><span>@restStatus</span></p>
|
||||
<p>@restTimes</p>
|
||||
@@ -494,15 +494,23 @@
|
||||
//selectPackage(pkgid);
|
||||
}
|
||||
|
||||
function selectPackage(id) {
|
||||
function selectPackage(id ,falg = false) {
|
||||
currentPkgId = id;
|
||||
var el = "#pkg" + id;
|
||||
//$(".packageitem").hide();
|
||||
//$(el).show()
|
||||
$(el).addClass("kuang");
|
||||
|
||||
|
||||
|
||||
$(el).siblings().removeClass("kuang");
|
||||
$(el).find(".cardCheck").show();
|
||||
$(el).siblings().find(".cardCheck").hide();
|
||||
if(falg){
|
||||
$("#pkgtest" + id).addClass("kuang");
|
||||
$("#pkgtest" + id).find(".cardCheck").show();
|
||||
} else {
|
||||
$(el).addClass("kuang");
|
||||
$(el).find(".cardCheck").show();
|
||||
}
|
||||
}
|
||||
function loginSuccess(data) {
|
||||
window.location.href = "/product/index";
|
||||
@@ -529,7 +537,7 @@
|
||||
} else {
|
||||
isTest = false;
|
||||
}
|
||||
selectPackage(currentPkgId)
|
||||
selectPackage(currentPkgId, isTest)
|
||||
//$(this).addClass("kuang");
|
||||
//$(this).siblings().removeClass("kuang");
|
||||
//$(this).find(".cardCheck").show();
|
||||
|
||||
Reference in New Issue
Block a user