update alipay+ retailpay res

master
yixian 4 years ago
parent b161ccd318
commit 6bfd69ce06

@ -4,18 +4,21 @@
$(document).ready(function () { $(document).ready(function () {
'use strict'; 'use strict';
decode(); decode();
function decode() { function decode() {
var redirect = window.redirect; var redirect = window.redirect;
while(redirect.indexOf('://')<0){ while (redirect.indexOf('://') < 0) {
redirect = decodeURIComponent(redirect); redirect = decodeURIComponent(redirect);
if(redirect==window.redirect){ if (redirect == window.redirect) {
break; break;
} }
window.redirect = redirect; window.redirect = redirect;
} }
} }
var dataCache = {paying: false}; var dataCache = {paying: false};
$('#key_P').bind('touchstart', startPay); $('#key_P').bind('touchstart', startPay);
function startPay() { function startPay() {
$('#wdiv').show(); $('#wdiv').show();
if (dataCache.paying) { if (dataCache.paying) {
@ -32,6 +35,9 @@ $(document).ready(function () {
location.href = window.redirect; location.href = window.redirect;
return; return;
} }
if (window.client_moniker == 'PINE') {
alert(JSON.stringify(pay))
}
if (pay.web_from) { if (pay.web_from) {
$('#alipay_plus').html(pay.web_from) $('#alipay_plus').html(pay.web_from)
startCheckOrder(window.order_id, window.redirect); startCheckOrder(window.order_id, window.redirect);
@ -94,7 +100,7 @@ $(document).ready(function () {
setTimeout(checkOrderStd, 500); setTimeout(checkOrderStd, 500);
} }
}, },
error:function (){ error: function () {
setTimeout(checkOrderStd, 500); setTimeout(checkOrderStd, 500);
} }
}) })

Loading…
Cancel
Save