1 Star 1 Fork 0

@魔帝本尊 / wxaliqr

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
alicallback.html 1.50 KB
一键复制 编辑 原始数据 按行查看 历史
@魔帝本尊 提交于 2023-11-22 17:46 . aa
<html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<head>
<title>支付宝打赏</title>
<style type="text/css">
body {
font-size: 23px;
position: relative;
top: 30%;
text-align: center;
background-color: rgb(255, 255, 255);
}
</style>
<script type="text/javascript">
//######################################################
//###############自行修改为自己的收款码###################
//######################################################
var zfbpayurl="https://qr.alipay.com/2m611351qb9y2gms1llai78";
var zfbpngurl="alipay.png";
//######################################################
</script>
</head>
<body>
<p><img style="margin:-5px;" src="logo/alism.png"> 支付宝付款专用安全通道</p>
<p id="wxsmxx" style="display: none;">
<button style="font-size: 32px;border: 1px solid rgb(20,118,254);background-color: rgb(20,118,254);color: white;" onclick='window.open(zfbpayurl);' >发起付款</button>
</p>
</body>
<script type="text/javascript">
function isalipay() {
var ua = window.navigator.userAgent.toLowerCase();
if(ua.indexOf('windows') != -1){
return false;
}
if (ua.match(/AlipayClient/i) == 'alipayclient') {
return true;
} else {
return false;
}
}
if(isalipay()){
document.getElementById('wxsmxx').style.display='';
window.open(zfbpayurl);
}else{
document.body.style.top="0px";
document.write('<img style="width:320px;" src="'+zfbpngurl+'"/><h2>请使用支付宝扫码</h2>');
}
</script>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
HTML
1
https://gitee.com/wxgshuju/wxaliqr.git
git@gitee.com:wxgshuju/wxaliqr.git
wxgshuju
wxaliqr
wxaliqr
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891