Commit f2515333411c571320e3fb3e6fd9f5194921868c
1 parent
735f1095
1 修改大众体育线上赛事分享参数
Showing
3 changed files
with
15 additions
and
6 deletions
config.gradle
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/frame/view/RunRaceDetailFragmentView.java
| @@ -146,7 +146,7 @@ public class RunRaceDetailFragmentView implements MvpView, SensorEventListener { | @@ -146,7 +146,7 @@ public class RunRaceDetailFragmentView implements MvpView, SensorEventListener { | ||
| 146 | CNLiveShareService shareService = OpenServiceHelpUtil.getShareService(getContext()); | 146 | CNLiveShareService shareService = OpenServiceHelpUtil.getShareService(getContext()); |
| 147 | if (null != shareService && null != runRaceDetailInfo) { | 147 | if (null != shareService && null != runRaceDetailInfo) { |
| 148 | String subTitle = "我在网家家上报名了线上赛事 快来和我一起动起来"; | 148 | String subTitle = "我在网家家上报名了线上赛事 快来和我一起动起来"; |
| 149 | - String shareUrl = AppConfig.isDebug() ? SHARE_DEBUG_URL : SHARE_REL_URL; | 149 | + String shareUrl = AppConfig.isDebug() ? SHARE_DEBUG_URL : SHARE_REL_URL+"?eventId="+CommonInfo.getStreetId(getContext())+"&channelName="+runRaceDetailInfo.getChannelName(); |
| 150 | // String shareImgUrl = "http://wjj.ys1.cnliveimg.com/download/app_icon/share/strike_logo_mass_sports.png"; | 150 | // String shareImgUrl = "http://wjj.ys1.cnliveimg.com/download/app_icon/share/strike_logo_mass_sports.png"; |
| 151 | String shareImgUrl = "http://wjj.ys1.cnliveimg.com/download/app_icon/share/strike_logo_mass_sports_rec.png"; | 151 | String shareImgUrl = "http://wjj.ys1.cnliveimg.com/download/app_icon/share/strike_logo_mass_sports_rec.png"; |
| 152 | boolean isShowWjjLife = true; | 152 | boolean isShowWjjLife = true; |
| @@ -479,10 +479,10 @@ public class RunRaceDetailFragmentView implements MvpView, SensorEventListener { | @@ -479,10 +479,10 @@ public class RunRaceDetailFragmentView implements MvpView, SensorEventListener { | ||
| 479 | if (runRaceDetailInfo.isIndividualAchievement()) { | 479 | if (runRaceDetailInfo.isIndividualAchievement()) { |
| 480 | //显示 | 480 | //显示 |
| 481 | fragment.binding.includePersonScore.llPersonScoreRoot.setVisibility(View.VISIBLE); | 481 | fragment.binding.includePersonScore.llPersonScoreRoot.setVisibility(View.VISIBLE); |
| 482 | - //设置完成人数 | ||
| 483 | - if (!TextUtils.isEmpty(runRaceDetailInfo.getFinishNum())) { | ||
| 484 | - fragment.binding.includeRank.tvFinishPerson.setText(runRaceDetailInfo.getFinishNum()); | ||
| 485 | - } | 482 | +// //设置完成人数 |
| 483 | +// if (!TextUtils.isEmpty(runRaceDetailInfo.getFinishNum())) { | ||
| 484 | +// fragment.binding.includeRank.tvFinishPerson.setText(runRaceDetailInfo.getFinishNum()); | ||
| 485 | +// } | ||
| 486 | //设置个人行走距离 | 486 | //设置个人行走距离 |
| 487 | if (!TextUtils.isEmpty(runRaceDetailInfo.getUserMileage())) { | 487 | if (!TextUtils.isEmpty(runRaceDetailInfo.getUserMileage())) { |
| 488 | fragment.binding.includePersonScore.tvUserDistance.setText(runRaceDetailInfo.getUserMileage()); | 488 | fragment.binding.includePersonScore.tvUserDistance.setText(runRaceDetailInfo.getUserMileage()); |
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/net/bean/RunRaceDetailInfo.java
| @@ -50,6 +50,7 @@ public class RunRaceDetailInfo implements Serializable { | @@ -50,6 +50,7 @@ public class RunRaceDetailInfo implements Serializable { | ||
| 50 | * title : 2018国际网络徒步大赛黄金海岸站 | 50 | * title : 2018国际网络徒步大赛黄金海岸站 |
| 51 | * userMileage : 5.5 | 51 | * userMileage : 5.5 |
| 52 | */ | 52 | */ |
| 53 | + private String channelName; | ||
| 53 | 54 | ||
| 54 | private String address; | 55 | private String address; |
| 55 | private String fenceId; | 56 | private String fenceId; |
| @@ -95,6 +96,14 @@ public class RunRaceDetailInfo implements Serializable { | @@ -95,6 +96,14 @@ public class RunRaceDetailInfo implements Serializable { | ||
| 95 | private String e_subtitle; | 96 | private String e_subtitle; |
| 96 | private String newDescription; | 97 | private String newDescription; |
| 97 | 98 | ||
| 99 | + public String getChannelName() { | ||
| 100 | + return channelName; | ||
| 101 | + } | ||
| 102 | + | ||
| 103 | + public void setChannelName(String channelName) { | ||
| 104 | + this.channelName = channelName; | ||
| 105 | + } | ||
| 106 | + | ||
| 98 | public String getE_subtitle() { | 107 | public String getE_subtitle() { |
| 99 | return e_subtitle; | 108 | return e_subtitle; |
| 100 | } | 109 | } |