|
|
|
@ -267,14 +267,16 @@ $(function () {
|
|
|
|
|
dataType: 'json',
|
|
|
|
|
success: function (resp) {
|
|
|
|
|
window.RPayPlus.send("closeLoading", null, null);
|
|
|
|
|
|
|
|
|
|
pay(resp,function(data){
|
|
|
|
|
alert(data);
|
|
|
|
|
if(data == 'success'){
|
|
|
|
|
location.href = '/api/v1.0/rpay/partners/' + window.client_moniker + '/orders/' + pay.order_id + '/result'
|
|
|
|
|
}else {
|
|
|
|
|
location.href = '/api/v1.0/rpay/partners/' + window.client_moniker + '/orders/' + resp.mch_order_id + '/result'
|
|
|
|
|
}else if(data == 'fail'){
|
|
|
|
|
alert('Oops,Network fluctuation,please try again later...');
|
|
|
|
|
}
|
|
|
|
|
$('#key_P').removeClass('hidden');
|
|
|
|
|
$('#key_Loading').addClass('hidden');
|
|
|
|
|
dataCache.paying = false;
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
// if (window.AlipayJSBridge) {
|
|
|
|
|
// callPayment();
|
|
|
|
@ -318,6 +320,8 @@ $(function () {
|
|
|
|
|
window.RPayPlus.send("closeLoading", null, null);
|
|
|
|
|
weuiAlert(jqXhr.responseJSON.message);
|
|
|
|
|
dataCache.paying = false;
|
|
|
|
|
$('#key_P').removeClass('hidden');
|
|
|
|
|
$('#key_Loading').addClass('hidden');
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|