|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
$("#bank-li").hide();
|
|
|
|
|
$("#bankCard-li").hide();
|
|
|
|
|
var currentIndex = 0;
|
|
|
|
|
$(".main .main-left ul li.tab-item").click(function () {
|
|
|
|
|
var selectedIndex = $(this).index();
|
|
|
|
@ -7,8 +8,10 @@ $(".main .main-left ul li.tab-item").click(function () {
|
|
|
|
|
$(this).siblings().children(".s1").removeClass("s1-change-color");
|
|
|
|
|
if (selectedIndex == 2) {
|
|
|
|
|
$("#bank-li").show();
|
|
|
|
|
$("#bankCard-li").show();
|
|
|
|
|
} else {
|
|
|
|
|
$("#bank-li").hide();
|
|
|
|
|
$("#bankCard-li").hide();
|
|
|
|
|
}
|
|
|
|
|
if (selectedIndex != currentIndex) {
|
|
|
|
|
$("#payment-form")[0].reset();
|
|
|
|
|