添加路由
This commit is contained in:
@@ -59,6 +59,12 @@ enum ToFlutterAppEnum {
|
||||
|
||||
// 定向充值
|
||||
rechargeItem('rechargeItem'),
|
||||
//专属见面礼
|
||||
shouldInviteCodeGift('InviteCodeGiftPackageDialogPage'),
|
||||
//解析 URL 并跳转
|
||||
showCommandJump('commandJump'),
|
||||
//跳转至网页
|
||||
showToWebViewPage('toWebViewPage'),
|
||||
|
||||
///通用交互 别往这下面加,👆🏻加
|
||||
commonInteraction('commonInteraction'),
|
||||
@@ -256,6 +262,21 @@ class FlutterBridge {
|
||||
...shareCardModel?.toJson() ?? {},
|
||||
});
|
||||
|
||||
//专属见面礼
|
||||
void taskInviteCodeGift() =>
|
||||
sendToFlutter(ToFlutterAppEnum.shouldInviteCodeGift.code, {});
|
||||
|
||||
//解析 URL 并跳转
|
||||
void taskCommandJump({required String scheme, required String activityId}) =>
|
||||
sendToFlutter(ToFlutterAppEnum.showCommandJump.code,
|
||||
{"scheme": scheme, "activityId": activityId});
|
||||
|
||||
//跳转至网页
|
||||
void taskToWebViewPage(
|
||||
{required String linkUrl, required String activityId}) =>
|
||||
sendToFlutter(ToFlutterAppEnum.showToWebViewPage.code,
|
||||
{"linkUrl": linkUrl, "activityId": activityId});
|
||||
|
||||
void checkStartBroadcaster() =>
|
||||
sendToFlutter(ToFlutterAppEnum.checkStartBroadcaster.code, {});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user