From 74050f139547769fca66a2e712560ef08bee0b28 Mon Sep 17 00:00:00 2001 From: tpingzhang <635929049@qq.com> Date: Fri, 1 Nov 2019 15:10:23 +0800 Subject: [PATCH] =?UTF-8?q?ios=20=E5=BA=94=E7=94=A8=E5=A4=96=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Sdk/View/default/Spend/paycallback.html | 3 +++ Application/Sdk/View/default/UserH/platform_pay_show.html | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Application/Sdk/View/default/Spend/paycallback.html b/Application/Sdk/View/default/Spend/paycallback.html index 7512d894..19ba00bc 100644 --- a/Application/Sdk/View/default/Spend/paycallback.html +++ b/Application/Sdk/View/default/Spend/paycallback.html @@ -50,6 +50,7 @@ $(function() { $("#payed").click(function() { var orderno=$('.orderno').val(); var device=$('.device').val(); + var Scheme=$('.Scheme').val(); $.ajax({ type: "post", @@ -79,12 +80,14 @@ $(function() { window.mengchuang.getPayResult('succeed'); } else { window.webkit.messageHandlers.exchangeResult.postMessage(1); + window.location.href = Scheme+"://1&back"; } } else { if (isAndroid) { window.mengchuang.getPayResult('fail'); } else { window.webkit.messageHandlers.exchangeResult.postMessage(0); + window.location.href = Scheme+"://0&back"; } } } diff --git a/Application/Sdk/View/default/UserH/platform_pay_show.html b/Application/Sdk/View/default/UserH/platform_pay_show.html index 5bbd4dbc..df68635a 100644 --- a/Application/Sdk/View/default/UserH/platform_pay_show.html +++ b/Application/Sdk/View/default/UserH/platform_pay_show.html @@ -51,10 +51,12 @@ $(function() { $("#pay").click(function() { if (!$("#money").val()) { - alert('金额不能为空') + alert('金额不能为空'); + return ; } if (!$("#money").val() < 0) { - alert('金额有误') + alert('金额有误'); + return ; } var money = $("#money").val();