fix hf_gateway.js add #bankCard-li hide

master
luoyang 6 years ago
parent cdba32148d
commit 2d7cc142c0

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

Loading…
Cancel
Save