目前市面上所有跳轉(zhuǎn)采用的方式都是通過(guò)微信小程序做跳板
非個(gè)人的小程序是具備使用 URL Scheme 從外部直接喚醒微信的,在微信開(kāi)放平臺(tái)小程序管理中可直接生成 URL Scheme

image

image
跳轉(zhuǎn)到小程序并攜帶參數(shù),可實(shí)現(xiàn)顯示對(duì)應(yīng)的頁(yè)面和具體的業(yè)務(wù)邏輯
H5使用URL Scheme
<html>
<a href="javascript:window.location.href='weixin://'">javascript:window.location.href='weixin://' </a>
<a href="weixin://">weixin:// </a>
<p><a href="weixin://dl/businessWebview/link/?appid=appid&url=baidu.com">test </a></p>
</html>
Flutter web使用URL Scheme
引入url_launcher
#url跳轉(zhuǎn)
url_launcher: ^6.0.20
跳轉(zhuǎn)代碼
static void jumpWeb(String url)async {
if (await canLaunch(url)) {
await launch(url);
}
}
URL Scheme使用很簡(jiǎn)單,但需要能實(shí)現(xiàn)具體的功能,還是需要后臺(tái)配合,通過(guò)接口獲取參數(shù),實(shí)現(xiàn)具體的業(yè)務(wù)邏輯