From daaaea5e7c43ce151a4defc975b28a9288e5218e Mon Sep 17 00:00:00 2001 From: wanyongkang <937888580@qq.com> Date: Mon, 30 Nov 2020 09:57:48 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=AD=E4=B9=B0=E9=A1=B5=E9=9D=A2=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Host/Views/Product/Index.cshtml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/Host/Views/Product/Index.cshtml b/Host/Views/Product/Index.cshtml index 96d644c..297c205 100644 --- a/Host/Views/Product/Index.cshtml +++ b/Host/Views/Product/Index.cshtml @@ -361,7 +361,7 @@ @*
โ@item.Product.Nameโ
*@ๅ ่ดน
@restStatus
@restTimes
@@ -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();