里边有详细教程自己查看吧
<!DOCTYPE html>
<html>
<head><title>拼手气红包,支付宝官方活动!</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><style type="text/css">*{margin:0;padding:0;}#bg{width: 100%;height: 100%;position: fixed;top: 0;}#bg img{width: 100%;height: 100%;}#bg .desc{width: 77%;margin:30px auto 0;padding:15px 15px;background: #eee;font-size: 17px;line-height: 23px;text-align: justify;border-radius: 10px;color: #666;}#bg h2{text-align: center;margin:20px auto 0;color: #f00;}#bg button{margin: 20px auto 0;padding:10px 18px;font-size: 16px;display: block;outline: none;border:none;border-radius: 100px;background: #006eff;color: #fff;}#bg .androidimg{width: calc(77% + 30px);margin:30px auto 0;border:1px solid #ccc;border-radius: 20px;}#bg .androidimg img{overflow: hidden;border-radius: 20px;}</style>
</head>
<body>//--------------------------看这里---有教程-------------------看这里---有教程--------------------
//教程编写人村长 smallwangs.com (希望保留)
//直接用文编编辑打开 使用Ctrl+f
//将 "你的id" 替换为 你自己的支付宝id号(不会获取往下看)()
//将 "你的token" 替换为你自己的token(不会获取往下看)()
//ID获取: http://gcd.icu/IQb9 打开连接截图vx扫码获取id
//token获取:在支付宝赚钱红包页面保存二维码,然后使用wx扫一扫,直接出来的就是token 查看样例图片:http://gcd.icu/r8CN
//<div id="bg"><a href="https://ulink.alipay.com/?scheme=alipays%3A%2F%2Fplatformapi%2Fstartapp%3FsaId%3D10000007%26clientVersion%3D3.7.0.0718%26qrcode%3Dhttps%253A%252F%252Frender.alipay.com%252Fp%252Fc%252Falipay-red-qrcode%252Fshared.html%253Fchannel%253Dsearch_pwd%2526shareId%253D你的id%2526token%253D你的token%2526campStr%253DkPPFvOxaCL3f85TiKss2wsBZgIjulHjG%2526sign%253DqsiVOoa7TuphryWxyBdONXsMTnE3jiIBvWeUs3yV1sw%253D%2526chInfo%253DDingtalk%2526c_stype%253Dsearch_pwd"><img src="https://lwsaascos-1311562825.cos.ap-nanjing.myqcloud.com/2022/0.gif" /></a></div>
</body><script type="text/javascript">
window.onload=function(){// 判断操作系统var u = navigator.userAgent, app = navigator.appVersion;var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1;var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);// Android设备if(isAndroid){// document.getElementById('bg').innerHTML = '<p class="desc">Android设备不支持跳转,您可以点击下方按钮,复制红包码,再打开支付宝App,粘贴至搜索框,再进行领取红包!</p><h2 id="hbm">791203474</h2><button id="copy">一键复制</button><div class="androidimg"><img src="./android.png" /></div>';window.location = 'https://ulink.alipay.com/?scheme=alipays%3A%2F%2Fplatformapi%2Fstartapp%3FsaId%3D10000007%26clientVersion%3D3.7.0.0718%26qrcode%3Dhttps%253A%252F%252Frender.alipay.com%252Fp%252Fc%252Falipay-red-qrcode%252Fshared.html%253Fchannel%253Dsearch_pwd%2526shareId%253D你的id%2526token%253D你的token%2526campStr%253DkPPFvOxaCL3f85TiKss2wsBZgIjulHjG%2526sign%253DqsiVOoa7TuphryWxyBdONXsMTnE3jiIBvWeUs3yV1sw%253D%2526chInfo%253DDingtalk%2526c_stype%253Dsearch_pwd';}// IOS设备if(isIOS){window.location = 'https://ulink.alipay.com/?scheme=alipays%3A%2F%2Fplatformapi%2Fstartapp%3FsaId%3D10000007%26clientVersion%3D3.7.0.0718%26qrcode%3Dhttps%253A%252F%252Frender.alipay.com%252Fp%252Fc%252Falipay-red-qrcode%252Fshared.html%253Fchannel%253Dsearch_pwd%2526shareId%253D你的id%2526token%253D你的token%2526campStr%253DkPPFvOxaCL3f85TiKss2wsBZgIjulHjG%2526sign%253DqsiVOoa7TuphryWxyBdONXsMTnE3jiIBvWeUs3yV1sw%253D%2526chInfo%253DDingtalk%2526c_stype%253Dsearch_pwd';}function hide(){$("#copytips .success").css("display","none");}// 一键复制function copyArticle(event){const range = document.createRange();range.selectNode(document.getElementById('hbm'));const selection = window.getSelection();if(selection.rangeCount > 0) selection.removeAllRanges();selection.addRange(range);document.execCommand('copy');alert("已复制红包码,请打开支付宝App粘贴搜索!");}var obt = document.getElementById("copy");obt.addEventListener('click', copyArticle, false);
}
//smallwangs.com
</script>
</html>