+
80
-

抖音私信链接如何跳转到微信添加好友?

抖音私信链接如何跳转到微信添加好友?


网友回复

+
0
-

前提条件:有一个完成认证非个人的微信小程序,小程序有一个页面contactus有一个你的微信二维码图片,例如地址是/pages/contactus/contactus。

1、通过后端代码生成微信小程序的url-scheme链接,类似于这样的:weixin://dl/business/?t= *TICKET*,生成这个url-scheme链接的代码在最后面:

2、用url-scheme链接做一个跳转的h5网页

<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum=1.0,minimum=1.0,user-scalable=0" />
    <title>加我我好友</title>
    <style>
    body{
        text-align: center;
        padding-top: 200px;
    }
    </style>
</head>

<body>

    <a href="weixin://dl/business/?t=TICKET">加我我好友</a>

</body>

</html>

2、把这个网页放到web服务器上,然后在抖音中发送包含链接跳转的h5网页地址即可

参考:https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/qrcode-link/url-scheme/generateScheme.html

https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/url-scheme.html

最后奉上php生成微信小程序url-scheme链接的代码

点击查看全文

我知道答案,我要回答