增加打开flutter卡包和战绩
This commit is contained in:
@@ -7,4 +7,6 @@ public class RouterConstants {
|
||||
public static final String FLUTTER_PAGE_SPLASH = "splash";
|
||||
public static final String FLUTTER_PAGE_MALL = "mall";
|
||||
public static final String FLUTTER_PAGE_RECORD = "quotaRecord";
|
||||
public static final String FLUTTER_PAGE_BAG = "bag";
|
||||
public static final String FLUTTER_PAGE_PERFORMANCE = "performance";
|
||||
}
|
||||
|
@@ -390,6 +390,12 @@ public class MeFragment extends BaseMvpFragment<IMainFragmentView, MainFragmentP
|
||||
case R.id.tv_link_account:
|
||||
CommonWebViewActivity.start(mContext, UriProvider.getLinkAccountUrl());
|
||||
break;
|
||||
case R.id.match_bag:
|
||||
FlutterBoost.instance().open(RouterConstants.FLUTTER_PAGE_BAG, null);
|
||||
break;
|
||||
case R.id.match_performance:
|
||||
FlutterBoost.instance().open(RouterConstants.FLUTTER_PAGE_PERFORMANCE, null);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@@ -81,7 +81,7 @@ public class SplashActivity extends BaseActivity implements View.OnClickListener
|
||||
private void initFlutter() {
|
||||
FlutterBoostFragment splash = new FlutterBoostFragment
|
||||
.CachedEngineFragmentBuilder(FlutterBoostFragment.class, FlutterBoost.ENGINE_ID)
|
||||
.url(RouterConstants.FLUTTER_PAGE_MAIN)
|
||||
.url(RouterConstants.FLUTTER_PAGE_SPLASH)
|
||||
.build();
|
||||
|
||||
FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
|
||||
|
@@ -344,16 +344,19 @@
|
||||
app:layout_rowWeight="1" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/match_performance"
|
||||
android:layout_width="0dp"
|
||||
android:drawableTop="@drawable/ic_me_join_record"
|
||||
android:gravity="center"
|
||||
android:text="战绩"
|
||||
android:textColor="@color/text_normal_c6c6e9"
|
||||
android:textSize="13sp"
|
||||
android:onClick="@{click}"
|
||||
app:layout_columnWeight="1"
|
||||
app:layout_rowWeight="1" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/match_bag"
|
||||
android:layout_width="0dp"
|
||||
android:layout_marginTop="15dp"
|
||||
android:drawableTop="@drawable/ic_me_card_bag"
|
||||
@@ -361,6 +364,7 @@
|
||||
android:text="卡包"
|
||||
android:textColor="@color/text_normal_c6c6e9"
|
||||
android:textSize="13sp"
|
||||
android:onClick="@{click}"
|
||||
app:layout_columnWeight="1"
|
||||
app:layout_rowWeight="1" />
|
||||
|
||||
|
Submodule xplan-flutter updated: 4789810755...6a207e415d
Reference in New Issue
Block a user