ios回调处理

master
tpingzhang 5 years ago
parent 35dc67b662
commit 0105ae3caa

@ -157,7 +157,7 @@ $(function() {
$("#paytype").html("支付成功");
if (!isAndroid) {
if (isSafari) {
window.location.href = Scheme+"://1&back";
window.location.href = Scheme+"://1";
} else {
$("#toast").show();
setTimeout(function(){
@ -176,7 +176,7 @@ $(function() {
$("#paytype").html("支付失败");
if (!isAndroid) {
if (isSafari) {
window.location.href = Scheme+"://0&back";
window.location.href = Scheme+"://0";
} else {
$("#toast").show();
setTimeout(function(){
@ -209,7 +209,7 @@ $(function() {
try {
window.webkit.messageHandlers.exchangeResult.postMessage(1);
} catch(err) {
window.location.href = Scheme+"://1";
window.location.href = Scheme+"://1&back";
}
}
} else {
@ -219,7 +219,7 @@ $(function() {
try {
window.webkit.messageHandlers.exchangeResult.postMessage(0);
} catch(err) {
window.location.href = Scheme+"://0";
window.location.href = Scheme+"://0&back";
}
}
}

Loading…
Cancel
Save