You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
840 B
JavaScript

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

$(function() {
var isSign = 'currency'
$(".recharge-tabbar li").click(
function(){
var divShow = $(".content").children("div");
if($(this).hasClass("")){
var index = $(this).index();
$(this).addClass("selected");
isSign = $(this).attr('name');
$(this).siblings("li").removeClass("selected");
$(divShow[index]).show();
$(divShow[index]).siblings("div").hide();
}
})
// 点击充值按钮
$(".payment_btn").click(function(){
//isSign = 'currency'平台币充值 isSign = 'iscurrency'折扣充值
console.log(isSign);
var pattern = $('input:radio[name="radio"]:checked').val();
// pattern判断支付宝 还是微信支付
console.log(pattern);
})
})