From 75b2bc83e868615d1dae7e23a17a79f733c8cf70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Fri, 14 Apr 2017 12:44:35 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=94=B9=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E6=B5=8B=E8=AF=95=E9=80=80=E6=AC=BE?= =?UTF-8?q?=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/wechat/view/config.pay.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/wechat/view/config.pay.html b/application/wechat/view/config.pay.html index 1633a60fd..c88fb710e 100644 --- a/application/wechat/view/config.pay.html +++ b/application/wechat/view/config.pay.html @@ -98,7 +98,7 @@ var isShow = false; var timer = null; - + var layIndex =0; /*! 支付测试动作 */ function payTest() { $.form.load('{:url("pay")}?action=payqrc', {}, 'get', function (ret) { @@ -121,6 +121,7 @@ }, success: function (layero, index) { isShow = true; + layIndex = index; timer = setInterval(payTest, 3000); } }); @@ -137,6 +138,7 @@ $.form.load('{:url("pay")}?action=refund', {}, 'get', function (ret) { if (ret.code === 1) { timer && window.clearInterval(timer), timer = null; + $.msg.close(layIndex); return $.msg.success(ret.msg, 3), false; } });