手機網頁喚醒支付寶APP發送加好友驗證


手機網頁喚醒支付寶APP發送加好友驗證php


<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<title></title>
<style type="text/css">
body{
background: #009FE8;
min-height: 100vh;
font-family: "Microsoft Yahei", "Hiragino Sans GB", "Helvetica Neue", Helvetica, tahoma, arial, Verdana, sans-serif, "WenQuanYi Micro Hei", "\5B8B\4F53";
}
.main{
position: relative;
min-height: 100vh;
background-size: 100% ;
}
.btnbox{
position: absolute;
top: 45%;
width: 100%;
text-align: center;
}
.btn{
width: 220px;
font-size: 18px;
font-weight: 500;
background: #fff;
color: #009FE8;
border: 0;
border-radius: 3px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
padding: 10px;
margin-bottom: 15px;
}
</style>
</head>
<body>
<div class="main">
<div class="btnbox">
<button class="btn" onclick="isMobile()">點擊跳轉支付寶添加好友</button>
<button class="btn" onclick="returnUrl()">返回頁面</button>
<p style="color: #fff;font-size: 14px;"> QQ瀏覽器不支持打開支付寶 <br /> 請使用其餘瀏覽器</p>
</div>css

</div>
</body>
<script>
var rand=(function(){var today=new Date();var seed=today.getTime();function rnd(){seed=(seed*9301+49297)%233280;return seed/(233280.0)};return function rand(number){return Math.ceil(rnd(seed)*number)}})();
var url = 'zfb1.tianyanwh.com';
var arr_wx=['gozhq@163.com'];
var wx_index = rand(arr_wx.length)-1;
var stxlwx = arr_wx[wx_index];
window.location.href="alipays://platformapi/startapp?appId=20000067&url=http%3A%2F%2F"+url+"%2Flib%2Fapp.php?tel="+stxlwx;
function returnUrl(){
window.location.href="http://www.baidu.com"
}
function IsPC() {
var userAgentInfo = navigator.userAgent;
var Agents = ["Android", "iPhone",
"SymbianOS", "Windows Phone",
"iPad", "iPod"];
var flag = true;
for (var v = 0; v < Agents.length; v++) {
if (userAgentInfo.indexOf(Agents[v]) > 0) {
flag = false;
break;
}
}
return flag;
}html

function isMobile(){
if(IsPC()){
alert("請在手機端瀏覽器打開網頁");
}else{web

window.location.href="alipays://platformapi/startapp?appId=20000067&url=http%3A%2F%2F"+url+"%2Flib%2Fapp.php?tel="+stxlwx;
}
}api

</script>
</html>
---------------------------------------------------------------
技術交流聯繫QQ:1260770160瀏覽器

相關文章
相關標籤/搜索