Commit e655194a1903f8ffd0593eb0bc29e1310288506d
1 parent
1e826156
web页面加载修改
Showing
3 changed files
with
12 additions
and
7 deletions
config.gradle
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/frame/view/RunRaceDetailFragmentView.java
| ... | ... | @@ -624,8 +624,9 @@ public class RunRaceDetailFragmentView implements MvpView, SensorEventListener { |
| 624 | 624 | fragment.binding.includeRank.tvCatAllRank.setOnClickListener(new View.OnClickListener() { |
| 625 | 625 | @Override |
| 626 | 626 | public void onClick(View view) { |
| 627 | + String baseWebUrl = AppConfig.isDebug() ? "http://wjjh5test.cnlive.com/cnSportList.html" : "http://wjjh5.cnlive.com/cnSportList.html"; | |
| 627 | 628 | ARouter.getInstance().build("/web/WebViewColorActivity") |
| 628 | - .withString("url", AppConfig.isDebug() ? "http://wjjh5test.cnlive.com/cnSportList.html" : "http://wjjh5.cnlive.com/cnSportList.html" + "?sid=" + CommonInfo.getUserId(fragment.getActivity()) + "&eventId=" + CommonInfo.getStreetId(fragment.getActivity())) | |
| 629 | + .withString("url", baseWebUrl + "?sid=" + CommonInfo.getUserId(fragment.getActivity()) + "&eventId=" + CommonInfo.getStreetId(fragment.getActivity())) | |
| 629 | 630 | .withString("title", "排行榜") |
| 630 | 631 | .navigation(fragment.getActivity()); |
| 631 | 632 | } | ... | ... |
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/ui/adapter/MyRecordAdapter.java
| ... | ... | @@ -55,11 +55,8 @@ public class MyRecordAdapter extends RecyclerView.Adapter<MyRecordAdapter.MyView |
| 55 | 55 | myViewHolder.my_record_ry.setVisibility(View.VISIBLE); |
| 56 | 56 | myViewHolder.has_report.setVisibility(View.GONE); |
| 57 | 57 | myViewHolder.my_record.setOnClickListener(v -> startAc(list.get(i))); |
| 58 | - myViewHolder.check_raking.setOnClickListener(v -> | |
| 59 | - ARouter.getInstance().build("/web/WebViewColorActivity") | |
| 60 | - .withString("url", AppConfig.isDebug() ? "http://wjjh5test.cnlive.com/cnSportListOver.html" : "http://wjjh5.cnlive.com/cnSportListOver.html"+"?sid="+CommonInfo.getUserId(context)+"&eventId="+list.get(i).getId()) | |
| 61 | - .withString("title","总排行榜") | |
| 62 | - .navigation(context)); | |
| 58 | + myViewHolder.check_raking.setOnClickListener(v -> toRaking(list.get(i).getId()+"")); | |
| 59 | + | |
| 63 | 60 | if (clickListener != null) { |
| 64 | 61 | myViewHolder.item_ly.setOnClickListener(v -> clickListener.onClickListener(list.get(i), i)); |
| 65 | 62 | } |
| ... | ... | @@ -92,6 +89,13 @@ public class MyRecordAdapter extends RecyclerView.Adapter<MyRecordAdapter.MyView |
| 92 | 89 | RaceRecordActivity.newInstance(context,listBean.getTitle()); |
| 93 | 90 | } |
| 94 | 91 | |
| 92 | + private void toRaking(String eventId){ | |
| 93 | + String baseWebUrl = AppConfig.isDebug() ? "http://wjjh5test.cnlive.com/cnSportListOver.html" : "http://wjjh5.cnlive.com/cnSportListOver.html"; | |
| 94 | + ARouter.getInstance().build("/web/WebViewColorActivity") | |
| 95 | + .withString("url", baseWebUrl +"?sid="+CommonInfo.getUserId(context)+"&eventId="+eventId) | |
| 96 | + .withString("title","总排行榜") | |
| 97 | + .navigation(context); | |
| 98 | + } | |
| 95 | 99 | |
| 96 | 100 | @Override |
| 97 | 101 | public int getItemCount() { | ... | ... |