联调h5支付宝支付

This commit is contained in:
Dragon
2023-07-26 19:09:33 +08:00
parent 47e29aeea5
commit 8081ec4683
2 changed files with 5 additions and 2 deletions

View File

@@ -21,6 +21,7 @@
</head>
<body>
<div id="pay"></div>
<div class="tips-tit">
<!-- <p>点击右上角选择“在浏览器打开”或者“在Safari中打开”即可开始下一步</p> -->
<p>暂不支持</p>

View File

@@ -307,12 +307,14 @@ const getPaymentInfo = (params) => {
//外部浏览器唤起 微信支付/支付宝支付
const payInOutter = (packages) => {
console.log(packages);
$('#confirm').on('click', () => {
num.val('');
$pop.hide();
$('#confirm').unbind('click')
window.location.href = packages.payInfo.mweb_url
$('#pay').html(packages.payInfo);
document.forms['alipaysubmit'].submit();
// window.location.href = packages.payInfo.mweb_url
})
}