window.onresize=function () {
    document.documentElement.style.fontSize=document.documentElement.clientWidth/27+'px';
    console.log(document.documentElement.clientWidth);
    console.log(document.documentElement.clientHeight);
    console.log(document.documentElement.style.fontSize);
};
window.onresize();
$(function(){
	//卡片选中
	$(".choseCard").click(function(){
		$(this).addClass("cardActive").append("<div class='sel-icon iconfont icon-gou'></div>");
		$(this).siblings().removeClass("cardActive");
		$(this).siblings().find(".sel-icon").remove();
		var value = $(this).find("div.cardNum").attr("data-v");
		$("#rnInput").val(value);
	});
	$("#rnInput").focus(function(){
		$(".cardActive").removeClass("cardActive");
		$(".icon-gou").remove();
	})
	/*$('.recharge-button').click(function(){
		alertConfirm();
	});
	//确认弹窗
	function alertConfirm(){
		$.confirm({
			title: '充值',
			text: '',
			onOK: function () {

			},
			onCancel: function () {
			}
		});
	}
	//开启loading
	function openLoading(){
		$('.recharge-loading').addClass('icon-loading');
		$('.recharge-text').text('');
		$('.recharge-button').css('background-color','#ec7b8e')
	}
	// 关闭loading
	function closeLoading(){
		$('.recharge-loading').removeClass('icon-loading');
		$('.recharge-text').text('立即充值');
		$('.recharge-button').css('background-color','#f33c5b')
	}*/
});