diff --git a/application/wechat/view/config.pay.html b/application/wechat/view/config.pay.html
index 4cd2a20f1..5f261f66b 100644
--- a/application/wechat/view/config.pay.html
+++ b/application/wechat/view/config.pay.html
@@ -103,12 +103,13 @@
function payTest() {
$.form.load('{:url("pay")}?action=payqrc', {}, 'get', function (ret) {
if (ret.code === 1 || ret.code === 2) {
- if(ret.code===2){
+ if (ret.code === 2) {
ret.url = '__STATIC__/theme/default/img/wechat/qrc_payed.jpg';
+ timer && window.clearInterval(timer), timer = null;
}
- if(isShow){
- $('.pay-qrc-test').attr('src',ret.url)
- }else{
+ if (isShow) {
+ $('.pay-qrc-test').attr('src', ret.url)
+ } else {
layer.open({
type: 1, title: false, closeBtn: 1, shadeClose: true,
content: ''
@@ -116,11 +117,11 @@
+ '