Files
dou_fire/dhdg-pay/dgali-pay.html
唐明明 0fe6fd4aaf 宗法
2023-05-22 11:13:29 +08:00

57 lines
2.6 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>抖火收银台</title>
</head>
<body>
<style>
body{ padding: 0; margin: 0; }
.pages{ width: 100vw; height: 90vh; display: flex; align-items: center; flex-direction: column; justify-content: center; }
img{ width: 62px; height: 62px; border-radius: 10px; }
h4{ font-size: 16px; margin-bottom: 100px; }
p{ font-size: 14px; color: red; }
button{ margin-bottom: 20px; width: 60vw; height: 50px; line-height: 50px; border: none; padding: 0; font-size: 16px; font-weight: bold; border-radius: 5px; background: #e80050; color: white; }
button.closeBtn{ border:solid 1px #e80050; color: #e80050; background-color: white; line-height: 48px; }
.footer{ font-size: 14px; color: gray; position: absolute; bottom: 10vh; }
</style>
<div class="pages">
<img src="logo.png" alt="抖火法律">
<h4>抖火支付宝收银台</h4>
<p id="toast" style="display: none;">!!!参数错误</p>
<button id="pay" onclick="onPay()">打开支付宝</button>
<button class="closeBtn" id="btn" onclick="onClose()">支付完成</button>
<div class="footer">河北抖火法律咨询服务有限公司</div>
</div>
<script>
// var wxCodeVal = window.location.search.indexOf('miniurlcode=')
// var wxMiniUrl = ''
// if(wxCodeVal > 0){
// var wxCodeUrl = window.location.search.substring((wxCodeVal + 'miniurlcode='.length), window.location.search.length)
// wxMiniUrl = decodeURIComponent(wxCodeUrl);
// window.location.href = decodeURIComponent(wxCodeUrl);
// }else{
// document.getElementById("btn").style.display = 'none'
// document.getElementById("toast").style.display = 'block'
// }
// 支付
// decodeURIComponent(wxCodeUrl)
document.getElementById("pay").onPay = function() {
// if(wxMiniUrl != ''){
window.location.href = "alipays://platformepi/statapprapd-2021003121605466&thirdPrtScheme-dofire:/&pape-pes/cashier/cashierp30-202305101532430092568067%26s%3app";
// }
}
// 关闭支付
document.getElementById("btn").onClose = function(){
document.addEventListener("WeixinJSBridgeReady", function() {
WeixinJSBridge.call("closeWindow");
},false);
WeixinJSBridge.call("closeWindow");
}
</script>
</body>
</html>