mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-08-23 21:39:45 +08:00
[更新]增加微信支付测试功能
This commit is contained in:
parent
801cd99a4b
commit
2b5a896725
@ -105,6 +105,7 @@
|
|||||||
if (ret.code === 1 || ret.code === 2) {
|
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';
|
ret.url = '__STATIC__/theme/default/img/wechat/qrc_payed.jpg';
|
||||||
|
timer && window.clearInterval(timer), timer = null;
|
||||||
}
|
}
|
||||||
if (isShow) {
|
if (isShow) {
|
||||||
$('.pay-qrc-test').attr('src', ret.url)
|
$('.pay-qrc-test').attr('src', ret.url)
|
||||||
@ -116,7 +117,7 @@
|
|||||||
+ '<p class="refund-qrc-test"><a class="btn btn-xs btn-warning">退款测试</a></p>',
|
+ '<p class="refund-qrc-test"><a class="btn btn-xs btn-warning">退款测试</a></p>',
|
||||||
end: function () {
|
end: function () {
|
||||||
isShow = false;
|
isShow = false;
|
||||||
timer && window.clearInterval(timer);
|
timer && window.clearInterval(timer), timer = null;
|
||||||
},
|
},
|
||||||
success: function (layero, index) {
|
success: function (layero, index) {
|
||||||
isShow = true;
|
isShow = true;
|
||||||
@ -128,6 +129,7 @@
|
|||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
$('[data-pay-test]').on('click', payTest);
|
$('[data-pay-test]').on('click', payTest);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user