优化后台查询微信支付单支付状态

This commit is contained in:
jianweie
2023-04-26 12:06:59 +08:00
parent 8a12ab7ea5
commit 23781304d8
6 changed files with 117 additions and 43 deletions

View File

@@ -69,7 +69,7 @@
</script>
<script type="text/html" id="LAY-app-CoreCmsBillPayments-tableBox-bar">
<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</a>
{{# if(d.paymentCode == 'wechatpay' && d.status !=2){ }}
{{# if((d.paymentCode == 'wechatpay' || d.paymentCode == 'alipay') && d.status !=2){ }}
<a class="layui-btn layui-btn-xs" lay-event="doRefresh">刷新</a>
{{# } }}
</script>
@@ -224,6 +224,7 @@
//执行刷新操作
function doRefresh(obj) {
coreHelper.Post("Api/CoreCmsBillPayments/doRefresh", { id: obj.data.paymentId }, function (e) {
table.reloadData('LAY-app-CoreCmsBillPayments-tableBox');
layer.msg(e.msg);
});
}