<code>
function
topupmoney() {
var
bank_card = $(
'#bank_card'
).val();
var
topup_amount = $(
'#topup_amount'
).val();
var
clientIp = $(
'#client_ip'
).val();
if
(topup_amount ==
''
) {
tusi(
'您的充值金额不合法'
);
}
else
{
$.ajax({
url:
'/index.php/user/usercenter/bankpay'
,
type:
'post'
,
data: {
money: topup_amount,
clientIp: clientIp
},
dataType:
'JSON'
,
success:
function
(re) {
$(
'#topmoney'
).html(re[
'rechargeamt'
]);
$(
'#fee'
).html(re[
'fee'
]);
$(
'#ordernum'
).html(re[
'OrdId'
]);
$(
'#MerId'
).val(re[
'MerId'
]);
$(
'#OrdId'
).val(re[
'OrdId'
]);
$(
'#TransAmt'
).val(re[
'TransAmt'
]);
$(
'#TransDate'
).val(re[
'TransDate'
]);
$(
'#TransType'
).val(re[
'TransType'
]);
$(
'#Version'
).val(re[
'Version'
]);
$(
'#BgRetUrl'
).val(re[
'BgRetUrl'
]);
$(
'#Priv1'
).val(re[
'Priv1'
]);
$(
'#ChkValue'
).val(re[
'ChkValue'
]);
$(
'#GateId'
).val(re[
'GateId'
]);
$(
'#ClientIp'
).val(re[
'ClientIp'
]);
$(
'#commitorder'
).attr(
'action'
, re[
'pay_url'
]);
}
})
$(
'#topup_mengban'
).fadeIn(500);
$(
'p[rle="topup"]'
).show();
$(
'#pblem'
).hide();
setTimeout(
"$('#tijiao').click()"
, 2000);
}
}
</code>