How to use h5 to generate a button to open Wechat in Weibo

is not to analyze user browsers, but to evoke Wechat app in Weibo app and open a link with Wechat app;
WeChat Work can have this function, whether Weibo has a similar configuration.

clipboard.png

Feb.26,2021

triggers this page to follow the Wechat login authorization link of open.weixin, so to connect to the website application (yours is H5), see https://open.weixin.qq.com/cg. for details.
Note here that the request code interface provided here is https://open.weixin.qq.com/co., rather than the official account https://open.weixin.qq.com/co., but the parameter structure is more or less the same.
so if you have an official account to implement this function, you should apply for 2 appId (official account and website application), which are not common to each other (including subsequent transactions and other processes).

this page can be customized, such as determining whether the navigator.userAgent is in the wx environment, if not, as shown in the figure, and the jump link of the button, as mentioned above, is configured first.

Menu