增加消息跳转比赛详情页面
This commit is contained in:
@@ -10,4 +10,7 @@ public class RouterConstants {
|
||||
public static final String FLUTTER_PAGE_RECORD = "quotaRecord";
|
||||
public static final String FLUTTER_PAGE_BAG = "bag";
|
||||
public static final String FLUTTER_PAGE_PERFORMANCE = "performance";
|
||||
public static final String FLUTTER_PAGE_MATCH_DETAIL = "matchDetail";
|
||||
|
||||
public static final String FLUTTER_PAGE_ARG_MATCH_ID = "matchId";
|
||||
}
|
||||
|
@@ -2,12 +2,16 @@ package com.yizhuan.erban.ui.im.chat;
|
||||
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.idlefish.flutterboost.FlutterBoost;
|
||||
import com.netease.nim.uikit.business.session.viewholder.MsgViewHolderBase;
|
||||
import com.netease.nim.uikit.common.ui.recyclerview.adapter.BaseMultiItemFetchLoadAdapter;
|
||||
import com.netease.nimlib.sdk.msg.attachment.MsgAttachment;
|
||||
import com.yizhuan.erban.R;
|
||||
import com.yizhuan.erban.flutter.RouterConstants;
|
||||
import com.yizhuan.xchat_android_core.im.custom.bean.MatchAttachment;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
/**
|
||||
* <p> 文字消息holder </p>
|
||||
*
|
||||
@@ -46,7 +50,9 @@ public class MsgViewHolderMatch extends MsgViewHolderBase {
|
||||
@Override
|
||||
protected void onItemClick() {
|
||||
if (matchAttachment != null && matchAttachment.isNeedForwardToMatchDetail) {
|
||||
// FlutterBoost.instance().open("",);
|
||||
HashMap<String, String> args = new HashMap();
|
||||
args.put(RouterConstants.FLUTTER_PAGE_ARG_MATCH_ID, String.valueOf(matchAttachment.matchId));
|
||||
FlutterBoost.instance().open(RouterConstants.FLUTTER_PAGE_MATCH_DETAIL, args);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Submodule xplan-flutter updated: 3274c87e3c...0c47fbe0e0
Reference in New Issue
Block a user