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