|
|
@ -4,6 +4,7 @@
|
|
|
|
$(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) {
|
|
|
@ -14,8 +15,10 @@ $(document).ready(function () {
|
|
|
|
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);
|
|
|
|