菜鸡源码,专注精品下载!
当前位置:首页 > 建站教程 > 使用技巧

支付宝 淘宝超链接跳转示例代码

发布时间:2024-01-04  栏目:使用技巧   浏览:   分类:支付宝

以下操作仅限iOS系统,其他系统请自行测试,2021年12月7日测试可以,如果不行可能就是失效了。

跳转到支付宝并自动聚焦到搜索框

<ahref="https://ulink.alipay.com/?scheme=alipayqr://platformapi/startapp?saId=20001003&keyword=730839274">跳转到支付宝app搜索框</a>

跳转到支付宝并自动领取红包

<ahref="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%253D2088032456623223%2526token%253D19618032mpaq72dzh7kix02okl%2526campStr%253DkPPFvOxaCL3f85TiKss2wsBZgIjulHjG%2526sign%253DqsiVOoa7TuphryWxyBdONXsMTnE3jiIBvWeUs3yV1sw%253D%2526chInfo%253DDingtalk%2526c_stype%253Dsearch_pwd">跳转到支付宝并自动领取红包</a>

跳转到支付宝并打开扫码

<ahref="https://ulink.alipay.com/?scheme=alipays://platformapi/startapp?saId=10000007&qrcode=">跳转到支付宝app扫码</a>

完整demo页面代码

<!DOCTYPEhtml><html><head><title>微信跳转支付宝领红包</title><metacharset="utf-8"><metaname="viewport"content="width=device-width,initial-scale=1"><styletype="text/css">/*里客云科技开发*/*{margin:0;padding:0;}#copy1{background:#1476FE;font-size:16px;border-radius:5px;text-decoration:none;color:#fff;display:block;margin:50pxauto0;width:230px;height:55px;line-height:55px;text-align:center;font-weight:bold;}#copy2{background:#1476FE;font-size:16px;border-radius:5px;text-decoration:none;color:#fff;display:block;margin:30pxauto0;width:250px;height:55px;line-height:55px;text-align:center;font-weight:bold;}</style></head><body><!--开发者交流群:[url=http://www.liketube.cn/ma/common/qun/redirect/?hmid=19122]http://www.liketube.cn/ma/common/qun/redirect/?hmid=19122[/url]--><!--作者博客:[url=https://segmentfault.com/u/tanking]https://segmentfault.com/u/tanking[/url]--><pid="hbm"style="opacity:0;">730839274</p><ahref="https://ulink.alipay.com/?scheme=alipayqr://platformapi/startapp?saId=20001003&keyword=730839274"id="copy1">跳转到支付宝app搜索框</a><ahref="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%253D2088032456623223%2526token%253D19618032mpaq72dzh7kix02okl%2526campStr%253DkPPFvOxaCL3f85TiKss2wsBZgIjulHjG%2526sign%253DqsiVOoa7TuphryWxyBdONXsMTnE3jiIBvWeUs3yV1sw%253D%2526chInfo%253DDingtalk%2526c_stype%253Dsearch_pwd"id="copy2">跳转到支付宝app并自动领取</a><ahref="https://ulink.alipay.com/?scheme=alipays://platformapi/startapp?saId=10000007&qrcode="id="copy2">跳转到支付宝app扫码</a></body><scripttype="text/javascript">functioncopyArticle(event){constrange=document.createRange();range.selectNode(document.getElementById('hbm'));constselection=window.getSelection();if(selection.rangeCount>0)selection.removeAllRanges();selection.addRange(range);document.execCommand('copy');}window.onload=function(){varobt=document.getElementById("copy1");obt.addEventListener('click',copyArticle,false);}</script></html>

微信跳转淘宝App

这里就以微信跳转淘宝app领取优惠券为例,这有助于我们更好地做淘客。

<ahref="/d/pic20240103/1bnrawxcsct.html


评论
使用技巧
建站知识
使用技巧
调试安装
运营推广