mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]修改微信支付测试功能
This commit is contained in:
parent
40046adf3d
commit
31bc2d30b6
@ -114,7 +114,7 @@
|
|||||||
type: 1, title: false, closeBtn: 1, shadeClose: true,
|
type: 1, title: false, closeBtn: 1, shadeClose: true,
|
||||||
content: '<img class="pay-qrc-test" src="' + ret.url + '"/>'
|
content: '<img class="pay-qrc-test" src="' + ret.url + '"/>'
|
||||||
+ '<p style="text-align:center">请用微信扫码测试支付!</p>'
|
+ '<p style="text-align:center">请用微信扫码测试支付!</p>'
|
||||||
+ '<p class="refund-qrc-test"><a class="btn btn-xs btn-warning">退款测试</a></p>',
|
+ '<p class="refund-qrc-test hide"><a class="btn btn-xs btn-warning">退款测试</a></p>',
|
||||||
end: function () {
|
end: function () {
|
||||||
isShow = false;
|
isShow = false;
|
||||||
timer && window.clearInterval(timer), timer = null;
|
timer && window.clearInterval(timer), timer = null;
|
||||||
@ -122,6 +122,9 @@
|
|||||||
success: function (layero, index) {
|
success: function (layero, index) {
|
||||||
isShow = true;
|
isShow = true;
|
||||||
timer = setInterval(payTest, 1000);
|
timer = setInterval(payTest, 1000);
|
||||||
|
if(ret.code===2){
|
||||||
|
$('[refund-qrc-test]').removeClass('hide');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -132,7 +135,7 @@
|
|||||||
|
|
||||||
$('[data-pay-test]').on('click', payTest);
|
$('[data-pay-test]').on('click', payTest);
|
||||||
|
|
||||||
$('body').on('click', '[refund-qrc-test]', function () {
|
$('body').on('click', '[refund-qrc-test] a', function () {
|
||||||
$.msg.success('退款功能开发中哦!');
|
$.msg.success('退款功能开发中哦!');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user