付款二维码
This commit is contained in:
parent
27a8302c7f
commit
b71f6d5570
|
|
@ -466,7 +466,9 @@
|
|||
actions.push('<a class="btn btn-success btn-xs " href="javascript:void(0)" onclick="detail(\'' + row.id + '\')"><i class="fa fa-info"></i>查看</a> ');
|
||||
actions.push('<a class="btn btn-success btn-xs " href="javascript:void(0)" onclick="orderDetailReject(\'' + row.id + '\')"></i>师傅退单</a> ');
|
||||
actions.push('<a class="btn btn-success btn-xs " href="javascript:void(0)" onclick="orderMasterReject(\'' + row.orderMasterId + '\')"></i>商家退单</a> ');
|
||||
if (row.payStatus == 0) {
|
||||
actions.push('<a class="btn btn-success btn-xs " href="javascript:void(0)" onclick="showPayQrcode(\'' + row.id + '\')"></i>付款</a> ');
|
||||
}
|
||||
return actions.join('');
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -3,19 +3,38 @@
|
|||
<head>
|
||||
<th:block th:include="include :: header('支付二维码')"/>
|
||||
<th:block th:include="include :: layout-latest-css"/>
|
||||
<style>
|
||||
#payQrcode {
|
||||
margin-left: 17px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="gray-bg">
|
||||
<div id="payQrcode"></div>
|
||||
|
||||
<th:block th:include="include :: footer"/>
|
||||
<th:block th:include="include :: layout-latest-js"/>
|
||||
|
||||
<script th:src="@{/js/jquery.min.js}"></script>
|
||||
<script th:src="@{/js/jquery.qrcode.min.js}"></script>
|
||||
<script th:inline="javascript">
|
||||
var orderId = '[[${orderId}]]';
|
||||
var orderDetailId = '[[${orderId}]]';
|
||||
var prefix = ctx + "pay/ali";
|
||||
|
||||
$(function(){
|
||||
console.log(orderId)
|
||||
$('#payQrcode').qrcode("http://www.opsoul.com/");
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
dataType:"json",
|
||||
url: prefix + "/addQr",
|
||||
data: orderDetailId,
|
||||
contentType: "application/json",
|
||||
success: function (result) {
|
||||
if (result.code == web_status.SUCCESS) {
|
||||
$('#payQrcode').qrcode(result.data.expend.qrcode_url);
|
||||
} else {
|
||||
$.modal.msgError("数据加载错误,请重试!")
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
|
|
|||
Loading…
Reference in New Issue